summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2026-11-10 14:49:51 +0200
committerJarkko Sakkinen <jarkko@kernel.org>2026-11-10 14:49:51 +0200
commit8cff8f1c89d33e55c9af82177b14f6f9f6a899fe (patch)
tree4fbc7ad5a1c7634cca45c12b5cccfed4a30a86c3 /include/linux/debugobjects.h
parentb3dfbde62cf1981c4638939c159dfd087b7a72e9 (diff)
tpm: Check return value of crypto_kpp_set_secret()
crypto_kpp_set_secret() can fail, for example if the kernel is booted with fips=1 and the broken-by-design FIPS RNG used for ECC private key generation doesn't feel like generating random bytes at the moment. Check for error, cancelling the TPM session creation rather than proceeding with a zero or uninitialized private key. Fixes: 699e3efd6c64 ("tpm: Add HMAC session start and end functions") Cc: stable@vger.kernel.org # v6.12+ Signed-off-by: Eric Biggers <ebiggers@kernel.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20261025211119.138277-1-ebiggers@kernel.org Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions