From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BF31606A322 for ; Sat, 5 Dec 2026 17:19:44 +0000 (UTC) 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=MHF62Uhy Received: by kanga.kvack.org (Postfix) id 237EE6B05B2; Sat, 5 Dec 2026 12:19:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 20F526B05B8; Sat, 5 Dec 2026 12:19:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12CC56B05B9; Sat, 5 Dec 2026 12:19:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DAD3D6B05B2 for ; Sat, 5 Dec 2026 12:19:42 -0500 (EST) Received: from smtpin05.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5662F14061E for ; Sat, 5 Dec 2026 17:19:42 +0000 (UTC) X-FDA: 85510591404.05.7F96110 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by imf24.hostedemail.com (Postfix) with ESMTP id B168218000D for ; Sat, 5 Dec 2026 17:19:40 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=MHF62Uhy; spf=pass (imf24.hostedemail.com: domain of jarkko@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=jarkko@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796491180; b=aviDr/n2bEAAt6PXMkSH4iRJD7uiu3hmghukuJDppMIIECdczIL9gx4CzQYAvM6GQk7JSF 42b5gb3GAm9ZRwRTgfRbb82UdyMb+v96sYmWc8HaJdIHBFScJlqKDpKeD6AHM7l5DRvzTP k3urtgfbdf9RQjMeYD2bjdAFjp1j5YY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796491180; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=aj8aBIiIVXUJTFUtOQZbeps84ZraZ0MyINj4FUZz3uI=; b=8pVVi+h9Z2A3Pfgr7mn+N6eQqNKq+ihOA1JeSOUYJNTCKi6no1uM69KJqm8xyuJcsdRMQ0 wu+iF+BKwvlVWTnVRYTSD48LiVEbz1eEeOnbkozj4rTxU+JP75ISghSIlmaMxtUYegfS2D 16d/y69jkRz/RYG6DsIjgxlwQJltDVs= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=MHF62Uhy; spf=pass (imf24.hostedemail.com: domain of jarkko@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=jarkko@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with UTF8SMTP id 56D2A60D60; Sat, 5 Dec 2026 17:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 4FA1F1F00936; Sat, 5 Dec 2026 17:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796491179; bh=aj8aBIiIVXUJTFUtOQZbeps84ZraZ0MyINj4FUZz3uI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MHF62UhyXQg4fxh81Y1fkBDwzthJBzs7iA/U2T/zzjVPxwPKXC0CK5vfuwqFLh4lw ogTMhDJPgejWs5DebgnZvYrvnDjwJKUerulvHak1WSX01IiWYk4bQH0B//PoyMddDv t0hXPPg0Lpac4ppnHVV6yvJzUG5bC7j6k+yF5kFcpJ+Hq8Z/ZcfPZgSghDhRwc4svp 8R8a5E/1veW4tB7CPld+Dtwwmwx24zEHXT4nnZ1zELQhlTF/AW8h090cGT5BTGpWct SH358DEGnUGGwItcHjonPvQk7IV7Py48JhAgp1tsrfcjpU1qPnqRFa+rA2OMu1ByPD wfPMNPdzbeWTg== Date: Sat, 5 Dec 2026 19:19:35 +0200 From: Jarkko Sakkinen To: fsdevel@vger.kernel.org Cc: bpf@vger.kernel.org, containers@lists.linux.dev, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, Aleksa Sarai , Alexander Mikhalitsyn , Alexander Viro , Alexei Starovoitov , Andrew Morton , Andrii Nakryiko , Andy Lutomirski , Arnd Bergmann , Baolin Wang , Ben Segall , Christian Brauner , Daniel Borkmann , David Hildenbrand , David Howells , David Woodhouse , Davidlohr Bueso , Dietmar Eggemann , Eduard Zingerman , Emil Tsalapatis , Eric Biggers , Georgia Garcia , Giuseppe Scrivano , =?iso-8859-1?Q?G=FCnther?= Noack , Hugh Dickins , Ihor Solodrai , Ingo Molnar , James Morris , Jan Kara , Jason Gunthorpe , Jeff Layton , Jiri Olsa , John Johansen , Jonathan Corbet , Josef Bacik , Juri Lelli , Kees Cook , K Prateek Nayak , KP Singh , Kumar Kartikeya Dwivedi , Lennart Poettering , "Liam R. Howlett" , Manfred Spraul , Martin KaFai Lau , Matt Bobrowski , Mel Gorman , Michal Hocko , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Mike Rapoport , Neal Gompa , Oleg Nesterov , Paul Moore , Pavel Tikhomirov , Peter Zijlstra , Randy Dunlap , "Serge E. Hallyn" , Serge Hallyn , Shuah Khan , Song Liu , Stephen Smalley , Steven Rostedt , Valentin Schneider , Vincent Guittot , Yonghong Song , Zygmunt Krynicki Subject: Re: [RFC PATCH v10 00/28] runfd: Staged namespace execution Message-ID: References: <20261205032633.1702772-1-jarkko@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspam-User: X-Rspamd-Queue-Id: B168218000D X-Rspamd-Server: rspam03 X-Stat-Signature: nd5meu9iotddkze57ntxpd6hijisp1ni X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-HE-Tag: 1796491180-481735 X-HE-Meta: U2FsdGVkX1+lQ8FnT9oY+BXUzk3bjwCj+P+dtb5KTpHl6rZzjC/m0wS0y7XBa0SO4AQ4IR6f1lDEUaG02U7wG69h8UdbZqP6Vy1Tt8fM5TSzKip5AO+vnd++TlseyUWYTDXHpZmNW9zHUuqUJ4Pd846brQ5tjcy8LePtOPT7MhNOFyoSUemSneqIdEdGCjfYhTUa4FVdU9ukxaj198K+J3/Q3n5xxxmsqzsKc+2b+Kmpkgr0C9GwnuybZ1jhHwAZAZejBYvEuU00+b28dTwZabJhqHXcuLrQ73Ecz8lepw1nUL2RXODv7bxG6xT+uggd6vvCe7N0Pe90t3GKAZjRdv4gzE+KUpy6tGux/NoMYtH8dtIBC34b0F6WpOS8P1F3H4PDILMAnZCxjpanxNt4yhlB5+mcyWoTf+gOthHGS4Gwowx1DEZ0aqXmBYfanIqEGUOKjWkW0MbMz5bBdRFbLrANcTretJ8HyCV5a9/ft1MNAIz1YjgoC/ZhYSOEv0CN9G5VSGlV3kfwmWSg8BXSeRcfPo78xMBYrCoUD8347OvFrUX8r5yZ81/cv+pNXYxqZM9lL1KnyuhePEOHZRURPlqNq6QSOFj1q+6/+Opt/JME5CXqJiQnphhC9ED/wYG3lX076wDP/il6Rn7rMzGVWQVH/imF8lQkR/JXEbYEiGs6HLMvAN8cEZKayEqxjw+3AK7AyQHewOgu/PhyfgX/piUXelgbX1S1KTWm4sGyQEaKvrxyvvICRo2VajRx8mqL1EMU2cyKkwO+85Vpl9+4mkCDwo5lfDIbk3sv4WAcUKuB4acoTfL27bu3Vx1xh+tlCc6LZ+LIkDHpl/HZ1yFdAdqEH4DgQRKj5ciZr6QgPqBjUlmN6De4etfIqmcV+tvDkDhwXn/3ihsMbCKCO3wvEr07ncQlL2bCMSTfkcqgkj6kvdH7n2OVsAlJDCp/Jy+edE8nIPCVGJAdo273vz1 f1bnoALo TqmjUTRTcaVzj1eoEgRJttJ4uLVjev46Qb45b0z8tnCIJwN/3NKGQUWIQbli82oElr3fKKU02v8/oFKem7VLWWoFfpOR6uLZYcmrxQhEsV+AVtGZWjXd+3b40stgUkQ6nyVBNeFgVsKtz6/0xDEc3n6Leq+cH7G7LUeGaYmqRjpnRz22TnqmjKG6lbp9BPvO0Vefio4k1A1x1WLLVJElJ5cTD7goZjEVNElKppOpD+VS0/yxN/TKiVsunXbyWL07OQnIpknf5TcvJ0lV+Pm7ZZUKMlqPh9f4Is8j5jXS5aSRkbUQzLynElPV1ROc2xHWReYDLShWeE8O9pGb7D3DwgwQMICgdknlja1zvupv1dpqC0IywY3r6vYqegmKIOSBumtSiuhVW1ZqNW+AiBVVfi9cYgBRWj2nixGQUsQ/CZwzLKwpl1SdK2JFt9oqQbqkl1hQfCpqvNlXtB5KMHgFP6jf4HwQYAtKcVogi5eKiKm3rZouG5Y7Pa5xspI9aIedwMmW5qtkPLrjpVfqO/oGwcFHpAQtKQKw2gtwj Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, Dec 05, 2026 at 06:56:49PM +0200, Jarkko Sakkinen wrote: > On Sat, Dec 05, 2026 at 05:26:05AM +0200, Jarkko Sakkinen wrote: > > v10: > > - Reduced to *SINGLE* new syscall. > > - Rename nsexec_open() to runfd() and update the related interface names. > > - Replace userns_set_idmap() with the NS_SET_IDMAP ioctl on the user > > namespace descriptor. > > - Drop the in-tree nsexec selftests and package the standalone ucells > > runner in the Buildroot runfd image. > > - Include the runfd kernel-doc in the userspace API manual and register > > the ioctl range in a separate patch. > > LSM pollution is the next potential target of redundancy now that > syscall pollution has been fully addressed. > > At least these are low-hanging fruit: > > 1. security_runfd_free() is redundant against namespace_free(). > 2. security_runfd_share() should be replaced a shared hook with > Landlock, which already contains an equal hook. > > I'll address this and then I don't know i.e., need to see first > how LSM surface appears after these updates. > > My goal is to squeeze this patch set around 2000 LOC but not > sure if that is possible :-) A realistic bet would be something > like 2300 LOC of added complexity but let's see how this goes. A patch set could not get much more legal-safe core feature patch set than this. It has back-trackable source of origin starting from 2017, and has been ever only hosted by git.kernel.org. I believe it all started from the input of a Netflix engineer at LPC 2016 that I also had a hallway discussion with. He complained about having to spawn VM per stream. Soon after David's patches appeared. And Netflix has switched to FreeBSD Jails since. I would bet that David met the sam guy. The progress has been moved slowly but steadily with multi-annual pauses now a full decade cycle as LPC 2016 was at late November. This is why a legit and backtrackable re-use is so awesome. No matter what you start with, you're always on path from "more broken" to "less broken". Br, Jarkko