linux-mainline/drivers/char/tpm
Julien Gomes 85b93bbd1c 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>
2023-02-13 10:11:20 +02:00
..
eventlog tpm: Add reserved memory event log 2023-02-13 10:11:20 +02:00
st33zp24 tpm: st33zp24: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
Kconfig
Makefile
tpm1-cmd.c
tpm2-cmd.c tpm: add vendor flag to command code validation 2023-02-13 10:11:20 +02:00
tpm2-space.c
tpm_atmel.c
tpm_atmel.h
tpm_crb.c tpm_crb: Add support for CRB devices based on Pluton 2023-02-13 10:10:52 +02:00
tpm_ftpm_tee.c tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init() 2022-12-08 16:20:47 +00:00
tpm_ftpm_tee.h
tpm_i2c_atmel.c tpm: tpm_i2c_atmel: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_i2c_infineon.c tpm: tpm_i2c_infineon: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_i2c_nuvoton.c tpm: tpm_i2c_nuvoton: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_ppi.c
tpm_tis_core.c tpm: Add flag to use default cancellation policy 2022-12-08 16:20:47 +00:00
tpm_tis_core.h tpm: Add flag to use default cancellation policy 2022-12-08 16:20:47 +00:00
tpm_tis_i2c_cr50.c
tpm_tis_i2c.c tpm: tis_i2c: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_tis_spi_cr50.c
tpm_tis_spi_main.c
tpm_tis_spi.h
tpm_tis_synquacer.c
tpm_tis.c tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak 2022-12-08 16:20:47 +00:00
tpm_vtpm_proxy.c
tpm-chip.c tpm: Use managed allocation for bios event log 2023-02-13 10:11:20 +02:00
tpm-dev-common.c timers: Get rid of del_singleshot_timer_sync() 2022-11-24 15:09:10 +01:00
tpm-dev.c
tpm-dev.h
tpm-interface.c tpm: Allow system suspend to continue when TPM suspend fails 2023-01-06 14:25:19 -08:00
tpm-sysfs.c
tpm.h
tpmrm-dev.c
xen-tpmfront.c xen: make remove callback of xen driver void returned 2022-12-15 16:06:10 +01:00