Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 919 Comm: syz.1.13306 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895 #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_insert+0x1011/0x1450 net/xfrm/xfrm_state.c:1743 Code: 18 00 74 08 4c 89 ef e8 5d f2 02 f8 4d 89 65 00 41 80 3c 1e 00 74 08 48 89 ef e8 5a f1 02 f8 4c 8b 75 00 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 31 f2 02 f8 4d 89 2e 41 80 3c 1f 00 RSP: 0018:ffffc90005077130 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000bf39000 RSI: 00000000000006af RDI: 00000000000006b0 RBP: ffff88807b1c19b0 R08: ffff8880412c3c00 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: ffff8880574c4028 R13: ffff88807b1c19a8 R14: 0000000000000000 R15: 1ffff1100ae98806 FS: 0000000000000000(0000) GS:ffff888125d24000(0063) knlGS:00000000f54e6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000080000000 CR3: 0000000052bbc000 CR4: 00000000003526f0 Call Trace: xfrm_state_add+0x564/0xc40 net/xfrm/xfrm_state.c:1924 xfrm_add_sa+0x35a1/0x4070 net/xfrm/xfrm_user.c:1025 xfrm_user_rcv_msg+0x7a0/0xab0 net/xfrm/xfrm_user.c:3501 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2552 xfrm_netlink_rcv+0x79/0x90 net/xfrm/xfrm_user.c:3523 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82c/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmsg+0x164/0x220 net/socket.c:2700 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xb6/0x2b0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x34/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7fc4539 Code: 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f54e655c EFLAGS: 00000206 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000080000000 RDX: 0000000000002000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hlist_add_before_rcu include/linux/rculist.h:705 [inline] RIP: 0010:__xfrm_state_insert+0x1011/0x1450 net/xfrm/xfrm_state.c:1743 Code: 18 00 74 08 4c 89 ef e8 5d f2 02 f8 4d 89 65 00 41 80 3c 1e 00 74 08 48 89 ef e8 5a f1 02 f8 4c 8b 75 00 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 31 f2 02 f8 4d 89 2e 41 80 3c 1f 00 RSP: 0018:ffffc90005077130 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000bf39000 RSI: 00000000000006af RDI: 00000000000006b0 RBP: ffff88807b1c19b0 R08: ffff8880412c3c00 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: ffff8880574c4028 R13: ffff88807b1c19a8 R14: 0000000000000000 R15: 1ffff1100ae98806 FS: 0000000000000000(0000) GS:ffff888125d24000(0063) knlGS:00000000f54e6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000080000000 CR3: 0000000052bbc000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 18 00 sbb %al,(%rax) 2: 74 08 je 0xc 4: 4c 89 ef mov %r13,%rdi 7: e8 5d f2 02 f8 call 0xf802f269 c: 4d 89 65 00 mov %r12,0x0(%r13) 10: 41 80 3c 1e 00 cmpb $0x0,(%r14,%rbx,1) 15: 74 08 je 0x1f 17: 48 89 ef mov %rbp,%rdi 1a: e8 5a f1 02 f8 call 0xf802f179 1f: 4c 8b 75 00 mov 0x0(%rbp),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 f7 mov %r14,%rdi 33: e8 31 f2 02 f8 call 0xf802f269 38: 4d 89 2e mov %r13,(%r14) 3b: 41 80 3c 1f 00 cmpb $0x0,(%r15,%rbx,1)