summaryrefslogtreecommitdiff
path: root/scripts/livepatch/init.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko@kernel.org>2025-12-01 15:38:02 +0200
committerJarkko Sakkinen <jarkko@kernel.org>2025-12-05 06:42:44 +0200
commitbda1cbf73c6e241267c286427f2ed52b5735d872 (patch)
tree0ec5dbc502caca85d9c5630a9b910c482af7e2fa /scripts/livepatch/init.c
parent6e9722e9a7bfe1bbad649937c811076acf86e1fd (diff)
tpm2-sessions: Fix tpm2_read_public range checks
tpm2_read_public() has some rudimentary range checks but the function does not ensure that the response buffer has enough bytes for the full TPMT_HA payload. Re-implement the function with necessary checks and validation, and return name and name size for all handle types back to the caller. Cc: stable@vger.kernel.org # v6.10+ Fixes: d0a25bb961e6 ("tpm: Add HMAC session name/handle append") Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Reviewed-by: Jonathan McDowell <noodles@meta.com>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions