diff options
author | James Bottomley <[email protected]> | 2024-04-29 16:28:11 -0400 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2024-05-09 22:30:52 +0300 |
commit | eb24c9788cd90db397b3e41322aff4a5557623b4 (patch) | |
tree | 04195ece62ff15a24cafa0fed23ba9c24ca34863 /scripts/gdb/linux/modules.py | |
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 <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions