summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJulien Gomes <julien@arista.com>2023-02-08 20:58:36 +0100
committerJarkko Sakkinen <jarkko@kernel.org>2023-02-13 09:11:20 +0100
commit85b93bbd1c9768d09adebbe9f33bab0d4ec94404 (patch)
treea4d8142eb4a8174162660ee113ab843650356d34 /security
parenttpm: Add reserved memory event log (diff)
downloadlinux-85b93bbd1c9768d09adebbe9f33bab0d4ec94404.tar.xz
linux-85b93bbd1c9768d09adebbe9f33bab0d4ec94404.zip
tpm: add vendor flag to command code validation
Some TPM 2.0 devices have support for additional commands which are not part of the TPM 2.0 specifications. These commands are identified with bit 29 of the 32 bits command codes. Contrarily to other fields of the TPMA_CC spec structure used to list available commands, the Vendor flag also has to be present in the command code itself (TPM_CC) when called. Add this flag to tpm_find_cc() mask to prevent blocking vendor command codes that can actually be supported by the underlying TPM device. Signed-off-by: Julien Gomes <julien@arista.com> Tested-by: Jarkko Sakkinen <jarkko@kernel.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions