Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 14296 Comm: syz.0.17275 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:hlist_add_before_rcu include/linux/rculist.h:705 [inline] RIP: 0010:xfrm_state_find+0x4c9b/0x5400 net/xfrm/xfrm_state.c:1574 Code: 00 00 00 00 00 fc ff df 80 3c 03 00 74 08 4c 89 ff e8 e9 57 f7 f7 49 8b 1f 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 b7 58 f7 f7 4c 89 23 48 b8 00 00 00 RSP: 0018:ffffc9000bcdeee0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: ffffc9000c142000 RSI: 0000000000000332 RDI: 0000000000000333 RBP: ffffc9000bcdf100 R08: dffffc0000000000 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: ffff88804afd7328 R13: ffff88804afd7300 R14: ffff888026cf9568 R15: ffff88804afd7330 FS: 00007f49fc8bb6c0(0000) GS:ffff8881257c4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f49fc8baf98 CR3: 00000000336ba000 CR4: 00000000003526f0 DR0: 0080000000000006 DR1: 0000000000000800 DR2: 0000000000000401 DR3: 0000000000080026 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2522 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2573 [inline] xfrm_resolve_and_create_bundle+0x768/0x2f80 net/xfrm/xfrm_policy.c:2871 xfrm_lookup_with_ifid+0x2a7/0x1a70 net/xfrm/xfrm_policy.c:3205 xfrm_lookup net/xfrm/xfrm_policy.c:3336 [inline] xfrm_lookup_route+0x3c/0x1c0 net/xfrm/xfrm_policy.c:3347 rawv6_sendmsg+0xdab/0x1820 net/ipv6/raw.c:893 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x19c/0x270 net/socket.c:729 ____sys_sendmsg+0x52d/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmmsg+0x227/0x430 net/socket.c:2757 __do_sys_sendmmsg net/socket.c:2784 [inline] __se_sys_sendmmsg net/socket.c:2781 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f49fb98ebe9 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:00007f49fc8bb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f49fbbc5fa0 RCX: 00007f49fb98ebe9 RDX: 0000000000000021 RSI: 0000200000000480 RDI: 0000000000000004 RBP: 00007f49fba11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f49fbbc6038 R14: 00007f49fbbc5fa0 R15: 00007ffe70fbddd8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hlist_add_before_rcu include/linux/rculist.h:705 [inline] RIP: 0010:xfrm_state_find+0x4c9b/0x5400 net/xfrm/xfrm_state.c:1574 Code: 00 00 00 00 00 fc ff df 80 3c 03 00 74 08 4c 89 ff e8 e9 57 f7 f7 49 8b 1f 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 b7 58 f7 f7 4c 89 23 48 b8 00 00 00 RSP: 0018:ffffc9000bcdeee0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: ffffc9000c142000 RSI: 0000000000000332 RDI: 0000000000000333 RBP: ffffc9000bcdf100 R08: dffffc0000000000 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: ffff88804afd7328 R13: ffff88804afd7300 R14: ffff888026cf9568 R15: ffff88804afd7330 FS: 00007f49fc8bb6c0(0000) GS:ffff8881257c4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f49fc8baf98 CR3: 00000000336ba000 CR4: 00000000003526f0 DR0: 0080000000000006 DR1: 0000000000000800 DR2: 0000000000000401 DR3: 0000000000080026 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 7 bytes skipped: 0: df 80 3c 03 00 74 filds 0x7400033c(%rax) 6: 08 4c 89 ff or %cl,-0x1(%rcx,%rcx,4) a: e8 e9 57 f7 f7 call 0xf7f757f8 f: 49 8b 1f mov (%r15),%rbx 12: 48 89 d8 mov %rbx,%rax 15: 48 c1 e8 03 shr $0x3,%rax 19: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 20: fc ff df * 23: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 27: 74 08 je 0x31 29: 48 89 df mov %rbx,%rdi 2c: e8 b7 58 f7 f7 call 0xf7f758e8 31: 4c 89 23 mov %r12,(%rbx) 34: 48 rex.W 35: b8 .byte 0xb8 36: 00 00 add %al,(%rax)