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=1796002463; b=vvlzGFDa0DBrgulDQpvBiRPq9cNut2Nr3pGzfShjMJbIFA98jKDMcY1xSXABFYvQ/W29 262OOUTkbOBxf+3BWPfYQ+/7uY36xM5BbZ3/J66tiWKaRzRrVQ7QhlE0fj08SH228yhZc gGRXirebr6HKkeVw2dztFB7dH8PzGStqPjsxImueGRE1AXtNdubRnPRAhMLzuY8OrftsS KiXCLvQ9ONHm7EH4y88mRVDt/gjl4pEQ8Uj9PF9p3zP/BmoHs0XshRtN+Tv9LpZZUSPTe 3iGLg5KP+bvCxRdH9u4Cp5am4niYUjITZU9PSjKjnRzpYglfVtnWyI6kQwEL7eVVZTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796002463; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=8XDQRKofvYnIuzDE9r6+QPnl1uR379mj6LaRdV3Et1s=; b=EXfctJ1BynPqm2GRAe35XJjOVXpZ8jDsaGnk+kOfH+t3vpwJsFFCw5t5JozcOPxpklAM VhUJCkmtdiqZUieWTuK2gYFkAMNphFTLP1Pu8OWGnpGaFhHExpRqYJtFcMrWsQtVReey5 a2ce6RrjmcrDpQor+ZHBZH+Oe9WYZym1TGP0Jzz4l7Z38SnO5W+ELmS6/edBgBtkrQNia KsQvY/oLjTvLyheVLcLuOUqWl7E9cgrUGsx4TOMMjiCeQ9nNSIn4SVrgzaX0l0NVg7aO0 40l8hJbE/dLWQQqK+K3CgMhvukK60FP2SXf0QfLaL0eMgSKURwffIcC6g2ISP4+JflQ== 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=fW90xlaV; 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 8DDEE606A31C; Mon, 30 Nov 2026 01:34:23 +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=fW90xlaV Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 6A6641F000C1; Mon, 30 Nov 2026 01:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796002463; bh=8XDQRKofvYnIuzDE9r6+QPnl1uR379mj6LaRdV3Et1s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fW90xlaVyN+rXlamS4dWQmJb3odi0cL+rHTqlnEuVGfm8T5OSH31bbfAgRhU3Cf+t MQQT0RV5Rk2DogNVLEnRcvLXU16s1JKVLC+DF1L1twvNhjnyYzzZDo1qcTxV4ROC/3 3VSuvDWo7FKWilqS00Ys2oE1i+gFpH3nk4c+oQ2qkWrph8S9LvZl8kDNLJXTAjjS/d 8XkB3kJOtHyhtvEep5t8rY55QcW1NEG7mOV4VTnIWik0v19XHvT7H6yDEXTpWwFjHI lrtHFPCJH7Slz4bJML0uRMWUbTtlQbfw0niVWs1gNCk0pupZI0FnrM0/w6p+67ILbW 3wJlQQaw1etzA== Date: Mon, 30 Nov 2026 03:34:19 +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-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 , Andy Lutomirski , Arnd Bergmann , Christian Brauner , David Howells , Eric Biggers , Georgia Garcia , Giuseppe Scrivano , Hugh Dickins , James Morris , Jan Kara , Jeff Layton , John Johansen , Jonathan Corbet , Josef Bacik , Kees Cook , KP Singh , Lennart Poettering , Matt Bobrowski , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Neal Gompa , Oleg Nesterov , Paul Moore , Pavel Tikhomirov , Serge Hallyn , Shuah Khan , Stephen Smalley , Zygmunt Krynicki Subject: Re: [RFC PATCH v8 28/29] selftests/userland: Add userland test suite Message-ID: References: <20261128235808.2369970-1-jarkko@kernel.org> <20261128235808.2369970-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: <20261128235808.2369970-29-jarkko@kernel.org> On Sun, Nov 29, 2026 at 01:58:07AM +0200, Jarkko Sakkinen wrote: > Verify the userland_open() control object, namespace sharing, > mount-namespace configuration, waitid(P_USERLAND), pidfd_send_signal(), > and userns_set_idmap() uAPI and security invariants across privileged, > unprivileged, SCM_RIGHTS delegation, and edge-case scenarios. > > Signed-off-by: Jarkko Sakkinen At https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd-test.git/: $ make make help Show this help make list List available defconfigs make download Prime the download cache make sdk Build and cache SDK toolchains make configure Force configuration make savedefconfig Save minimal defconfig make linux-update-defconfig Save minimal kernel defconfig make build Incrementally build (FORCE=1 to run again) make userland Build with userland trees (FORCE=1 to run again) make ssh Open an SSH session to make burn Write existing image to DEVICE (does not build) make clean Remove build artifacts make clean-sdk Remove cached SDK toolchains make lint Run linters "userland" target builds a a hybrid ISO containing a bootc/composefs based OS build, and having Userland-patched Linux, SystemD, Bubblewrap and Podman. My kernel testing suite has developed into a Silverblue'ish environment because I needed something like that for testing lockdown hibernate patches. Here's virsh hosted "tpmdd_amd64.iso" built with "make userland BOARD=tpmdd_amd64" running the kselftest: TAP version 13 1..1 kselftest: Running tests in userland # timeout set to 45 # selftests: userland: test_smoke.sh # TAP version 13 # 1..17 # ok 1 UserlandUapiTest.test_cell_broadcast_kill # ok 2 UserlandUapiTest.test_cell_lifecycle_exec_and_hot_mount # ok 3 UserlandUapiTest.test_clone_flags_and_pidns_ancestry # ok 3 UserlandUapiTest.test_clone_flags_and_pidns_ancestry # ok 3 UserlandUapiTest.test_clone_flags_and_pidns_ancestry # ok 3 UserlandUapiTest.test_clone_flags_and_pidns_ancestry # ok 3 UserlandUapiTest.test_clone_flags_and_pidns_ancestry # ok 4 UserlandUapiTest.test_concurrent_bootstrap # ok 5 UserlandUapiTest.test_create_flags # ok 6 UserlandUapiTest.test_get_nsfd # # UserlandUapiTest.test_landlock_namespace_use: Landlock not enabled # ok 7 UserlandUapiTest.test_landlock_namespace_use # SKIP # ok 8 UserlandUapiTest.test_mount_and_fsconfig_validation # ok 9 UserlandUapiTest.test_pivot_root_and_standalone_mntns_hot_mount # ok 10 UserlandUapiTest.test_proc_submount_and_nested_namespaces # ok 11 UserlandUapiTest.test_send_signal_and_kill_on_close # ok 12 UserlandUapiTest.test_setns_owner_vs_foreign # ok 13 UserlandUapiTest.test_share_nsfd # ok 14 UserlandUapiTest.test_unprivileged_without_entering_userns # ok 15 UserlandUapiTest.test_userns_set_idmap # ok 16 UserlandUapiTest.test_userns_set_idmap_delegation # ok 17 UserlandUapiTest.test_wait_poll_and_clone_dead # # 1 skipped test(s) detected. Consider enabling relevant config options to improve coverage. # # Totals: pass:16 fail:0 xfail:0 xpass:0 skip:1 error:0 ok 1 selftests: userland: test_smoke.sh # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Yes, I should "CONFIG_LANDLOCK=y". It's the next thing on the list. Generally I plan to make it model based stochastic test with seed printed at start so that failures can be replayed. I've used model based testing lately very successfully in my Landstrip stateless parametric agent sandbox (compatible with Anthtropic's policy format): https://github.com/landstrip/landstrip It feels like right way to go so that the syscall interface can be actually stressed. Br, Jarkko