From: Keith Busch <kbusch@kernel.org>
To: Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
Chaitanya Kulkarni <kch@nvidia.com>,
Lin Tzu Yang <rongh7426@gmail.com>
Cc: Hannes Reinecke <hare@suse.de>, <linux-nvme@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] nvmet: fix one-byte overflow in configfs string show callbacks
Date: Wed, 2 Dec 2026 07:15:34 -0800 [thread overview]
Message-ID: <179622453485.3405999.3121237981841960242.b4-ty@kernel.org> (raw)
In-Reply-To: <20261130114711.842577-1-rongh7426@gmail.com>
On Mon, 30 Nov 2026 19:47:11 +0800, Lin Tzu Yang wrote:
> The show callbacks for the namespace attribute device_path and the
> host attributes dhchap_key and dhchap_ctrl_key print the stored string
> with sprintf(page, "%s\n", ...). configfs accepts up to 4095 bytes in a
> store, and the store side keeps them all, so with a 4095-byte value the
> show writes the string, the newline and the terminating NUL, one byte
> past the PAGE_SIZE buffer.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvmet: fix one-byte overflow in configfs string show callbacks
commit: da4d3b7a809a62d230d05aea80272f7682e890e2
--
Keith Busch <kbusch@kernel.org>
prev parent reply other threads:[~2026-12-02 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 11:47 Lin Tzu Yang
2026-12-01 8:01 ` Christoph Hellwig
2026-12-02 10:42 ` Hannes Reinecke
2026-12-02 15:15 ` Keith Busch [this message]
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=179622453485.3405999.3121237981841960242.b4-ty@kernel.org \
--to=kbusch@kernel.org \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=kch@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=rongh7426@gmail.com \
--cc=sagi@grimberg.me \
/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
all inboxes | Powered by JetHome®