Re: [PATCH] nbd: fix race between timeout and normal completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux