From: "Theodore Tso" <tytso@mit.edu>
To: Guanglei Zhu <zhugl3@xiaopeng.com>
Cc: Jan Kara <jack@suse.cz>,
linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
guozh23@xiaopeng.com
Subject: Re: [PATCH] ext4: check CAP_SYS_ADMIN in ext4_ioctl_get_tune_sb()
Date: Mon, 12 Oct 2026 23:30:25 -0400 [thread overview]
Message-ID: <as2h06UOO7zRzrHk@mit.edu> (raw)
In-Reply-To: <20261013020145.1297074-1-zhugl3@xiaopeng.com>
On Tue, Oct 13, 2026 at 10:01:45AM -0500, Guanglei Zhu wrote:
>
> You are probably right that reading these parameters is not
> sensitive on its own: most of them are already visible through
> /proc/mounts or statfs(), and the superblock is readable by anyone
> with read access to the block device. The argument of my patch was
> the asymmetry with the SET side rather than an actual leak.
>
> I'm happy to drop this patch if Ted confirms that the missing check
> was deliberate.
Yes, it's deliberate, precisely because the parameters are visible in
/proc/mounts and in /proc/fs/ext4/<block>/options. (The latter shows
*all* of the mount parameters currently active, whereas the former
show those mount options which differ from the defaults.)
There should be nothing in the file system parameters which are
secret; things like keying information for fscrypt are not passed in
the mount options, for Very Good Reasons; instead we use the Linux Key
Management facility[1]. As far as I'm concerned, storing passwords in
the mount options ala cifs[2] is an anti-pattern.
[1] https://man7.org/linux/man-pages/man7/keyrings.7.html
[2] https://man7.org/linux/man-pages/man8/mount.cifs.8.html
- Ted
next prev parent reply other threads:[~2026-10-13 3:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 6:08 [PATCH] ext4: check CAP_SYS_ADMIN in ext4_ioctl_get_tune_sb() Guanglei Zhu
2026-10-12 6:25 ` sashiko-bot
2026-10-12 10:15 ` Jan Kara
2026-10-13 2:01 ` Guanglei Zhu
2026-10-13 3:30 ` Theodore Tso [this message]
2026-10-13 6:55 ` Guanglei Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=as2h06UOO7zRzrHk@mit.edu \
--to=tytso@mit.edu \
--cc=guozh23@xiaopeng.com \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhugl3@xiaopeng.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox