Re: [PATCH v3] nvmet: Don't overflow subsysnqn

From: Keith Busch
Date: Fri Dec 27 2024 - 16:15:24 EST


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.