[PATCH v5 03/12] NFSv4: Clear idmap keyring cache when the last client unloads
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 9 22:28:25 UTC 2026
> id_resolver_cache->thread_keyring caches id_resolver_legacy keys up until
> nfs_idmap_quit() tears down the keyring.
>
> Once keys pin to the kernel module of their key type, the cached keys
> prevent module_exit() from ever happening.
>
> Track the active idmap instances under a mutex and clear the idmap cache
> keyring once the last client has been destroyed.
>
> 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=3
More information about the Linux-security-module-archive
mailing list