[PATCH v2] nvmet: nul-terminate the NQNs passed in the connect command

Keith Busch kbusch at kernel.org
Fri Nov 17 08:56:05 PST 2023


On Fri, Nov 17, 2023 at 08:13:36AM -0500, Christoph Hellwig wrote:
> The host and subsystem NQNs are passed in the connect command payload and
> interpreted as nul-terminated strings.  Ensure they actually are
> nul-terminated before using them.
> 
> Fixes: a07b4970f464 "nvmet: add a generic NVMe target")
> Reported-by: Alon Zahavi <zahavi.alon at gmail.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Applied for nvme-6.7, thanks!



More information about the Linux-nvme mailing list