diff options
| author | Akinobu Mita <[email protected]> | 2023-02-26 12:42:54 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2023-02-28 13:14:44 +0000 |
| commit | 76d54bf20cdcc1ed7569a89885e09636e9a8d71d (patch) | |
| tree | 8e3f71e12f26ceb97febce3a84fd038ff398de86 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | nvme-auth: fix an error code in nvme_auth_process_dhchap_challenge() (diff) | |
| download | kernel-76d54bf20cdcc1ed7569a89885e09636e9a8d71d.tar.gz kernel-76d54bf20cdcc1ed7569a89885e09636e9a8d71d.zip | |
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 <[email protected]>
Fixes: 02c57a82c008 ("nvme-tcp: print actual source IP address through sysfs "address" attr")
Reviewed-by: Martin Belanger <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
