BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 103f6d067 P4D 103f6d067 PUD 103f6f067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 1861 Comm: syz-executor.0 Not tainted 6.7.0-rc3-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 include/linux/bio.h:289 [inline] RIP: 0010:__bio_release_pages+0x33/0x2c0 block/bio.c:1150 Code: 06 00 00 00 41 56 41 55 41 54 55 48 89 fd 53 48 83 ec 40 48 8d 54 24 10 40 88 74 24 0f 48 89 d7 48 8b 55 68 f3 48 ab 48 8b 02 <48> 8b 48 08 f6 c1 01 0f 85 14 01 00 00 0f 1f 44 00 00 48 89 04 24 RSP: 0018:ffffc900012279f8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881096f3f00 RCX: 0000000000000000 RDX: ffff8881096f3f78 RSI: 0000000000000000 RDI: ffffc90001227a38 RBP: ffff8881096f3f00 R08: 0000000000000008 R09: 000000001fffefff R10: 0000000000007ffc R11: 0000000000000000 R12: fffffffffffffff2 R13: ffff8881042fe000 R14: ffff8881042fe000 R15: 0000000000000000 FS: 00007fb4230226c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 0000000104337000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bio_release_pages include/linux/bio.h:508 [inline] bio_map_user_iov+0x339/0x3a0 block/blk-map.c:347 blk_rq_map_user_iov+0xd7/0x7b0 block/blk-map.c:663 blk_rq_map_user block/blk-map.c:690 [inline] blk_rq_map_user_io+0xf6/0x100 block/blk-map.c:723 sg_io+0x16b/0x320 drivers/scsi/scsi_ioctl.c:456 scsi_cdrom_send_packet+0x1bc/0x310 drivers/scsi/scsi_ioctl.c:820 scsi_ioctl+0x96/0x950 drivers/scsi/scsi_ioctl.c:903 sg_ioctl+0x2f4/0xaf0 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+0x8b/0xc0 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fb42349fba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb4230220c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb4235bef80 RCX: 00007fb42349fba9 RDX: 0000000020000000 RSI: 0000000000005393 RDI: 0000000000000004 RBP: 00007fb4234eb47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fb4235bef80 R15: 00007ffe87d3fb88 Modules linked in: CR2: 0000000000000008 ---[ end trace 0000000000000000 ]--- RIP: 0010:_compound_head include/linux/page-flags.h:247 [inline] RIP: 0010:bio_first_folio include/linux/bio.h:289 [inline] RIP: 0010:__bio_release_pages+0x33/0x2c0 block/bio.c:1150 Code: 06 00 00 00 41 56 41 55 41 54 55 48 89 fd 53 48 83 ec 40 48 8d 54 24 10 40 88 74 24 0f 48 89 d7 48 8b 55 68 f3 48 ab 48 8b 02 <48> 8b 48 08 f6 c1 01 0f 85 14 01 00 00 0f 1f 44 00 00 48 89 04 24 RSP: 0018:ffffc900012279f8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881096f3f00 RCX: 0000000000000000 RDX: ffff8881096f3f78 RSI: 0000000000000000 RDI: ffffc90001227a38 RBP: ffff8881096f3f00 R08: 0000000000000008 R09: 000000001fffefff R10: 0000000000007ffc R11: 0000000000000000 R12: fffffffffffffff2 R13: ffff8881042fe000 R14: ffff8881042fe000 R15: 0000000000000000 FS: 00007fb4230226c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 0000000104337000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 00 41 56 add %al,0x56(%rcx) 5: 41 55 push %r13 7: 41 54 push %r12 9: 55 push %rbp a: 48 89 fd mov %rdi,%rbp d: 53 push %rbx e: 48 83 ec 40 sub $0x40,%rsp 12: 48 8d 54 24 10 lea 0x10(%rsp),%rdx 17: 40 88 74 24 0f mov %sil,0xf(%rsp) 1c: 48 89 d7 mov %rdx,%rdi 1f: 48 8b 55 68 mov 0x68(%rbp),%rdx 23: f3 48 ab rep stos %rax,%es:(%rdi) 26: 48 8b 02 mov (%rdx),%rax * 29: 48 8b 48 08 mov 0x8(%rax),%rcx <-- trapping instruction 2d: f6 c1 01 test $0x1,%cl 30: 0f 85 14 01 00 00 jne 0x14a 36: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 3b: 48 89 04 24 mov %rax,(%rsp)