🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16481

Re: [PATCH v6 00/13] KEYS: Sanitize the garbage collector

#16481
From: Jarkko Sakkinen
Date: Sat, 14 Nov 2026 23:35
30 lines
10040 bytes
On Sun, Nov 15, 2026 at 01:28:56AM +0200, Jarkko Sakkinen wrote:
> On Thu, Nov 12, 2026 at 06:02:29AM +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.
> 
> This passes bot+bpf-ci@kernel.org and Sashiko other than the remark
> about inline comment.
> 
> I'll update the inline comment, and make the commits available at
> -next.
> 
> I'll leave S390 fixes out as they are out-of-band. They can be
> picked from this patch set; or I can later on send a separate
> patch set.

Done: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/log/?h=for-next-keys

Br, Jarkko
Technical Details
Message-ID: <avjwUDaXiAwNvFai@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363494-linux-kernel-netdev=dewy.ru
References: <20261112040242.247168-1-jarkko@kernel.org> <avjutAro2-Q5VPvx@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363494-linux-kernel-netdev=dewy.ru
From: jarkko@kernel.org (Jarkko Sakkinen)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v6 00/13] KEYS: Sanitize the garbage collector
Date: Sun, 15 Nov 2026 01:35:44 +0200
Organization: Usenet Network
Message-ID: <avjwUDaXiAwNvFai@kernel.org>
References: <20261112040242.247168-1-jarkko@kernel.org> <avjutAro2-Q5VPvx@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network; logging-data="1687634"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:x0Ju/zlsx1RdE96FlGbHTw0Hq6I= sha256:PhCETrYa9Is+ZPJPtMIgyrm7vooKEracZ3zTgGc53Zs= sha1:YK940HnT6f/aHiDKsml4P653p8k= sha256:xJteLZnzqU0ZuOAMd1qC++s+906v3MNuaFxWw62PD5M=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 240A61148FE; Sun, 15 Nov 2026 02:36:19 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id clDwUN5ZKen0; Sun, 15 Nov 2026 02:36:15 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363494-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D2572112024; Sun, 15 Nov 2026 02:36:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 0B529414EE; Sat, 14 Nov 2026 23:35:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794699349; b=JKX/Xg1VMTr3tkbmbY7AYKzdJlOLyPq1rzX468Qp4MF3EcNasLGDf21z4Q3W9epgdgGZ /3g5Maqu0nlppwe75rf93H/LCXB3Q7RyzkAv/IH+OJH2LryLR8ZvtVZZhGMzEQmaEcarn xZ0OOcecjdVFe/nxcVKSuoI1HjIXX5qLB2L7DIkWsUl0f4bgzkhIvh4nlbkoSeCpkO07v HHwPOg0SogExqZxCkIqY32672FndAM0Atdqi52HHJUi5GwfMr2gI3vRGFiWlyXEmMtkIy 9q04EbpbOl//vr00vZeXBLS5qlHdUSEUMD8/8WXvVi0fmOqRLFlPI4wvgtWr2UaT3sA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794699349; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=VIR6mXYK3ETiApKWl+z2FejP/5a8onBjeYRAKhIC2pc=; b=vc+5/zdDV71/zwmRmuSw+OWnXpi/ePYM6PXdWyPZN/TkJ1hzaGLLcmDW1eFEyqRooSql QShRztMwnog9ko945D/tZYLTa8VZCGJPX7AVQ4FuNaI6Fw97Ocp4lSWtx6AONEl8QKDYf JPoCumw0yqu0mB7paIKbZfa+vNQWxK/meSbsMh3a9ELvwtAmiHYKaBRlP34Epmec2NKSk dXKcCsaQUAZFGCbDJWj/GtEzXF2/j53OuveqPv1LyegpJ3qF5Ug7n9fcGdhbBmutbGMKd j2dPRX3L3wSpQ15/cf+T9oYux97msPQYLN46pz7qKmM2OuZ2M/wCKsBbuDIOo+u2ZwA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZZQFDPr2; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B162606A885; Sat, 14 Nov 2026 23:35:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZZQFDPr2
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794699348; b=1Wb9XrXVcsBFizCfoluSzpywGcgS5n+WOkx79mLLlcylfOAzyofhykWRc1Aeu6awI5tt s0HI6BM2OJfih16WZ1cPyV9utCGxOX5htm8DjtiKDZxV455PkaOxWMypYyJIpmhjPBmFS 4fOD8oEdfe7s4Vcz0FAfe9ziYaaneYUopGs1pfABzZ3z/PduGrZdCi+VnvpV2huzSUT60 bFBBiIEBx6x2EHB8diJV1oBq4GKkGI3jBQKox/3MaxGVzducTgqeMRO8R77rCQwfVrsSG TmFri4L23TFnztKD/0NqJhzV2lDhnpN3grh+AJ8mf+UCseX9tQtqvl1f7IyUaTOu1Fg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794699348; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=VIR6mXYK3ETiApKWl+z2FejP/5a8onBjeYRAKhIC2pc=; b=oME7icCvfLRnlNUlBjEljHrxDnBSt60jUksFlx1BlF8FevroSG5+N2kJ7DQJ/MPiDD0E omQpC1x1r4Ucfyipql9Zvgl64X2brPfaCnjiYYzk8jEiIPlCKJKqDpIC3wAhIvVHLRVE1 xupD7Fsaul/DxjJ5w7pEedFY3HWcsAnswe2QdPw5hMSKfLnVFKjWbzJ4uOXuNT3W1/ZlF nIldnw7RJ5+l1exM0ckWk084mhHwfAZhvcjI3Khzfrs5E71HsKdk77fHlrNdfjbtaLd+t qddjqxXkq5EBcD6sok15QVXtV5RrReu51xRQj1ZoLT/iDspi/RKp9SYrTfIpPqhr0MA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZZQFDPr2; arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 5DCCC606A329; Sat, 14 Nov 2026 23:35:48 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 42A021F000C4; Sat, 14 Nov 2026 23:35:47 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794699348; bh=VIR6mXYK3ETiApKWl+z2FejP/5a8onBjeYRAKhIC2pc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZZQFDPr2OBteoJK60ty3lgYNXS982/JqevYnayq5M2JVQt56VdJ0f7HgXeEBXp7XF CYD7i9q4a6s4qq48G33GZIZ7L7NDnGKKgS+Zd7cfEUxuqFx+vjuOFx7fJkkIjLF3j7 BPxRY+5oqsHntFgHsq77skoWTKPkj0x48vYhVdR8SAWzHLjrkNJiwM8qHDB7G0wZNW K3FzuiTooW3tl0aiWfgk/x35HLj1Fmx8h/X9zphKIrw+uzyLGMw4pFFdjyFbLxmWmq 7Sky8LjYCk3m7OheBofEcorLf8EV13An9NDMZNhLmq8c4R/5NoM//E+m0T9xsssCgg jYU0VRyjZhqhQ==
X-Cc: keyrings@vger.kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-s390@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, Alexander Gordeev <agordeev@linux.ibm.com>, Anna Schumaker <anna@kernel.org>, Bharath SM <bharathsm@microsoft.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, "David S. Miller" <davem@davemloft.net>, Eric Biggers <ebiggers@kernel.org>, Eric Dumazet <edumazet@kernel.org>, Heiko Carstens <hca@linux.ibm.com>, Jakub Kicinski <kuba@kernel.org>, James Bottomley <James.Bottomley@hansenpartnership.com>, James Morris <jmorris@namei.org>, Marc Dionne <marc.dionne@auristor.com>, Mimi Zohar <zohar@linux.ibm.com>, Namjae Jeon <linkinjeon@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Paul Moore <paul@paul-moore.com>, Paulo Alcantara <pc@manguebit.org>, Ronnie Sahlberg <ronniesahlberg@gmail.com>, "Serge E. Hallyn" <serge@hallyn.com>, Shyam Prasad N <sprasad@microsoft.com>, Simon Horman <horms@kernel.org>, Sumit Garg <sumit.garg@kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Tom Talpey <tom@talpey.com>, Trond Myklebust <trondmy@kernel.org>, Vasily Gorbik <gor@linux.ibm.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <avjutAro2-Q5VPvx@kernel.org>
X-Received-Bytes: 9755