[PATCH v5 04/12] smb: client: Clear idmap/SPNEGO caches when the last session is unloaded
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 9 22:28:26 UTC 2026
> CIFS caches cifs.idmap and cifs.spnego keys in the module-owned keyrings
> that are only destroyed in module_exit().
>
> Once keys pin the kernel module of the key type, the cached entries will
> retain CIFS pinned after the last SMB session has been torned down.
>
> Serialize the session count transitions with a mutex and clear the idmap
> and SPNEGO cache keyrings when the last session is freed.
>
> 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/20261108222719.304712-1-jarkko@kernel.org?part=4
More information about the Linux-security-module-archive
mailing list