Re: [PATCH] nvmet: fix one-byte overflow in configfs string show callbacks
From: Keith Busch
Date: Wed Dec 02 2026 - 10:15:56 EST
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@xxxxxxxxxx>