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.