From: Christoph Hellwig <hch@lst.de>
To: Carlos Maiolino <cem@kernel.org>
Cc: Amir Goldstein <amir73il@gmail.com>,
Christian Brauner <brauner@kernel.org>,
Alexander Viro <viro@zeniv.linux.org.uk>, Jan Kara <jack@suse.cz>,
Miklos Szeredi <miklos@szeredi.hu>,
Chris Mason <mason@kernel.org>, Christoph Hellwig <hch@lst.de>,
Theodore Ts'o <tytso@mit.edu>,
Alexander Mikhalitsyn <alex@amutable.com>,
linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] xattr: enforce the name and size limits for in-kernel callers
Date: Wed, 25 Nov 2026 06:29:06 +0100 [thread overview]
Message-ID: <20261125052906.GA20286@lst.de> (raw)
In-Reply-To: <awWBG4zMDTAk2Q4n@cronus.toxiclabs.cc>
On Tue, Nov 24, 2026 at 01:29:41PM +0100, Carlos Maiolino wrote:
> I'd use a more specific naming like xattr_check_name_len() to avoid
> confusion, but not that I'm passionate about it :)
Sounds reasonable.
> If we are trying to prevent invalid names from in-kernel callers,
> shouldn't this also protect against a zero len?
And this sounds valid too.
Otherwise the patch looks good to me.
next prev parent reply other threads:[~2026-11-25 5:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 11:35 [PATCH] xattr: enforce the name and size limits for in-kernel callers Amir Goldstein
2026-11-23 14:08 ` Alexander Mikhalitsyn
2026-11-23 16:58 ` [PATCH v2] " Amir Goldstein
2026-11-23 19:09 ` Alexander Mikhalitsyn
2026-11-24 12:29 ` Carlos Maiolino
2026-11-25 5:29 ` Christoph Hellwig [this message]
2026-11-24 17:06 ` Jan Kara
2026-11-25 5:59 ` [PATCH v3] " Amir Goldstein
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=20261125052906.GA20286@lst.de \
--to=hch@lst.de \
--cc=alex@amutable.com \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=cem@kernel.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=mason@kernel.org \
--cc=miklos@szeredi.hu \
--cc=stable@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=viro@zeniv.linux.org.uk \
/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