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=1796443462; b=klzwnPdwFLBKb0gBBBYP5cfEFnBHnD1lMDjZunEEXuOtoElPwCX07klCpqlwibCWK9bN BRa9ia3Cp4IWpiorFmk7tti1fTZZrHFocQ04mFxbDpZrfQL/u1Y4Qv+/haIjwvgERV8Ma 2Vqj532djCTxOhklmXfseNusn7cS3tbSgGncilk4IlC/90Ab8GQkovhkgkIllQwRRUF+v L3ZoXAGGB2reP2h14rf2DsgIT8ev2gsfrK/HK9wWZW8rEf0cc/tctbm7m23UjcbbNNY/r xMvGlOksxNVQv5ufZM308yt+aoh/xxq06ZIsVYFLUCaYA/lhyO0FVDjUGWQBrsugg6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796443462; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=DrQb9akC8Dgt2VtJYV6YPinvL8HJjxtHOxEFGnP7DEw=; b=HJ6z056VLaUP74yqav9QFpeftOV77AOTEp1J6eTW59S2rRdKRodUYcOjh/CYmgtglq0r KJ4Tjsn1i9RKSXqEqJjAlWGYktrDLKQ9CtTSr0H/gFVUAkKn97eit6V1Oe+9tYA1sinFU 0tXZDYxR9CPWudO5JhJqH79NK1y3oA7RTUpleeuExcXEt4vknKAVP14UysJzHl1RP0MhA dBxMLLKptqUDrkOg424/QEj/6OfBqgOfT/xpkacaYiEXLcxGtEanO/ePkigT3drExT8mQ DRlWNGs+GsunNuHG721D3I4ILc7pk2oqzmbXXiI06rnYb+kV6zSH+X7MWV+RHp/RwBA== 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=GckPcJto; 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 ESMTPS id 55C2C606A6A2; Sat, 5 Dec 2026 04:04:22 +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=GckPcJto Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D7641F0092B; Sat, 5 Dec 2026 04:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796443461; bh=DrQb9akC8Dgt2VtJYV6YPinvL8HJjxtHOxEFGnP7DEw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GckPcJtoGeesPpCPnNetTrMu8KZ0dhnks+HiW7959DCRTOvMjKNP+FSWc9sZw1rV4 koUiapk0BXo00wX9CmqemoKmBzSt0D4GImXEfnRZF7C6J78uENPiXvX1b1qp9vHglL ol0o+L5h3Nvsv8Wq3+q+xKig2zDYU1UHO7giJHddCP2IwXP8+zPLHYDrvMq5tSFZCz ciSzJ2Y2sgdyLZvSQ7I427SJEVEHyP97Ajr9Tztck5IZwGyE0vFom3XFRa/Igo6qVe J1vdB2jHi+hYVMEtAHI8PQ7MCGghuOHfukbA0Kso5LOuUyKC4P2ksw9a+NwwQ+26wS LrtlqJORLXwrQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v10 27/28] docs: Include runfd kernel-doc in the userspace API manual Reply-To: sashiko-reviews@lists.linux.dev To: "Jarkko Sakkinen" Cc: bpf@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" , =?utf-8?b?R8O8bnRoZXIgTm9hY2s=?= , "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" , =?utf-8?b?TWlja2HDq2wgU2FsYcO8bg==?= , "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" In-Reply-To: <20261205032633.1702772-28-jarkko@kernel.org> References: <20261205032633.1702772-1-jarkko@kernel.org> <20261205032633.1702772-28-jarkko@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 04:04:17 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] docs: runfd uAPI manual exposes kernel-internal enum and userns_set_idmap() -- commit 2da8b7eab3705fe03d967fc86b270313e166df1d Author: Jarkko Sakkinen docs: Include runfd kernel-doc in the userspace API manual This commit adds Documentation/userspace-api/runfd.rst to pull in runfd kernel-doc comments and links it from the userspace API index. > diff --git a/Documentation/userspace-api/runfd.rst b/Documentation/usersp= ace-api/runfd.rst > new file mode 100644 > index 0000000000000..db6f2631d97af > --- /dev/null > +++ b/Documentation/userspace-api/runfd.rst > @@ -0,0 +1,77 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +runfd uAPI > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ ... ] > +Lifecycle > +=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +.. kernel-doc:: include/linux/runfd.h > + :identifiers: runfd_state [ ... ] > +User namespace ID mapping > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > + > +.. kernel-doc:: include/uapi/linux/nsfs.h > + :identifiers: userns_idmap_extent userns_flags userns_idmap > + > +.. kernel-doc:: kernel/user_namespace.c > + :identifiers: userns_set_idmap [Severity: Low] Should this uAPI manual pull in kernel-internal enum runfd_state and userns_set_idmap()? enum runfd_state is defined in include/linux/runfd.h rather than include/uapi/, so rendering it as a C declaration in the uAPI reference can mislead userspace developers into treating internal symbols as exported uAPI. userns_set_idmap() is a kernel-internal helper taking struct file and struct user_namespace pointers. Embedding it exposes an internal prototype while leaving the ioctl(userns_fd, NS_SET_IDMAP, &map) interface without a userspace-facing description. Documenting the lifecycle and NS_SET_IDMAP ioctl via userspace-facing kernel-doc sections instead would keep the page focused on the exported uAPI. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205032633.1702= 772-1-jarkko@kernel.org?part=3D27