Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 11916 Comm: syz.3.1465 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+0x6992/0x84c0 net/xfrm/xfrm_state.c:1574 Code: 03 48 c1 e2 2a 80 3c 11 00 0f 85 76 14 00 00 48 8b 85 98 fe ff ff ba ff ff 37 00 48 c1 e2 2a 4c 8b 70 30 4c 89 f1 48 c1 e9 03 <80> 3c 11 00 0f 85 44 14 00 00 4c 89 ea b8 ff ff 37 00 4d 89 26 48 RSP: 0018:ffffc9000c116f78 EFLAGS: 00010246 RAX: ffff88805c2a4880 RBX: ffff888052c18440 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 1ffff1100b854916 RDI: 0000000000000001 RBP: ffffc9000c1171a8 R08: 0000000000000001 R09: 0000000000000008 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88805c2a48a8 R13: ffff888052c18470 R14: 0000000000000000 R15: ffff888052c18468 FS: 00007f751e95c6c0(0000) GS:ffff8881246b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c37cc0a CR3: 0000000034a06000 CR4: 00000000003526f0 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+0x4cd/0x3740 net/xfrm/xfrm_policy.c:2871 xfrm_lookup_with_ifid+0x2a0/0x1e40 net/xfrm/xfrm_policy.c:3205 xfrm_lookup net/xfrm/xfrm_policy.c:3336 [inline] xfrm_lookup_route+0x3b/0x200 net/xfrm/xfrm_policy.c:3347 ip6_dst_lookup_flow+0x15c/0x1d0 net/ipv6/ip6_output.c:1268 rawv6_sendmsg+0xe85/0x4820 net/ipv6/raw.c:893 inet_sendmsg+0x11c/0x140 net/ipv4/af_inet.c:851 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg net/socket.c:729 [inline] ____sys_sendmsg+0x973/0xc70 net/socket.c:2614 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2668 __sys_sendmmsg+0x200/0x420 net/socket.c:2757 __do_sys_sendmmsg net/socket.c:2784 [inline] __se_sys_sendmmsg net/socket.c:2781 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f751db8ebe9 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:00007f751e95c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f751ddb5fa0 RCX: 00007f751db8ebe9 RDX: 00000000000002e9 RSI: 0000200000000480 RDI: 0000000000000006 RBP: 00007f751dc11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f751ddb6038 R14: 00007f751ddb5fa0 R15: 00007fff2f8d6ef8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hlist_add_before_rcu include/linux/rculist.h:705 [inline] RIP: 0010:xfrm_state_find+0x6992/0x84c0 net/xfrm/xfrm_state.c:1574 Code: 03 48 c1 e2 2a 80 3c 11 00 0f 85 76 14 00 00 48 8b 85 98 fe ff ff ba ff ff 37 00 48 c1 e2 2a 4c 8b 70 30 4c 89 f1 48 c1 e9 03 <80> 3c 11 00 0f 85 44 14 00 00 4c 89 ea b8 ff ff 37 00 4d 89 26 48 RSP: 0018:ffffc9000c116f78 EFLAGS: 00010246 RAX: ffff88805c2a4880 RBX: ffff888052c18440 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 1ffff1100b854916 RDI: 0000000000000001 RBP: ffffc9000c1171a8 R08: 0000000000000001 R09: 0000000000000008 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88805c2a48a8 R13: ffff888052c18470 R14: 0000000000000000 R15: ffff888052c18468 FS: 00007f751e95c6c0(0000) GS:ffff8881246b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c37cc0a CR3: 0000000034a06000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 03 48 c1 add -0x3f(%rax),%ecx 3: e2 2a loop 0x2f 5: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) 9: 0f 85 76 14 00 00 jne 0x1485 f: 48 8b 85 98 fe ff ff mov -0x168(%rbp),%rax 16: ba ff ff 37 00 mov $0x37ffff,%edx 1b: 48 c1 e2 2a shl $0x2a,%rdx 1f: 4c 8b 70 30 mov 0x30(%rax),%r14 23: 4c 89 f1 mov %r14,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 44 14 00 00 jne 0x1478 34: 4c 89 ea mov %r13,%rdx 37: b8 ff ff 37 00 mov $0x37ffff,%eax 3c: 4d 89 26 mov %r12,(%r14) 3f: 48 rex.W