Re: [PATCH] block: brd: associate with queue until adding disk

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

 



On 10/31/18 2:40 AM, Ming Lei wrote:
> brd_free() may be called in failure path on one brd instance which
> disk isn't added yet, so release handler of gendisk may free the
> associated request_queue early and causes the following use-after-free[1].
> 
> This patch fixes this issue by associating gendisk with request_queue
> just before adding disk.

Looks good to me, thanks, applied.

-- 
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