Re: [PATCH] block: null_blk: Fix null_zone_write()

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

 



On Thu, 2 Jun 2022 21:03:44 +0900, Damien Le Moal wrote:
> The bio and rq fields of struct nullb_cmd are now overlapping in a
> union. So we cannot use a test on ->bio being non-NULL to detect the
> NULL_Q_BIO queue mode. null_zone_write() use such broken test to set the
> sector position of a zone append write in the command bio or request.
> When the null_blk device uses the NULL_Q_MQ queue mode,
> null_zone_write() wrongly end up setting the bio sector position,
> resulting in the command request to be broken and random crashes
> following.
> 
> [...]

Applied, thanks!

[1/1] block: null_blk: Fix null_zone_write()
      commit: aacae8c469f9ce4b303a2eb61593ff522c1420bc

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