bisecting fixing commit since 90c9e950c0def5c354b4a6154a2ddda3e5f214ac building syzkaller on a7dab6385c1d95547a88e22577fb56fbcd5c37eb testing commit 90c9e950c0def5c354b4a6154a2ddda3e5f214ac compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6503f4fdb9b1cf6aaad0d2119fd3351d2b27b98311bdb863648a892962da8442 all runs: crashed: general protection fault in blk_mq_free_rqs testing current HEAD e1f700ebd6bea293abe3c7e2807b252018efde01 testing commit e1f700ebd6bea293abe3c7e2807b252018efde01 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b11a3e8ccaf608a6a9129c789bbf76705dcf44e7e96b3b579315bff221e29451 run #0: crashed: general protection fault in blk_mq_free_rqs run #1: crashed: general protection fault in blk_mq_free_rqs run #2: crashed: general protection fault in blk_mq_free_rqs run #3: crashed: general protection fault in blk_mq_free_rqs run #4: crashed: WARNING in kernfs_remove_by_name_ns run #5: crashed: general protection fault in blk_mq_free_rqs run #6: crashed: general protection fault in blk_mq_free_rqs run #7: crashed: general protection fault in blk_mq_free_rqs run #8: crashed: general protection fault in blk_mq_free_rqs run #9: crashed: general protection fault in blk_mq_free_rqs revisions tested: 2, total time: 18m22.168510521s (build: 11m59.510460286s, test: 5m48.296025874s) the crash still happens on HEAD commit msg: Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi crash: general protection fault in blk_mq_free_rqs general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 4063 Comm: syz-executor156 Not tainted 5.18.0-rc1-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:3058 [inline] RIP: 0010:blk_mq_free_rqs+0x377/0x860 block/blk-mq.c:3106 Code: 0f 85 4c 03 00 00 48 8b 44 24 20 48 8b 48 28 83 f9 3f 0f 87 ec 3c d4 04 48 8b 44 24 08 41 bc 00 10 00 00 49 d3 e4 4c 03 24 24 <0f> b6 00 4c 89 64 24 10 84 c0 74 08 3c 03 0f 8e 07 03 00 00 48 8b RSP: 0018:ffffc90004e57ac0 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 000000001c200000 RCX: 0000000000000004 RDX: 1ffff11003d33cd2 RSI: ffff88801e99e600 RDI: ffffea0000708028 RBP: ffff88801a7c0800 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88801c210000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f02357f9700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f023588d4d0 CR3: 000000007e84b000 CR4: 0000000000350ee0 Call Trace: blk_mq_sched_free_rqs block/blk-mq-sched.c:637 [inline] blk_mq_sched_free_rqs+0x183/0x220 block/blk-mq-sched.c:626 elevator_exit block/elevator.c:196 [inline] elevator_switch_mq+0xa7/0x4f0 block/elevator.c:600 blk_mq_elv_switch_none block/blk-mq.c:4459 [inline] __blk_mq_update_nr_hw_queues block/blk-mq.c:4519 [inline] blk_mq_update_nr_hw_queues+0x38b/0xca0 block/blk-mq.c:4570 nbd_start_device+0x10a/0xb70 drivers/block/nbd.c:1347 nbd_start_device_ioctl drivers/block/nbd.c:1397 [inline] __nbd_ioctl drivers/block/nbd.c:1471 [inline] nbd_ioctl+0x3ba/0x8f0 drivers/block/nbd.c:1511 blkdev_ioctl+0x2ff/0x6c0 block/ioctl.c:588 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+0x11f/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f023584c329 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:00007f02357f92e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f02358d04e0 RCX: 00007f023584c329 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007f023589d194 R08: 0000000000000002 R09: 0000000000003331 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f02358d04ec R13: 00007f02357f92f0 R14: 00007f02358d04e8 R15: 0000000000000002 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:blk_mq_clear_rq_mapping block/blk-mq.c:3058 [inline] RIP: 0010:blk_mq_free_rqs+0x377/0x860 block/blk-mq.c:3106 Code: 0f 85 4c 03 00 00 48 8b 44 24 20 48 8b 48 28 83 f9 3f 0f 87 ec 3c d4 04 48 8b 44 24 08 41 bc 00 10 00 00 49 d3 e4 4c 03 24 24 <0f> b6 00 4c 89 64 24 10 84 c0 74 08 3c 03 0f 8e 07 03 00 00 48 8b RSP: 0018:ffffc90004e57ac0 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 000000001c200000 RCX: 0000000000000004 RDX: 1ffff11003d33cd2 RSI: ffff88801e99e600 RDI: ffffea0000708028 RBP: ffff88801a7c0800 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88801c210000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f02357f9700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c6e4c03068 CR3: 000000007e84b000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: 0f 85 4c 03 00 00 jne 0x352 6: 48 8b 44 24 20 mov 0x20(%rsp),%rax b: 48 8b 48 28 mov 0x28(%rax),%rcx f: 83 f9 3f cmp $0x3f,%ecx 12: 0f 87 ec 3c d4 04 ja 0x4d43d04 18: 48 8b 44 24 08 mov 0x8(%rsp),%rax 1d: 41 bc 00 10 00 00 mov $0x1000,%r12d 23: 49 d3 e4 shl %cl,%r12 26: 4c 03 24 24 add (%rsp),%r12 * 2a: 0f b6 00 movzbl (%rax),%eax <-- trapping instruction 2d: 4c 89 64 24 10 mov %r12,0x10(%rsp) 32: 84 c0 test %al,%al 34: 74 08 je 0x3e 36: 3c 03 cmp $0x3,%al 38: 0f 8e 07 03 00 00 jle 0x345 3e: 48 rex.W 3f: 8b .byte 0x8b