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=1796154208; b=HvvHo56+BuzKjmQRpwRsaLiwhaRPyLZaZzqeJ56tYZWt6/S5a7vr8VzLJK+MpZYz1Kbm MhPc4Cne/ksCMfmaJZ8x3pdylS/zy8IdR6Q/s/RpMkU7VBZrxQTyJjTvURk0kgjdrR04e hlel6z+LxqvzOLoYuXX0hFJAx7sr/a6xHaDFvTGtz/cZUsO/IbdW9W5Q8fIIMPny/FORM g5TLC/Drl4OwDJz8Jt0E7BhB5yPgLK7Lcbq5FoGTsw4oE1+/J4dl0DgYRiPSCXJIRcDFx lmRtUpHM+HZbRCoJBfUjA+tjPCZdTRVD2KI0cXoVdQOGgNxgn5nF+kh86hdOYj6RtkQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154208; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=JW68l1/5MVOhPxBDlZ9oEshxbkYxqyrFGPb/psZAvio=; b=dgCcqMAukJBkHIkNK8FuZve0+wiCrUuGNODgZ0ebiG3iZQY5vmpVY/A4S1E9ZI1jfR7t AZHGJwjVIWPQJeAmsjdW9KhVvdKR6GhTCIf7y0YjuMCkzWaOwd4GCpQ6PDPsoA5zFumVx +6yVvamrhmoTTWTacq34B39aSnc4uA1UCjTmqVb7yDmhfvGgD7ArZh1OyGM4HQoXfKjlV IYedG2Cxc1YJWxdR4hIvD6+0dGjF9GUpKB615iKa0w35anfzq5XBDelnJ5UhudPw1Zrbu 9B4YwyGm+uhqGP6qhc6qB7CO5u869JNWnzJcPzlXPMSQPC6zVFXjCcDdVak5KC+dF4Q== 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=Ci7T5sfP; 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 AAA93606A325; Tue, 1 Dec 2026 19:43:28 +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=Ci7T5sfP Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 9CE4E1F00893; Tue, 1 Dec 2026 19:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796154208; bh=JW68l1/5MVOhPxBDlZ9oEshxbkYxqyrFGPb/psZAvio=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Ci7T5sfPTa6llATWE1224ipHnnJrclApYSznYAkJx/ZTTW63pyOypgTNDRLTvxiHa OONghuVcG4HYI0iM2wIfpJWdVKpKC3bJpCI7JG//bTMMfYZrcimNvEvyEZpXqVGNCD sq9XdZhS0Nh/OY0dWHxztRb+a1tuJ0uTOAs/yxIuSaLRyPKbpcVR/j3QvgnkPX0PcM mrCOe/qKGNrsWDVsQw0Jh9pU833Fj660ku4NYOBYmPq9eLQrpW5AxXAXj1ia+5DA2O wb0v3VI8fplxOgAt2veLOAHQ9WZKHfXPokWv0EOUkaSkMqnn5pzJA+fEgCDBFGZFnC MCjO0YEyxxa1Q== Date: Tue, 1 Dec 2026 21:43:24 +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-security-module@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: On Tue, Dec 01, 2026 at 09:29:53PM +0200, Jarkko Sakkinen wrote: > 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. I'll also add Cells in-kernel backend. Then it can six-comparative testing, which useful even in the case that Cells for whatever reasons is the way to go. I.e, you can compare Cells against Cells. Br, Jarkko