syzbot


BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+cd20829ac44b92bf6ed0@syzkaller.appspotmail.com
Fix commit: a22c00be90de block: assign correct tag before doing prefetch of request
First crash: 208d, last: 196d

Cause bisection: introduced by (bisect log) [merge commit]:
commit 7c5835a8640c8eaae0d6059d0ad185da6b946945
Author: Jens Axboe <axboe@kernel.dk>
Date: Wed Oct 27 03:01:55 2021 +0000

  Merge branch 'for-5.16/scsi-ma' into for-next

Crash: no output from test machine (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/11/01 12:58 16m axboe@kernel.dk git://git.kernel.dk/linux-block for-next OK

Sample crash report:
loop0: detected capacity change from 0 to 1
BUG: unable to handle page fault for address: ffffed101e501750
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffee067 P4D 23ffee067 PUD 13fff5067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6523 Comm: syz-executor279 Not tainted 5.15.0-rc7-next-20211028-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__blk_mq_alloc_requests_batch block/blk-mq.c:408 [inline]
RIP: 0010:__blk_mq_alloc_requests+0x4a7/0xb00 block/blk-mq.c:457
Code: e8 fd 48 8b 44 24 10 80 38 00 0f 85 a6 04 00 00 48 8b 44 24 08 45 89 ed 48 8b b0 88 00 00 00 4a 8d 1c ee 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 6c 04 00 00 44 8b ac 24 a0 00 00 00 48 8b 03
RSP: 0018:ffffc900027fea90 EFLAGS: 00010a06
RAX: 1ffff1101e501750 RBX: ffff8880f280ba80 RCX: 0000000000000000
RDX: ffff888017bd1d40 RSI: ffff888019f43000 RDI: 0000000000000003
RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff838f31a1 R11: 0000000000000000 R12: 0000000000000000
R13: 000000001b119150 R14: dffffc0000000000 R15: ffffc900027fec28
FS:  00005555573e63c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101e501750 CR3: 0000000021651000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 blk_mq_submit_bio+0xdac/0x1b40 block/blk-mq.c:2526
 __submit_bio+0x794/0x8e0 block/blk-core.c:894
 __submit_bio_noacct_mq block/blk-core.c:972 [inline]
 submit_bio_noacct block/blk-core.c:998 [inline]
 submit_bio_noacct+0x6c9/0x8a0 block/blk-core.c:987
 submit_bio block/blk-core.c:1059 [inline]
 submit_bio+0x1ea/0x430 block/blk-core.c:1017
 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:980 [inline]
 filemap_get_pages+0x2b2/0x1be0 mm/filemap.c:2556
 filemap_read+0x315/0xeb0 mm/filemap.c:2642
 generic_file_read_iter+0x3b6/0x5a0 mm/filemap.c:2792
 blkdev_read_iter+0x117/0x200 block/fops.c:583
 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:0x7f8a945379c9
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 c4 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffea64277e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8a945379c9
RDX: 0000000000000000 RSI: 00000000000002ff RDI: 0000000000000003
RBP: 00007ffea6427800 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
CR2: ffffed101e501750
---[ end trace dde64fe0ea4dcb18 ]---
RIP: 0010:__blk_mq_alloc_requests_batch block/blk-mq.c:408 [inline]
RIP: 0010:__blk_mq_alloc_requests+0x4a7/0xb00 block/blk-mq.c:457
Code: e8 fd 48 8b 44 24 10 80 38 00 0f 85 a6 04 00 00 48 8b 44 24 08 45 89 ed 48 8b b0 88 00 00 00 4a 8d 1c ee 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 6c 04 00 00 44 8b ac 24 a0 00 00 00 48 8b 03
RSP: 0018:ffffc900027fea90 EFLAGS: 00010a06
RAX: 1ffff1101e501750 RBX: ffff8880f280ba80 RCX: 0000000000000000
RDX: ffff888017bd1d40 RSI: ffff888019f43000 RDI: 0000000000000003
RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff838f31a1 R11: 0000000000000000 R12: 0000000000000000
R13: 000000001b119150 R14: dffffc0000000000 R15: ffffc900027fec28
FS:  00005555573e63c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101e501750 CR3: 0000000021651000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 fd 48 8b 44       	callq  0x448b4902
   5:	24 10                	and    $0x10,%al
   7:	80 38 00             	cmpb   $0x0,(%rax)
   a:	0f 85 a6 04 00 00    	jne    0x4b6
  10:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  15:	45 89 ed             	mov    %r13d,%r13d
  18:	48 8b b0 88 00 00 00 	mov    0x88(%rax),%rsi
  1f:	4a 8d 1c ee          	lea    (%rsi,%r13,8),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 6c 04 00 00    	jne    0x4a1
  35:	44 8b ac 24 a0 00 00 	mov    0xa0(%rsp),%r13d
  3c:	00
  3d:	48 8b 03             	mov    (%rbx),%rax

Crashes (107):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2021/10/29 02:58 linux-next 503f375baa99 be531bb4 .config log report syz C BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/10/29 02:53 linux-next 503f375baa99 be531bb4 .config log report syz C BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/10/28 15:53 linux-next 503f375baa99 be531bb4 .config log report syz BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/10/28 15:42 linux-next 503f375baa99 be531bb4 .config log report syz BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/09 22:07 upstream d2f38a3c6507 59bcaf9a .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/09 16:00 upstream d2f38a3c6507 59bcaf9a .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/09 12:13 upstream e851dfae4371 8ab17e57 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-qemu-upstream 2021/11/09 08:34 upstream e851dfae4371 8ab17e57 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/09 07:15 upstream e851dfae4371 8ab17e57 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/09 00:28 upstream e851dfae4371 8ab17e57 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/08 10:37 upstream 6b75d88fa81b 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/08 09:13 upstream 6b75d88fa81b 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/07 10:01 upstream 512b7931ad05 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/06 18:51 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/06 15:15 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/06 13:53 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/06 09:38 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/06 05:59 upstream fe91c4725aee 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/05 16:40 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/05 15:03 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/05 13:00 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/05 11:23 upstream d4439a1189f9 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/05 01:31 upstream 7ddb58cb0eca 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/04 13:16 upstream ce840177930f 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/03 19:01 upstream dcd68326d29b 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/03 16:25 upstream dcd68326d29b 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/03 03:46 upstream cc0356d6a02e 17f3edd2 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/03 03:00 upstream bfc484fe6abb 17f3edd2 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/02 07:57 upstream d2fac0afe89f 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/02 02:47 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:45 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:44 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:41 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:35 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/01 23:34 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:33 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce-selinux-root 2021/11/01 23:33 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/01 23:02 upstream e66435936756 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/06 23:06 linux-next 6a37ebbe07bf 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/06 02:53 linux-next 6a37ebbe07bf 4c1be0be .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/02 04:31 linux-next bdcc9f6a5682 098b5d53 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/10/28 12:47 linux-next 503f375baa99 be531bb4 .config log report info BUG: unable to handle kernel paging request in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/09 01:53 upstream e851dfae4371 8ab17e57 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/08 19:08 upstream e851dfae4371 d29682f1 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/08 14:49 upstream 6b75d88fa81b d29682f1 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/08 06:47 upstream 6b75d88fa81b 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/07 18:32 upstream b5013d084e03 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/06 10:52 upstream fe91c4725aee 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/05 03:02 upstream 7ddb58cb0eca 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/02 16:01 upstream d2fac0afe89f 098b5d53 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce-root 2021/11/02 05:41 upstream d2fac0afe89f 098b5d53 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/02 00:57 upstream e66435936756 098b5d53 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-kasan-gce 2021/11/01 23:51 upstream e66435936756 098b5d53 .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/07 23:40 linux-next 6a37ebbe07bf 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/07 22:33 linux-next 6a37ebbe07bf 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests
ci-upstream-linux-next-kasan-gce-root 2021/11/06 12:05 linux-next 6a37ebbe07bf 4c1be0be .config log report info KASAN: use-after-free Read in __blk_mq_alloc_requests