[PATCH v6 01/13] KEYS: Add key_gc_flush() for draining RCU callbacks

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




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