[PATCH 0/2] Fix a race condition when performing a controller reset
Maurizio Lombardi
mlombard at redhat.com
Thu Oct 21 01:41:53 PDT 2021
Memory leaks and kernel panics involving the nvmet driver
have been observed when an initiator executes a reset_controller
operation while doing I/O.
The problem is due to a race condition between io_work
and release_queue, the latter may end up destroying the
commands while io_work is still running, causing use-after-free
and memory leaks.
Maurizio Lombardi (2):
nvmet: add an helper to free the iovec
nvmet: fix a race condition between release_queue and io_work
drivers/nvme/target/tcp.c | 41 ++++++++++++++++++++++++++-------------
1 file changed, 28 insertions(+), 13 deletions(-)
--
2.27.0
More information about the Linux-nvme
mailing list