general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 3635 Comm: syz-executor274 Not tainted 5.19.0-rc3-next-20220624-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:blk_mq_clear_rq_mapping block/blk-mq.c:3049 [inline] RIP: 0010:blk_mq_free_rqs+0x3f8/0x960 block/blk-mq.c:3097 Code: de e8 0c f0 96 fd 83 fb 3f 0f 87 7e f2 61 05 e8 ae f3 96 fd b8 00 10 00 00 89 d9 48 d3 e0 4c 01 e8 48 89 44 24 08 48 8b 04 24 <0f> b6 00 84 c0 74 08 3c 03 0f 8e 96 03 00 00 41 8b 1f 31 ff 31 ed RSP: 0018:ffffc900030efaa8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000004 RDX: ffff888074749d40 RSI: ffffffff83e3bb02 RDI: 0000000000000005 RBP: ffff8880177f8000 R08: 0000000000000005 R09: 000000000000003f R10: 0000000000000004 R11: 0000000000000001 R12: ffffc900030efb60 R13: ffff88807b610000 R14: ffff88801de7e800 R15: 0000000000000000 FS: 00007fe80d0fe700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe80d183870 CR3: 0000000078a44000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blk_mq_sched_free_rqs block/blk-mq-sched.c:638 [inline] blk_mq_sched_free_rqs+0x1d4/0x250 block/blk-mq-sched.c:627 elevator_exit block/elevator.c:196 [inline] elevator_switch_mq+0xc2/0x6c0 block/elevator.c:600 blk_mq_elv_switch_none block/blk-mq.c:4453 [inline] __blk_mq_update_nr_hw_queues block/blk-mq.c:4513 [inline] blk_mq_update_nr_hw_queues+0x3ee/0xdf0 block/blk-mq.c:4564 nbd_start_device+0x153/0xc30 drivers/block/nbd.c:1356 nbd_start_device_ioctl drivers/block/nbd.c:1406 [inline] __nbd_ioctl drivers/block/nbd.c:1480 [inline] nbd_ioctl+0x5a5/0xbd0 drivers/block/nbd.c:1520 blkdev_ioctl+0x36e/0x800 block/ioctl.c:614 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 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+0x46/0xb0 RIP: 0033:0x7fe80d151329 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe80d0fe2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe80d1d54e0 RCX: 00007fe80d151329 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007fe80d1a2194 R08: 0000000000000002 R09: 0000000000003331 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe80d1d54ec R13: 00007fe80d0fe2f0 R14: 00007fe80d1d54e8 R15: 0000000000000002 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:blk_mq_clear_rq_mapping block/blk-mq.c:3049 [inline] RIP: 0010:blk_mq_free_rqs+0x3f8/0x960 block/blk-mq.c:3097 Code: de e8 0c f0 96 fd 83 fb 3f 0f 87 7e f2 61 05 e8 ae f3 96 fd b8 00 10 00 00 89 d9 48 d3 e0 4c 01 e8 48 89 44 24 08 48 8b 04 24 <0f> b6 00 84 c0 74 08 3c 03 0f 8e 96 03 00 00 41 8b 1f 31 ff 31 ed RSP: 0018:ffffc900030efaa8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000004 RDX: ffff888074749d40 RSI: ffffffff83e3bb02 RDI: 0000000000000005 RBP: ffff8880177f8000 R08: 0000000000000005 R09: 000000000000003f R10: 0000000000000004 R11: 0000000000000001 R12: ffffc900030efb60 R13: ffff88807b610000 R14: ffff88801de7e800 R15: 0000000000000000 FS: 00007fe80d0fe700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc43aa2c30 CR3: 0000000078a44000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: de e8 fsubrp %st,%st(0) 2: 0c f0 or $0xf0,%al 4: 96 xchg %eax,%esi 5: fd std 6: 83 fb 3f cmp $0x3f,%ebx 9: 0f 87 7e f2 61 05 ja 0x561f28d f: e8 ae f3 96 fd callq 0xfd96f3c2 14: b8 00 10 00 00 mov $0x1000,%eax 19: 89 d9 mov %ebx,%ecx 1b: 48 d3 e0 shl %cl,%rax 1e: 4c 01 e8 add %r13,%rax 21: 48 89 44 24 08 mov %rax,0x8(%rsp) 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 0f b6 00 movzbl (%rax),%eax <-- trapping instruction 2d: 84 c0 test %al,%al 2f: 74 08 je 0x39 31: 3c 03 cmp $0x3,%al 33: 0f 8e 96 03 00 00 jle 0x3cf 39: 41 8b 1f mov (%r15),%ebx 3c: 31 ff xor %edi,%edi 3e: 31 ed xor %ebp,%ebp