diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2024-04-29 16:28:11 -0400 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-09 22:30:52 +0300 |
commit | eb24c9788cd90db397b3e41322aff4a5557623b4 (patch) | |
tree | 04195ece62ff15a24cafa0fed23ba9c24ca34863 /LICENSES | |
parent | 3d2daf9d592e435c46a91841602e52ecbad48602 (diff) |
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>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions