================================================================== BUG: KASAN: use-after-free in __blk_mq_alloc_requests_batch block/blk-mq.c:408 [inline] BUG: KASAN: use-after-free in __blk_mq_alloc_requests+0x92a/0xb00 block/blk-mq.c:457 Read of size 8 at addr ffff8881deb52e80 by task syz-executor.4/30628 CPU: 1 PID: 30628 Comm: syz-executor.4 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:256 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 __blk_mq_alloc_requests_batch block/blk-mq.c:408 [inline] __blk_mq_alloc_requests+0x92a/0xb00 block/blk-mq.c:457 blk_mq_submit_bio+0xdac/0x1b40 block/blk-mq.c:2531 __submit_bio+0x794/0x8e0 block/blk-core.c:873 __submit_bio_noacct_mq block/blk-core.c:951 [inline] submit_bio_noacct block/blk-core.c:977 [inline] submit_bio_noacct+0x6c9/0x8a0 block/blk-core.c:966 submit_bio block/blk-core.c:1038 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:996 mpage_bio_submit fs/mpage.c:66 [inline] mpage_readahead+0x589/0x750 fs/mpage.c:393 read_pages+0x1e4/0xfa0 mm/readahead.c:129 page_cache_ra_unbounded+0x64b/0x940 mm/readahead.c:238 do_page_cache_ra mm/readahead.c:268 [inline] ondemand_readahead+0x594/0x1090 mm/readahead.c:551 page_cache_sync_ra+0x1cb/0x200 mm/readahead.c:579 page_cache_sync_readahead include/linux/pagemap.h:930 [inline] filemap_get_pages+0x2b2/0x1be0 mm/filemap.c:2541 filemap_read+0x2ca/0xe40 mm/filemap.c:2624 generic_file_read_iter+0x397/0x4f0 mm/filemap.c:2775 blkdev_read_iter+0x117/0x200 block/fops.c:583 call_read_iter include/linux/fs.h:2155 [inline] io_iter_do_read fs/io_uring.c:3462 [inline] io_read+0x33c/0xff0 fs/io_uring.c:3519 io_issue_sqe+0x800/0x7010 fs/io_uring.c:6628 __io_queue_sqe fs/io_uring.c:6978 [inline] io_queue_sqe fs/io_uring.c:7020 [inline] io_submit_sqe fs/io_uring.c:7223 [inline] io_submit_sqes+0x1bca/0x8a20 fs/io_uring.c:7329 __do_sys_io_uring_enter+0xf6e/0x1f50 fs/io_uring.c:10043 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2416cf5ae9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f241426b188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007f2416e08f60 RCX: 00007f2416cf5ae9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000003 RBP: 00007f2416d4ff25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f241733cb2f R14: 00007f241426b300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea00077ad480 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1deb52 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea00077ad488 ffffea00077ad488 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff8881deb52d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881deb52e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881deb52e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881deb52f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881deb52f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================