[RFC PATCH v2 04/11] NFSv4: Clear idmap keyring cache when the last client unloads

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 4 03:03:04 UTC 2026


> id_resolver_cache->thread_keyring caches id_resolver_legacy keys until
> nfs_idmap_quit() tears down the keyring from module_exit(). Once live
> keys pin the key type, cached keys keep nfsv4 pinned so module_exit() is
> never reached after all mounts are gone.
> 
> Track active idmap instances under a mutex and clear the idmap cache
> keyring when the last client is 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/20261103030226.2685251-1-jarkko@kernel.org?part=4




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