diff options
author | Christoph Hellwig <hch@lst.de> | 2023-11-17 16:13:36 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-11-20 20:25:33 +0300 |
commit | 1c22e0295a5eb571c27b53c7371f95699ef705ff (patch) | |
tree | f729a30e956550ddbb358383834ff0774d7485e7 /drivers/usb/cdns3/cdns3-trace.c | |
parent | c7ca9757bda35ff9ce27ab42f2cb8b84d983e6ad (diff) | |
download | linux-1c22e0295a5eb571c27b53c7371f95699ef705ff.tar.xz |
nvmet: nul-terminate the NQNs passed in the connect command
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@gmail.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions