================================================================== 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 ffff888173047a80 by task syz-executor.4/25946 CPU: 1 PID: 25946 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/0x30c 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 ext4_mpage_readpages+0x772/0x1db0 fs/ext4/readpage.c:411 ext4_readahead+0x102/0x140 fs/ext4/inode.c:3202 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:2548 filemap_read+0x315/0xeb0 mm/filemap.c:2634 generic_file_read_iter+0x3b6/0x5a0 mm/filemap.c:2784 ext4_file_read_iter+0x1d4/0x5d0 fs/ext4/file.c:130 call_read_iter include/linux/fs.h:2156 [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:0x7f1ac7034ae9 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:00007f1ac4589188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007f1ac7148020 RCX: 00007f1ac7034ae9 RDX: 0000000000000000 RSI: 0000000000000025 RDI: 0000000000000003 RBP: 00007f1ac708ef25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1ac767bb2f R14: 00007f1ac4589300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0005cc11c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x173047 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005cc11c8 ffffea0005cc11c8 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: ffff888173047980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888173047a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888173047a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888173047b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888173047b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================