[PATCH v3] nvmet: Don't overflow subsysnqn

Keith Busch kbusch at kernel.org
Fri Dec 27 13:15:13 PST 2024


On Wed, Dec 18, 2024 at 10:49:57AM -0800, Leo Stone wrote:
> nvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed
> size buffer, even though it is dynamically allocated to the size of the
> string.
> 
> Create a new string with kstrndup instead of using the old buffer.

Thanks, applied to nvme-6.13.



More information about the Linux-nvme mailing list