[PATCH v4 01/11] KEYS: Add key_gc_flush() for draining RCU callbacks

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sun Nov 8 13:16:14 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/20261107131512.3603168-1-jarkko@kernel.org?part=1




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