BUG: kernel NULL pointer dereference, address: 0000000000000018 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 800000010e705067 P4D 800000010e705067 PUD 10e711067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 3050 Comm: syz.3.15 Not tainted 6.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:headpage_already_acct io_uring/rsrc.c:584 [inline] RIP: 0010:io_buffer_account_pin io_uring/rsrc.c:614 [inline] RIP: 0010:io_sqe_buffer_register+0x279/0x8f0 io_uring/rsrc.c:758 Code: c0 0f 84 a3 00 00 00 31 ff eb 11 41 8b 86 20 01 00 00 ff c7 39 c7 0f 83 8e 00 00 00 49 8b 96 28 01 00 00 48 63 ef 48 8b 14 ea <48> 8b 5a 18 8b 53 0c 85 d2 74 dd 31 ed eb 09 8b 53 0c ff c5 39 d5 RSP: 0018:ffffc90001c3bc98 EFLAGS: 00010246 RAX: 0000000000000002 RBX: 00000000fffffe00 RCX: ffffea0008d90000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: ffffc90001c3bd48 R11: 0000000000000000 R12: ffff888104faa380 R13: ffff888101fcdb00 R14: ffff888108eb7000 R15: ffff8881057b3fa0 FS: 00007f92705f16c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000018 CR3: 0000000104b26000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __io_sqe_buffers_update io_uring/rsrc.c:257 [inline] __io_register_rsrc_update+0x205/0x4b0 io_uring/rsrc.c:295 io_register_rsrc_update+0x87/0xb0 io_uring/rsrc.c:326 __do_sys_io_uring_register io_uring/register.c:938 [inline] __se_sys_io_uring_register+0x548/0x13d0 io_uring/register.c:915 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f926f77e719 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f92705f1038 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 00007f926f935f80 RCX: 00007f926f77e719 RDX: 0000000020000600 RSI: 0000000000000010 RDI: 0000000000000003 RBP: 00007f926f7f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f926f935f80 R15: 00007fff382895a8 Modules linked in: CR2: 0000000000000018 ---[ end trace 0000000000000000 ]--- RIP: 0010:headpage_already_acct io_uring/rsrc.c:584 [inline] RIP: 0010:io_buffer_account_pin io_uring/rsrc.c:614 [inline] RIP: 0010:io_sqe_buffer_register+0x279/0x8f0 io_uring/rsrc.c:758 Code: c0 0f 84 a3 00 00 00 31 ff eb 11 41 8b 86 20 01 00 00 ff c7 39 c7 0f 83 8e 00 00 00 49 8b 96 28 01 00 00 48 63 ef 48 8b 14 ea <48> 8b 5a 18 8b 53 0c 85 d2 74 dd 31 ed eb 09 8b 53 0c ff c5 39 d5 RSP: 0018:ffffc90001c3bc98 EFLAGS: 00010246 RAX: 0000000000000002 RBX: 00000000fffffe00 RCX: ffffea0008d90000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: ffffc90001c3bd48 R11: 0000000000000000 R12: ffff888104faa380 R13: ffff888101fcdb00 R14: ffff888108eb7000 R15: ffff8881057b3fa0 FS: 00007f92705f16c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000018 CR3: 0000000104b26000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c0 0f 84 rorb $0x84,(%rdi) 3: a3 00 00 00 31 ff eb movabs %eax,0x4111ebff31000000 a: 11 41 c: 8b 86 20 01 00 00 mov 0x120(%rsi),%eax 12: ff c7 inc %edi 14: 39 c7 cmp %eax,%edi 16: 0f 83 8e 00 00 00 jae 0xaa 1c: 49 8b 96 28 01 00 00 mov 0x128(%r14),%rdx 23: 48 63 ef movslq %edi,%rbp 26: 48 8b 14 ea mov (%rdx,%rbp,8),%rdx * 2a: 48 8b 5a 18 mov 0x18(%rdx),%rbx <-- trapping instruction 2e: 8b 53 0c mov 0xc(%rbx),%edx 31: 85 d2 test %edx,%edx 33: 74 dd je 0x12 35: 31 ed xor %ebp,%ebp 37: eb 09 jmp 0x42 39: 8b 53 0c mov 0xc(%rbx),%edx 3c: ff c5 inc %ebp 3e: 39 d5 cmp %edx,%ebp