On Fri, 30 Aug 2024 11:41:45 +0800, Ming Lei wrote: > If request timetout is handled by nbd_requeue_cmd(), normal completion > has to be stopped for avoiding to complete this requeued request, other > use-after-free can be triggered. > > Fix the race by clearing NBD_CMD_INFLIGHT in nbd_requeue_cmd(), meantime > make sure that cmd->lock is grabbed for clearing the flag and the > requeue. > > [...] Applied, thanks! [1/1] nbd: fix race between timeout and normal completion commit: c9ea57c91f03bcad415e1a20113bdb2077bcf990 Best regards, -- Jens Axboe