[PATCH v4 07/11] KEYS: trusted: TEE: Synchronize session lifetime
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Nov 8 13:16:21 UTC 2026
> While the sysfs bind attributes are now suppressed, the parent TEE device
> can still remove the device while the 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>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261107131512.3603168-1-jarkko@kernel.org?part=7
More information about the Linux-security-module-archive
mailing list