[PATCH V3 0/3] Fix a race condition when performing a controller reset

Keith Busch kbusch at kernel.org
Tue Nov 16 12:26:41 PST 2021


On Tue, Nov 16, 2021 at 04:49:17PM +0100, Maurizio Lombardi wrote:
> 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.

Series looks good to me.

Reviewed-by: Keith Busch <kbusch at kernel.org>



More information about the Linux-nvme mailing list