[PATCH v6 03/13] NFSv4: Clear idmap keyring cache when the last client unloads

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 12 04:31:28 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/20261112040242.247168-1-jarkko@kernel.org?part=3




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