Re: [bug report] block/bio: remove duplicate append pages code

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

 



On Sat, Jun 08, 2024 at 05:20:26PM +0300, Dan Carpenter wrote:
>     1303                 struct page *page = pages[i];
>     1304 
>     1305                 len = min_t(size_t, PAGE_SIZE - offset, left);
>     1306                 if (bio_op(bio) == REQ_OP_ZONE_APPEND) {
> --> 1307                         ret = bio_iov_add_zone_append_page(bio, page, len,
>                                                                     ^^^
> bio->bi_bdev is dereferenced inside the function

You can't use REQ_OP_ZONE_APPEND for anything that fails
"bdev_is_zoned()", which requires a bdev, so I think we're safe. 




[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