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

Chaitanya Kulkarni chaitanyak at nvidia.com
Fri Nov 17 14:58:33 PST 2023


On 11/17/2023 5:13 AM, 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>
> ---

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list