Re: [PATCH 2/2] block: clear the holder releated fields on late disk_add failure

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

 



On Tue, Oct 18, 2022 at 05:05:09PM +0800, Yu Kuai wrote:
> 2) run the cmd:
> 
> dmsetup create test1 --table "0 100000 linear /dev/sda 0" &
> sleep 1
> echo 1 > /sys/block/sda/device/delete
> 
> And the follwing uaf is triggered:

Yes, for that we also need to clear the pointer and unregister all
holder in del_gedisk (or even better move this mess to dm :()



[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