Article View: linux.kernel.netdev
Article #16480Re: [PATCH v6 00/13] KEYS: Sanitize the garbage collector
From: Jarkko Sakkinen
Date: Sat, 14 Nov 2026 23:28
Date: Sat, 14 Nov 2026 23:28
27 lines
9791 bytes
9791 bytes
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. Br, Jarkko
Technical Details
Message-ID:
<avjutAro2-Q5VPvx@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363493-linux-kernel-netdev=dewy.ruReferences:
<20261112040242.247168-1-jarkko@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363493-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:28:52 +0200 Organization: Usenet Network Message-ID: <avjutAro2-Q5VPvx@kernel.org> References: <20261112040242.247168-1-jarkko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1686695"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:sDRpA3rT8tn0eYMBV+sGzsDWSPo= sha256:fdvaTdodDc7QX3F9H61XJ2LvgHGKixHuKwm3orQEKKA= sha1:hioI59RMYmB6Kqxru6l0eGmnjWY= sha256:S2Iq/ywQXUvO06ZXd+L6gNk+Ygh0f42X3N0tVezG7OI= 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 4A6421148FD; Sun, 15 Nov 2026 02:29:22 +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 erIMrmWsyMR4; Sun, 15 Nov 2026 02:29:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363493-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 59D241148DD; Sun, 15 Nov 2026 02:29:09 +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 AF5893FE80; Sat, 14 Nov 2026 23:29:03 +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=1794698937; b=klHfpvG0b4/GhGj/o15IxqW9afgwFMOW/Ik0hlTtzmIYl3o5JQjovNQJuQflZ9yCiEp0 1mwAppInCK2lyx+pU4peXvCXNY1yFHHQVijCe8QeylajrtATAJ8lCJtkBQ7GqzoqyB0RG 1CY2DlJWYPNQyYUmWVcLvuXGTh5g3P9D0w5Zi0IP/OMIXhJdvvWv/nXFb5FxN85R77tde 3hNw7ibzl08nEuklXKr90JKGG2+fqvGijIUwdELwHFpWhJnryLtMtXsCFL/+GKF4EkDgR f/AJNnH+8RJvQ2FYrxOVb4QjycWzHUEcdm6nXwxQ8RBs8rM7f298LEDttYdgpXyxqjg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794698937; 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=QxgbBTCWsStn71Jsz05WFHT8X6vz351Ef2Am8WUTxSc=; b=UyZkftKUK+th2jJdqgSDhjWYYUPembpn4L0zXwc3/1InQWzpVi+cFKUyIVqVpWQrIdbB Qyo1/LYKFSZw1c5GNIK+zZCvi+eVnQhGjpn5v0nvK7vJOxHoYS55fAU2Cu0RdR3mEKSMh 2hkKyGwt5+1cAt3bgdzFZOnRhn4ddNtTBWie5oEDpXJM9FcUuJD6ycjSA5HoX0QEvqZCr 9m2+/Nj/ttDdXbmSt9kOcHSr+79LRXrCNeHu2eGefn2H2KHzoZ/shEygJqf50ZbfYHCb+ RTji+zV6iKs1Ao3QUpT75tBMkWZaJ0MUMToOS1m+aLKe9lDvse/n54JsKchv8BRCS8Q== 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=CcueqTvJ; 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 ADE11606A339; Sat, 14 Nov 2026 23:28:57 +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=CcueqTvJ 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=1794698936; b=CgMw6Bg2Gs3DHldM0eoXwqZuC1eh0VLt8y9QM3F5I5LMKZecT0YhCtCzqholNo9COmE6 q+lFhOoabbGfwd/cIUT44MSS1H6SIHP8BcYVOw4uEJ2iK3Sq5RWdhE8TyuRYgJqTxb4Vv taVcKMxOxcnhlqAdg8b0h89YCWOE/Wix/p6v6sH+zL8Cct2jlPgdhVjLlwZoW/uXwCb5w cviGlprwLfV9A4Yrcf8btj6cNq22I3Y53m60QhpQBIWNKM/6ftDp5Z3w/8MQfp1M7FHJa zlR3zMdp2JUh48ifXorUcMILzjTlzd2gmHFYYnxC06zoz7SiV37uX+n4y1b65UrVK/A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794698936; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=QxgbBTCWsStn71Jsz05WFHT8X6vz351Ef2Am8WUTxSc=; b=mS0Lh5pNNzAcOQOopLEgj/bb5AAeonTuXsHKjuuisEepKQuuXUZvemK/fmouZti0Ybri NGeVxuxiWPvNW/BWTF2ieJaIzfcj+s0M+3l2p+6eki1bhEN7pKRHCguV7FReCC4ffmheK fPKTUXiEf4CbJ8agOsHDOHItSZVM/ERfEXnMIDqlHu3QuX5TE9giO7cGOpfayA0pFUISI +/NsHrE69lKoAarDU7ba/v59O9lUgEvolcWZqH7PewpQsHDqT4Dc1RWPYMuAZJCEjF3su XEAru4eC+kMY7N4+ysLF9YZaUMQMx5x0vRtrAHK6OfVIe8NT9/sJ7/pAE8+ehrxJk8A== 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=CcueqTvJ; 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 C9758606A329; Sat, 14 Nov 2026 23:28:56 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id A66691F000C4; Sat, 14 Nov 2026 23:28:55 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794698936; bh=QxgbBTCWsStn71Jsz05WFHT8X6vz351Ef2Am8WUTxSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CcueqTvJTGbepbaXa6N2hDzZ1Z3g3dEoia+l6XBVumHg3wnH5cZOI2Ax9aWKES13Z h6YaDY3dlt98ceXOzmF+KuXTPYAyyg3vmDfAj91SBWq3NTwJhyT6ZEF1KwcANZCvog hwwPLwHEocMzdNBaRLUMv/GolT4R3O5XVi5nwjW+p3c3caHWauTYQ+ZQ/sUZAdol9W b/7jI4hZJGKRo6phO/tkyJIrQK4ZQkx3Ul39qeLqBdhAKSQEsKEnhS589d5rl8wfHJ 4n6IYPzGEb2ZqrhGzYp+r1QmdY2U59IfRpIUXj9Q/ICOO0rELmrmuRlNPYjBAQRvia zvpTNZoKShgUw== 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: <20261112040242.247168-1-jarkko@kernel.org>