[PATCH v5 06/12] KEYS: trusted: TEE: Synchronize session lifetime

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Nov 9 22:28:27 UTC 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KEYS: trusted: missing Fixes trailers for TEE lifetime and
  init_trusted() fixes
--

commit 081b81fce481c8193427ac02abce847085159640
Author: Jarkko Sakkinen <jarkko at kernel.org>

> KEYS: trusted: TEE: Synchronize session lifetime
>
> The parent TEE device can remove the client device while live instances
> keep trusted.ko loaded.
>
> Update the static calls before invoking backend init() and reset them in
> the case of a failure.
>
> In the TEE backend, guard session context state with a mutex, publish
> pvt_data.dev before registering key_type_trusted and sanitize pvt_data on
> probe failure and removal.
>
> When an active TEE has not been bound, reject seal, unseal and get_random
> with -ENODEV.
>
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>

[Severity: Low]
Should this include Fixes: tags for the TEE session lifetime handling and
the static call ordering in init_trusted()?

  Fixes: 0a95ebc91305 ("KEYS: trusted: Introduce TEE based Trusted Keys")
  Fixes: 31de287345f4 ("KEYS: trusted: Rollback init_trusted() consistently")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261108222719.304712-1-jarkko@kernel.org?part=6



More information about the Linux-security-module-archive mailing list