diff options
author | Jarkko Sakkinen <[email protected]> | 2024-07-03 18:47:46 +0300 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2024-07-05 02:12:27 +0300 |
commit | 7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d (patch) | |
tree | 3e60964581087995aed217d27936a5b27ffab991 /scripts/bpf_doc.py | |
parent | a61809a33239821d70eba77bd0d6d13c29bbad0d (diff) |
tpm: Address !chip->auth in tpm_buf_append_hmac_session*()
Unless tpm_chip_bootstrap() was called by the driver, !chip->auth can
cause a null derefence in tpm_buf_hmac_session*(). Thus, address
!chip->auth in tpm_buf_hmac_session*() and remove the fallback
implementation for !TCG_TPM2_HMAC.
Cc: [email protected] # v6.9+
Reported-by: Stefan Berger <[email protected]>
Closes: https://lore.kernel.org/linux-integrity/[email protected]/
Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
Tested-by: Michael Ellerman <[email protected]> # ppc
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions