linux/drivers/char/tpm
James Bottomley eb24c9788c tpm: disable the TPM if NULL name changes
Update tpm2_load_context() to return -EINVAL on integrity failures and
use this as a signal when loading the NULL context that something
might be wrong.  If the signal fails, check the name of the NULL
primary against the one stored in the chip data and if there is a
mismatch disable the TPM because it is likely to have suffered a reset
attack.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
2024-05-09 22:30:52 +03:00
..
eventlog tpm/eventlog: remove redundant assignment to variabel ret 2024-05-09 22:30:50 +03:00
st33zp24 Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
Kconfig tpm: Add HMAC session start and end functions 2024-05-09 22:30:51 +03:00
Makefile tpm: Add NULL primary creation 2024-05-09 22:30:51 +03:00
tpm-buf.c tpm: Add HMAC session start and end functions 2024-05-09 22:30:51 +03:00
tpm-chip.c tpm: disable the TPM if NULL name changes 2024-05-09 22:30:52 +03:00
tpm-dev-common.c
tpm-dev.c
tpm-dev.h
tpm-interface.c tpm: Store the length of the tpm_buf data separately. 2024-05-09 22:30:51 +03:00
tpm-sysfs.c tpm: add the null key name as a sysfs export 2024-05-09 22:30:52 +03:00
tpm.h tpm: Add NULL primary creation 2024-05-09 22:30:51 +03:00
tpm1-cmd.c
tpm2-cmd.c tpm: add session encryption protection to tpm2_get_random() 2024-05-09 22:30:51 +03:00
tpm2-sessions.c tpm: disable the TPM if NULL name changes 2024-05-09 22:30:52 +03:00
tpm2-space.c tpm: disable the TPM if NULL name changes 2024-05-09 22:30:52 +03:00
tpm_atmel.c Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
tpm_atmel.h
tpm_crb.c
tpm_ftpm_tee.c tpm/tpm_ftpm_tee: fix all kernel-doc warnings 2024-03-12 00:26:05 +02:00
tpm_ftpm_tee.h
tpm_i2c_atmel.c
tpm_i2c_infineon.c
tpm_i2c_nuvoton.c Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c char: tpm: Keep TPM_INF_IO_PORT define for HAS_IOPORT=n 2024-05-09 22:30:50 +03:00
tpm_nsc.c Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
tpm_ppi.c
tpm_tis.c - Kuan-Wei Chiu has developed the well-named series "lib min_heap: Min 2024-03-14 18:03:09 -07:00
tpm_tis_core.c char: tpm: handle HAS_IOPORT dependencies 2024-05-09 22:30:50 +03:00
tpm_tis_core.h
tpm_tis_i2c.c tpm: tis_i2c: Add compatible string nuvoton,npct75x 2024-03-12 00:26:06 +02:00
tpm_tis_i2c_cr50.c tpm: cr50: fix kernel-doc warning and spelling 2024-01-09 11:12:27 +02:00
tpm_tis_spi.h
tpm_tis_spi_cr50.c
tpm_tis_spi_main.c Hi, 2024-03-13 12:25:46 -07:00
tpm_tis_synquacer.c
tpm_vtpm_proxy.c Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
tpmrm-dev.c
xen-tpmfront.c