[PATCH v6 07/13] KEYS: trusted: TEE: Synchronize session lifetime

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 12 04:31:32 UTC 2026


> The parent TEE device can remove the client device while live instances
> keep trusted.ko loaded.
> 
> 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.
> 
> Cc: stable at vger.kernel.org # v5.15+
> Fixes: 0a95ebc91305 ("KEYS: trusted: Introduce TEE based Trusted Keys")
> Reviewed-by: Sumit Garg <sumit.garg at oss.qualcomm.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/20261112040242.247168-1-jarkko@kernel.org?part=7




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