Article View: linux.kernel.netdev
Article #16325Re: [PATCH RFC v2 04/42] fs: add SB_I_PSEUDO
From: bot+bpf-ci
Date: Sat, 14 Nov 2026 13:54
Date: Sat, 14 Nov 2026 13:54
58 lines
10511 bytes
10511 bytes
--===============4078380530865713043==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
> fs: add SB_I_PSEUDO
TL;DR: Nit only: the fc_init_pseudo() comment and commit message claim pseudo
filesystems never hold device nodes, but devpts and binderfs do and must clear
SB_I_NODEV; the wording could mislead.
> diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h
> --- a/include/linux/pseudo_fs.h
> +++ b/include/linux/pseudo_fs.h
[ ... ]
> +/*
> + * Common initialization for all pseudo filesystems, mountable or not. Their
> + * regular files are kernel interfaces. They don't store data and pseudo
> + * filesystems never hold executables or device nodes.
> + */
> +static inline void fc_init_pseudo(struct fs_context *fc)
> +{
> + fc->s_iflags |= SB_I_PSEUDO | SB_I_NOEXEC | SB_I_NODEV;
> +}
This isn't a bug, but is it accurate that pseudo filesystems "never hold
executables or device nodes"? The same wording is in the commit message.
devpts creates character device inodes in devpts_pty_new():
init_special_inode(inode, S_IFCHR|opts->mode,
MKDEV(UNIX98_PTY_SLAVE_MAJOR, index));
and binderfs does the same with init_special_inode(inode, S_IFCHR | 0600,
...). Both filesystems are converted to fc_init_pseudo() later in the
series, and both have to undo the flag in their fill_super callbacks:
s->s_iflags &= ~SB_I_NODEV;
This works because sget_fc() ORs fc->s_iflags into sb->s_iflags before
fill_super runs. A filesystem that has device nodes and relies on this
comment would not know it needs to clear SB_I_NODEV, and its device nodes
would fail to open with -EACCES from may_open_dev().
Could the comment say that SB_I_NODEV is the default and that pseudo
filesystems with device nodes must clear it in fill_super, or could "never
... device nodes" be dropped?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/43599461726
--===============4078380530865713043==--
Technical Details
Message-ID:
<bf4a6d1a8af90f3fac8754638a5f9b02fb40c0a066237181d456a25ac7f2c606@mail.kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363293-linux-kernel-netdev=dewy.ruReferences:
<20261114-work-loop-pseudo-v2-4-98639a2286fb@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363293-linux-kernel-netdev=dewy.ru From: bot+bpf-ci@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH RFC v2 04/42] fs: add SB_I_PSEUDO Date: Sat, 14 Nov 2026 13:54:52 +0000 (UTC) Organization: Usenet Network Message-ID: <bf4a6d1a8af90f3fac8754638a5f9b02fb40c0a066237181d456a25ac7f2c606@mail.kernel.org> References: <20261114-work-loop-pseudo-v2-4-98639a2286fb@kernel.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4078380530865713043==" Injection-Info: usenet.network; logging-data="1582704"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:cFc/j9cQMo77K/tAB8Rj1/03T5M= sha256:+qaZZGzNScxndwVhxhZ3Jipwy8aVT8b2968GQAQrgtU= sha1:wQcMtJVUwrHVSINsprMoDCTF4RE= sha256:q18YSaKbMJh/DZlDpLkDdOZE0l9OUjGg/Hghmgx/I7c= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 73E08114823; Sat, 14 Nov 2026 16:55:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sd7f3ibdD6Mw; Sat, 14 Nov 2026 16:55:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363293-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 459B4114816; Sat, 14 Nov 2026 16:55:37 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 561673B480; Sat, 14 Nov 2026 13:55:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794664502; b=oJqeseMEesHcwh+l/prxLS5vPfkdMR3tCAF+z+Pmanyohg/Dy8gOS9CSOfx3g6SnsW5w cb/sEbI/5/jG0Mjpc5of63DV/C5BdmsH6sLdYetGv2BzpF7oje4yQYtAyma5IbSZGhrIw fUOv/Eh0aQl4BFlZOx7xagKYvlkp04BmYmh80+80+X+Dfod7EsOU2CfuGeNqhMa/SGVPj RDikunFvjzi3Ccra7p+TG7Fy4m436sG/45Fm3vpA60reyTALEr4Yz6yZu8haMhT9QB5du /xaUeZZNNza6NEFSw9FuxTOW0wPGmbcAvp/9MQdCJDaIkbjeM4E7HcZxE4C1rk0nTDg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794664502; h=X-Original-To:Received:Received:DKIM-Signature:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=I6J+1H3vQpLdJ7UVpJ/tC85ye3HYuCATNIJGMbrXQJM=; b=ZZCbGiVQyuqi0W5kLPsvloaFq3Jyt/uaDkpQyCgHoB00wJoNM7nAHkNBf3iIf/jQBi84 RoJtTvgb36h4chK41uI169/NIt75G4Wyg7W1QK7BbaG9qEj9XiaYv0UhPuw+vyO0MJCdY ZLxi7UZSuTUYg5Vtf53TFyum+yvZX1eRAOTUmM8gMFSpRorCDUKUgDdhfahKnWDT8cdAB r4cpLA9Y8EF5Np5jwtwY5mxiLzGhUjx8B9k/YZzSdXURqEkod4KQozlpOEnc4fUHPNTpb aznSqLbWPcKOrJy0vteZuGqMLQxE4AXw719yMS4yT5wPS6Y+xagLVRzw+1q5f6ZRIsQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gm28Ha6j; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 564AD60A2616; Sat, 14 Nov 2026 13:55:02 +0000 (UTC) X-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=gm28Ha6j X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794664496; b=yP7+dX7p3iS9wbCgHDGUVq641Nxxuk2mFjKYY5pVOZUEGPJPgHF3JhNF97/3CoYMLmkz Mkq6PTiBvZej2Q7RcD4E3BMaK0Q4dY1uE9P5s2Cp7jFS+A77MVAT8FC1J5mAt5koodxSV uvnF6lvc3i6BeIdqtBPQ7MlwpZPAnx8iU9ztXMhLIOXld3hcsq7ZXagWl+aw+0VL7pmoL 69kh7tzIJsjqTukSFSS6/72hnMvigQDcQi2MB8T71IhbCQbo3x0KQHs/x1CYU2SvZNRGM x7GO+SINOfsK/gmYVQZ6j7XTw2oqpM+kJc0pW8SySimJPmOF+nD53MbtgY5XqDo1kHA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794664496; h=Received:DKIM-Signature:Content-Type:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=I6J+1H3vQpLdJ7UVpJ/tC85ye3HYuCATNIJGMbrXQJM=; b=q1CZ4i+mmH7K20AAIyHJtswA2VFZqxHuZuIbP6uRX8Q+KFJx0jzV2Yhix46Fjl2JCCl1 R7pNlnSnqt9uX0l6qz1gP1UYlDEGVC4IUZugkDAH7fomc7aK7vAybU0eT9w5hpPJ/Rqwe MyyEwtr9yM2uaoEwOQvp1Qbf7d3CMvZtjij/CdVYSYlhGtNRwvEfhUTma+iVrKVQ+uwdX lZwDXr+SHhCpllkAJ8g3gelLMj84PnqRQKCRqjKhV6Swhh/A2YQe6EVIJEK4UinR10QzZ ZDmwhaiI7GaX0Ro7FirDObnlgbuEz0vwSYZYDNtTZZZIvSM/xAT12hQtnfT3s188zsA== X-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=gm28Ha6j; arc=none smtp.remote-ip=100.103.45.18 X-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 604C3606A32E; Sat, 14 Nov 2026 13:54:56 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC8EC1F000C4; Sat, 14 Nov 2026 13:54:52 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794664496; bh=I6J+1H3vQpLdJ7UVpJ/tC85ye3HYuCATNIJGMbrXQJM=; h=In-Reply-To:References:Subject:From:To:Cc:Date; b=gm28Ha6jFbZAVZELeCoAiv8yQmKhg2t27IzqaM5E6DHf1m/iHwaa05oOee2NvjSBl kc6ZaW7X7pNIXQAoh9xnp9MBMni3b8MRxZdEx/eTPDoUQsu/YruOICy0eelWOEyqgn 3P8g8niOi/8NoL9V5UYuZAEp6DyvrAtH4YeuzU3fc3guDfP87KZmI3TI0lTfqozu4+ ZpGn4biS09ByqImLH4ZYYUNpv6w1MO+E82dAPetup0Rc/sR/ssg0FbIV+aiwW6MIcv EBQr5L1AgJXIgzU68vHxaHLJx8/fkvXF+Z3xx/GTGkbG1HInFcXsLmVQOWzwu1EgJY hMWqsgyXoIXvw== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261114-work-loop-pseudo-v2-4-98639a2286fb@kernel.org> X-Cc: jannh@google.com,mason@kernel.org,josef@toxicpanda.com,hch@lst.de,linux-block@vger.kernel.org,linux-kernel@vger.kernel.org,linux-nvme@lists.infradead.org,viro@zeniv.linux.org.uk,jack@suse.cz,linux-scsi@vger.kernel.org,target-devel@vger.kernel.org,driver-core@lists.linux.dev,linux-mm@kvack.org,bpf@vger.kernel.org,linux-security-module@vger.kernel.org,selinux@vger.kernel.org,apparmor@lists.ubuntu.com,linux-nfs@vger.kernel.org,netdev@vger.kernel.org,fuse-devel@lists.linux.dev,linux-efi@vger.kernel.org,xen-devel@lists.xenproject.org,ocfs2-devel@lists.linux.dev,linux-s390@vger.kernel.org,linuxppc-dev@lists.ozlabs.org,linux-usb@vger.kernel.org,amir73il@gmail.com,linux-erofs@lists.ozlabs.org,linux-kselftest@vger.kernel.org,brauner@kernel.org,alex@amutable.com,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev