OpenCloudOS-Kernel/drivers/nvme/host
Akinobu Mita 76d54bf20c nvme-tcp: don't access released socket during error recovery
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: Akinobu Mita <akinobu.mita@gmail.com>
Fixes: 02c57a82c0 ("nvme-tcp: print actual source IP address through sysfs "address" attr")
Reviewed-by: Martin Belanger <martin.belanger@dell.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2023-02-28 06:14:44 -07:00
..
Kconfig nvme-auth: Diffie-Hellman key exchange support 2022-08-02 17:14:49 -06:00
Makefile nvme: don't always build constants.o 2022-08-02 17:22:48 -06:00
apple.c nvme-apple: only reset the controller when RTKit is running 2023-01-19 09:08:01 +01:00
auth.c nvme-auth: fix an error code in nvme_auth_process_dhchap_challenge() 2023-02-28 06:14:44 -07:00
constants.c nvme: add nvme_opcode_str function for all nvme cmd types 2023-02-01 14:22:00 +01:00
core.c nvme: bring back auto-removal of deleted namespaces during sequential scan 2023-02-28 06:14:29 -07:00
fabrics.c nvme-fabrics: clarify AUTHREQ result handling 2023-02-01 14:21:58 +01:00
fabrics.h nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
fault_inject.c block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
fc.c nvme-fc: fix initialization order 2023-01-23 17:42:11 +01:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: kmalloc the NVME SMART log buffer 2022-10-19 12:43:13 +02:00
ioctl.c nvme: remove nvme_execute_passthru_rq 2023-02-01 14:21:59 +01:00
multipath.c block: handle bio_split_to_limits() NULL return 2023-01-04 09:05:23 -07:00
nvme.h nvme: add nvme_opcode_str function for all nvme cmd types 2023-02-01 14:22:00 +01:00
pci.c nvme-pci: remove iod use_sgls 2023-02-14 06:40:57 +01:00
rdma.c nvme: consolidate setting the tagset flags 2022-12-07 15:02:20 +01:00
tcp.c nvme-tcp: don't access released socket during error recovery 2023-02-28 06:14:44 -07:00
trace.c nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
trace.h nvme: use command_id instead of req->tag in trace_nvme_complete_rq() 2022-08-02 17:22:46 -06:00
zns.c block: pass a gendisk to blk_queue_max_open_zones and blk_queue_max_active_zones 2022-07-06 06:46:26 -06:00