From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796153393; b=L8MnBXrS75vyqEd3hyxI/jZpXrI3OLPZXVas2AE7TaKpiwQ2b0SlzLHB6Mj8mfgvurlf gcItHd8yVW89HKKP3o/Ni74XUkcnSRLQofLTAzJcVqVF818wfP3cmPlMTgLV6EqROW2Qo u3i+yY+KxbuO4zrE/GSpPwXnAvTg/3F9GD9dumlpGO/Zd2FQcLFnKYOGa3Efdfpc714HE nU+S5A4QmyvSnEPSvRFp+t6tr4tzI7mrbwJ4XMy6k62mWgvJbCGBz1bi17sVdIdhA6ooh V7LLaEsRK7caNjZU4twiT7+/KllMmWjw9Mb2X8B4ahAhcS/LHXyILNErqWzwB2erFUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153393; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=KJrcDNy9lf99MCMp3Vg7r+Q2gCjYwF2jExXylRFNa78=; b=CJNVaU1e3D1RD8VzGFmlVshKD43JcW3NVgy/9e4lURxW+9nTrlLQf2hrps+na4wJVsrk ggBCnVUz2mu+kkBfKTmyDYyyq+sWZwSmSXi12BjTHfbyYYrBepCYfVpFeONC1oB7eLL4s yrHq5ho0qNcw8u0GbvXJRujqDvP99VWkhxGI+5Pzu2eDyDengqZP622BKgvByy/NBOCDP yxeEVN/lION7EpYyzkie4s7i2ml99BiHnId+CHat2/f+eP5SYwt2VOOpneg3MQTez6mvq uDWu5kRZiTSJtlJCMIggxXLic3X2EQ3S/o/zz4Np8qDjSSy6ANjj+tyihy7ZWcoqiqQ== 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=nIOGfXSv; arc=none smtp.remote-ip=100.103.45.18 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 2EE3C606A320; Tue, 1 Dec 2026 19:29:53 +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=nIOGfXSv Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 435A31F00893; Tue, 1 Dec 2026 19:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796153393; bh=KJrcDNy9lf99MCMp3Vg7r+Q2gCjYwF2jExXylRFNa78=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nIOGfXSvxbAr+KJUQtHdmNpfYtwtzzcwguAq9P0p5A2x5PGrxvokqmRntRRXjat92 CKbHtye0kyWJRbtxnl51vwNrrfKXN2/3Iav2JIBHULNrEBXjbddcdXwvLkeL/VlnNb /Xbn/uYDAuDkrcf/Y1lo0q0mXjK/6fJxs3m0HXexpmAtm09AGfipNWeERr5qI9olSh 6irfUDORffcFzptgsxAh4WJDqEHZhKUqh4c1mRKh8AntuTgAXRDKf7zATfRjdpyfQY MDYurt2iLLszomJqV9wz0+Okyh9+37r4EjiO72l/srTiHCILbTGpJ8MbPQDolPuMfI ED9TCcojKnR6g== Date: Tue, 1 Dec 2026 21:29:49 +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 v9 28/29] selftests/nsexec: Add nsexec test suite Message-ID: References: <20261201031002.593830-1-jarkko@kernel.org> <20261201031002.593830-29-jarkko@kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201031002.593830-29-jarkko@kernel.org> On Tue, Dec 01, 2026 at 05:10:00AM +0200, Jarkko Sakkinen wrote: > Add a model-based stochastic kselftest suite for nsexec_open(), > NSEXEC_GET_NSFD, NSEXEC_SHARE_NSFD, waitid(P_NSEXEC), > pidfd_send_signal(), userns_set_idmap(), FSCONFIG_SET_NSEXEC, > MOVE_MOUNT_T_MNTNS, CLONE_INTO_NSEXEC, and Landlock namespace > mediation. > > Drive lifecycle, ID-mapping, mount-tree, multi-cell supervisor, and > Landlock scenarios from a seeded choice stream against a reference uAPI > oracle. Each case is a pure function of the seed, scenario, and case > index, and shrinking is bounded by attempt count, so NSEXEC_SEED and > NSEXEC_CASE replay both a failure and its minimal trace. > > Signed-off-by: Jarkko Sakkinen I'm dropping this if there ever will be a new patch version (no need for new for the time being, it's as good as it gets for PoC). What I'm doing now instead is a separate project called ucellsd. It's a daemon with libucells + seccomp_unotify runner. ucellsd traps directly Cells kernel uAPI and offloads the syscalls to the daemon. The daemon provides both stock kernel and nsexec code paths for the sake of enabling tri-comparative testing. This way can leave this patch set as it is while at the same time having tools for testing issues reported for Cells patch set against my implementation. The other option is to let this just rot, which would be viable if I had to take extra length maintaining this but with the new daemon I can gradually improve with a low effort. For the sake of full transparency I'll also write down the lore links of addressed issues and add them to the next version of this patch set; just in case if there would be a next version. It's an asymmetric advantage but on fair grounds as it inherits from the author-chosen complexity and fluidity properties. Br, Jarkko