diff options
author | Julien Gomes | 2023-02-08 11:58:36 -0800 |
---|---|---|
committer | Jarkko Sakkinen | 2023-02-13 10:11:20 +0200 |
commit | 85b93bbd1c9768d09adebbe9f33bab0d4ec94404 (patch) | |
tree | a4d8142eb4a8174162660ee113ab843650356d34 /arch | |
parent | 1e2714bb83fc783d58701967391bea242c65eaff (diff) |
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 'arch')
0 files changed, 0 insertions, 0 deletions