[PATCH v5 01/12] KEYS: Add key_gc_flush() for draining RCU callbacks
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 9 22:28:23 UTC 2026
> keyring_clear() and key_invalidate() release keyring links via call_rcu(),
> and key_put() defers final key destruction to key_gc_work.
>
> Once keys pin their type, callers that clear an internal cache before
> module unload need a synchronous barrier so module references can be
> dropped before delete_module() checks the refcount.
>
> Add key_gc_flush() for flushing the remaining key_gc_work passes.
>
> 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=1
More information about the Linux-security-module-archive
mailing list