Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 UID: 0 PID: 6219 Comm: syz.1.76 Not tainted 6.12.0-rc5-next-20241031-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+0xaa8/0x2cf0 io_uring/rsrc.c:758 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 b0 8a 55 fd 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 8a 55 fd 48 8b 03 48 89 44 24 60 RSP: 0018:ffffc9000bb87640 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: dffffc0000000000 RDX: ffff888077802128 RSI: 0000000000000001 RDI: 0000000000008cdd RBP: ffffc9000bb877f0 R08: ffffffff84a9d031 R09: 1ffffd40002c4000 R10: dffffc0000000000 R11: fffff940002c4001 R12: ffff88802f028b20 R13: 0000000000000040 R14: ffffea0001620000 R15: 1ffff11005e05164 FS: 00007f2fd55616c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f049ab45000 CR3: 000000002741e000 CR4: 00000000003526f0 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+0x5c8/0x1320 io_uring/rsrc.c:295 io_register_rsrc_update+0x1d1/0x230 io_uring/rsrc.c:326 __do_sys_io_uring_register io_uring/register.c:938 [inline] __se_sys_io_uring_register+0x8ee/0x40d0 io_uring/register.c:915 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2fd477e719 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:00007f2fd5561038 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 00007f2fd4935f80 RCX: 00007f2fd477e719 RDX: 0000000020000400 RSI: 0000000000000010 RDI: 0000000000000003 RBP: 00007f2fd47f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2fd4935f80 R15: 00007fff02076f58 Modules linked in: ---[ 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+0xaa8/0x2cf0 io_uring/rsrc.c:758 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 b0 8a 55 fd 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 8a 55 fd 48 8b 03 48 89 44 24 60 RSP: 0018:ffffc9000bb87640 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: dffffc0000000000 RDX: ffff888077802128 RSI: 0000000000000001 RDI: 0000000000008cdd RBP: ffffc9000bb877f0 R08: ffffffff84a9d031 R09: 1ffffd40002c4000 R10: dffffc0000000000 R11: fffff940002c4001 R12: ffff88802f028b20 R13: 0000000000000040 R14: ffffea0001620000 R15: 1ffff11005e05164 FS: 00007f2fd55616c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3190dff8 CR3: 000000002741e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: df 80 3c 08 00 74 filds 0x7400083c(%rax) 6: 08 48 89 or %cl,-0x77(%rax) 9: df e8 fucomip %st(0),%st b: b0 8a mov $0x8a,%al d: 55 push %rbp e: fd std f: 48 8b 1b mov (%rbx),%rbx 12: 48 83 c3 18 add $0x18,%rbx 16: 48 89 d8 mov %rbx,%rax 19: 48 c1 e8 03 shr $0x3,%rax 1d: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 24: fc ff df * 27: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2b: 74 08 je 0x35 2d: 48 89 df mov %rbx,%rdi 30: e8 8a 8a 55 fd call 0xfd558abf 35: 48 8b 03 mov (%rbx),%rax 38: 48 89 44 24 60 mov %rax,0x60(%rsp)