general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 5059 Comm: syz-executor696 Not tainted 6.7.0-rc5-next-20231212-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:_compound_head include/linux/page-flags.h:247 [inline] RIP: 0010:bio_first_folio+0xcb/0x5c0 include/linux/bio.h:289 Code: 48 89 ea 48 c1 ea 03 80 3c 02 00 0f 85 76 04 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6d 00 49 8d 7d 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 49 04 00 00 4d 8b 7d 08 31 ff 4d 89 fc 41 83 e4 RSP: 0018:ffffc900039ef448 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffc900039ef4e8 RCX: ffffffff8444f4bd RDX: 0000000000000001 RSI: ffffffff8444f4cb RDI: 0000000000000008 RBP: ffff88801dad0888 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801dad0800 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88801dad0800 FS: 0000555556ace380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 000000007c5b7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bio_release_pages+0x9d/0x4b0 block/bio.c:1150 bio_release_pages include/linux/bio.h:508 [inline] bio_map_user_iov+0x8ee/0xa60 block/blk-map.c:347 blk_rq_map_user_iov+0x6a5/0x1840 block/blk-map.c:663 blk_rq_map_user block/blk-map.c:690 [inline] blk_rq_map_user_io+0x202/0x230 block/blk-map.c:723 sg_io+0x537/0xd70 drivers/scsi/scsi_ioctl.c:456 scsi_cdrom_send_packet+0x276/0x640 drivers/scsi/scsi_ioctl.c:820 scsi_ioctl+0x146/0x1840 drivers/scsi/scsi_ioctl.c:903 sg_ioctl+0xb7b/0x2760 drivers/scsi/sg.c:1163 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f9970983229 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffda6357b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffda6357d68 RCX: 00007f9970983229 RDX: 0000000020000000 RSI: 0000000000005393 RDI: 0000000000000004 RBP: 00007f99709f6610 R08: 00007ffda6357d68 R09: 00007ffda6357d68 R10: 002367732f766564 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffda6357d58 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_compound_head include/linux/page-flags.h:247 [inline] RIP: 0010:bio_first_folio+0xcb/0x5c0 include/linux/bio.h:289 Code: 48 89 ea 48 c1 ea 03 80 3c 02 00 0f 85 76 04 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6d 00 49 8d 7d 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 49 04 00 00 4d 8b 7d 08 31 ff 4d 89 fc 41 83 e4 RSP: 0018:ffffc900039ef448 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffc900039ef4e8 RCX: ffffffff8444f4bd RDX: 0000000000000001 RSI: ffffffff8444f4cb RDI: 0000000000000008 RBP: ffff88801dad0888 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801dad0800 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88801dad0800 FS: 0000555556ace380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 000000007c5b7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 ea mov %rbp,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 76 04 00 00 jne 0x487 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 4c 8b 6d 00 mov 0x0(%rbp),%r13 1f: 49 8d 7d 08 lea 0x8(%r13),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 49 04 00 00 jne 0x47d 34: 4d 8b 7d 08 mov 0x8(%r13),%r15 38: 31 ff xor %edi,%edi 3a: 4d 89 fc mov %r15,%r12 3d: 41 rex.B 3e: 83 .byte 0x83 3f: e4 .byte 0xe4