Skip to content
Snippets Groups Projects
user avatar
Akinobu Mita authored
While the error recovery work is temporarily failing reconnect attempts,
running the 'nvme list' command causes a kernel NULL pointer dereference
by calling getsockname() with a released socket.

During error recovery work, the nvme tcp socket is released and a new one
created, so it is not safe to access the socket without proper check.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Fixes: 02c57a82 ("nvme-tcp: print actual source IP address through sysfs "address" attr")
Reviewed-by: default avatarMartin Belanger <martin.belanger@dell.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
76d54bf2
History
Name Last commit Last update