[PATCH 3/4] KEYS: trusted: Remove dead branch from tpm2_unseal_cmd
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Nov 15 22:50:53 UTC 2026
> TPM2_Unseal requires TPM2_ST_SESSIONS, and tpm2_unseal_cmd() always does
> set up either password or HMAC session.
>
> Remove the branch in tpm2_unseal_cmd() conditionally setting
> TPM2_ST_NO_SESSIONS. It is faulty but luckily it is never exercised at
> run-time, and thus does not cause regressions.
>
> Reviewed-by: Jonathan McDowell <noodles at meta.com>
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261115224722.1450498-1-jarkko@kernel.org?part=3
More information about the Linux-security-module-archive
mailing list