Re: [RFC PATCH v3 00/11] KEYS: Sanitize the garbage collector

From: Jarkko Sakkinen

Date: Wed Nov 04 2026 - 20:05:20 EST


On Thu, Nov 05, 2026 at 02:52:59AM +0200, Jarkko Sakkinen wrote:
> 1. Replace key_type_dead retyping with module reference pinning so live
> keys and restrictions keep their backing key_type module loaded until
> key_gc_unused_keys() or keyring_destroy() completes.
> 2. Process serial-tree scans and graveyard destruction in fixed 64-key
> chunks to a bound workqueue execution latency without hurting overall
> throughput for a significant amount.
>
> The first part has a user-space visible effect: rmmod returns -EBUSY while
> keys or keyring restrictions still pin the backing module.
>
> Internal key caches or transport state bottlenecks are addressed by either
> clearing their private caches on last-client teardown or splitting key
> types into dedicated provider modules.

<samba-technical@xxxxxxxxxxxxxxx>: host
lists-mx.samba.org[2a01:4f8:192:486::1:0] said: 550-Please subscribe the
address jarkko@xxxxxxxxxx to the samba-technical 550-mailing list before
posting. See <https://lists.samba.org/mailman/listinfo/samba-technical>.
550-You can also write a mail to samba-technical-owner@xxxxxxxxxxxxxxx and
ask 550 to get on the list of accepted non-members to be able to send mail
here. (in reply to end of DATA command)

This was accidentally pulled by:

./scripts/get_maintainer.pl \
--nogit \
--nogit-fallback \
--norolestats v3-00?[1-9]-*.patch | \
awk '{print "Cc: " $0}' | \
sed -i '/^Subject:/r /dev/stdin' v3-0000-cover-letter.patch

I'll address this in the next version but perhaps that email should be
removed from MAINTAINERS?

Br, Jarkko