general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 13983 Comm: syz-executor.7 Not tainted 5.10.79 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:scsi_command_size include/scsi/scsi_common.h:24 [inline] RIP: 0010:scsi_setup_scsi_cmnd drivers/scsi/scsi_lib.c:1197 [inline] RIP: 0010:scsi_prepare_cmd drivers/scsi/scsi_lib.c:1581 [inline] RIP: 0010:scsi_queue_rq+0x1eb1/0x2a70 drivers/scsi/scsi_lib.c:1670 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 46 0b 00 00 48 8b 8b 40 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 c1 ea 03 <0f> b6 04 02 48 89 ca 83 e2 07 38 d0 7f 08 84 c0 0f 85 48 0b 00 00 RSP: 0018:ffff88804b63f3c0 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: ffff88800ef10000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff829603ae RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88800ef10248 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88800ef10240 R13: ffff88800af6a000 R14: 0000000000000000 R15: ffff88800938e000 FS: 00007f92f4efb700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d027000 CR3: 000000004682c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: blk_mq_dispatch_rq_list+0x36d/0x1bb0 block/blk-mq.c:1369 __blk_mq_sched_dispatch_requests+0x263/0x490 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xfb/0x180 block/blk-mq-sched.c:342 __blk_mq_run_hw_queue+0x12c/0x290 block/blk-mq.c:1513 __blk_mq_delay_run_hw_queue+0x4f1/0x550 block/blk-mq.c:1590 blk_mq_run_hw_queue+0x16c/0x2f0 block/blk-mq.c:1643 blk_mq_sched_insert_request+0x380/0x440 block/blk-mq-sched.c:470 blk_execute_rq+0xd4/0x1b0 block/blk-exec.c:86 sg_io+0x60d/0xf70 block/scsi_ioctl.c:360 scsi_cmd_ioctl+0x522/0x590 block/scsi_ioctl.c:809 scsi_cmd_blk_ioctl block/scsi_ioctl.c:867 [inline] scsi_cmd_blk_ioctl+0xe1/0x130 block/scsi_ioctl.c:858 cdrom_ioctl+0xc4/0x2bb0 drivers/cdrom/cdrom.c:3361 sr_block_ioctl+0x141/0x1a0 drivers/scsi/sr.c:596 __blkdev_driver_ioctl block/ioctl.c:237 [inline] blkdev_ioctl+0x28d/0x700 block/ioctl.c:632 block_ioctl+0xf9/0x140 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x196/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f92f7985b19 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:00007f92f4efb188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f92f7a98f60 RCX: 00007f92f7985b19 RDX: 0000000020000540 RSI: 0000000000002285 RDI: 0000000000000004 RBP: 00007f92f79dff6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc798f406f R14: 00007f92f4efb300 R15: 0000000000022000 Modules linked in: ---[ end trace 2f5aefbedab9da96 ]--- RIP: 0010:scsi_command_size include/scsi/scsi_common.h:24 [inline] RIP: 0010:scsi_setup_scsi_cmnd drivers/scsi/scsi_lib.c:1197 [inline] RIP: 0010:scsi_prepare_cmd drivers/scsi/scsi_lib.c:1581 [inline] RIP: 0010:scsi_queue_rq+0x1eb1/0x2a70 drivers/scsi/scsi_lib.c:1670 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 46 0b 00 00 48 8b 8b 40 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 c1 ea 03 <0f> b6 04 02 48 89 ca 83 e2 07 38 d0 7f 08 84 c0 0f 85 48 0b 00 00 RSP: 0018:ffff88804b63f3c0 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: ffff88800ef10000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff829603ae RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88800ef10248 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88800ef10240 R13: ffff88800af6a000 R14: 0000000000000000 R15: ffff88800938e000 FS: 00007f92f4efb700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d027000 CR3: 000000004682c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 note: syz-executor.7[13983] exited with preempt_count 2 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 46 0b 00 00 jne 0xb54 e: 48 8b 8b 40 02 00 00 mov 0x240(%rbx),%rcx 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 48 89 ca mov %rcx,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx * 26: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2a: 48 89 ca mov %rcx,%rdx 2d: 83 e2 07 and $0x7,%edx 30: 38 d0 cmp %dl,%al 32: 7f 08 jg 0x3c 34: 84 c0 test %al,%al 36: 0f 85 48 0b 00 00 jne 0xb84