netlink: 'syz.4.2183': attribute type 21 has an invalid length. netlink: 4 bytes leftover after parsing attributes in process `syz.4.2183'. 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: 13378 Comm: syz.4.2183 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_insert+0x1011/0x1450 net/xfrm/xfrm_state.c:1743 Code: 18 00 74 08 4c 89 ef e8 fd 00 02 f8 4d 89 65 00 41 80 3c 1e 00 74 08 48 89 ef e8 fa ff 01 f8 4c 8b 75 00 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 d1 00 02 f8 4d 89 2e 41 80 3c 1f 00 RSP: 0018:ffffc9001e16f3a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff88807e47bc00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: ffff8880568e4030 R08: dffffc0000000000 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000000 R12: ffff8880568e4028 R13: ffff8880568e4028 R14: 0000000000000000 R15: 1ffff1100ad1c806 FS: 00007f8539daf6c0(0000) GS:ffff888125d1b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000007b372000 CR4: 00000000003526f0 Call Trace: xfrm_state_insert+0x54/0x60 net/xfrm/xfrm_state.c:1795 ipcomp6_tunnel_attach net/ipv6/ipcomp6.c:131 [inline] ipcomp6_init_state+0x655/0x900 net/ipv6/ipcomp6.c:163 __xfrm_init_state+0xa76/0x13f0 net/xfrm/xfrm_state.c:3188 xfrm_init_state+0x18/0xa0 net/xfrm/xfrm_state.c:3231 pfkey_msg2xfrm_state net/key/af_key.c:1286 [inline] pfkey_add+0x1d38/0x2e00 net/key/af_key.c:1504 pfkey_process net/key/af_key.c:2848 [inline] pfkey_sendmsg+0xbfe/0x1090 net/key/af_key.c:3699 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/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/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8538f8ebe9 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:00007f8539daf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f85391b5fa0 RCX: 00007f8538f8ebe9 RDX: 000000000400008a RSI: 0000200000000180 RDI: 0000000000000006 RBP: 00007f8539011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f85391b6038 R14: 00007f85391b5fa0 R15: 00007ffde74c60d8 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 fd 00 02 f8 4d 89 65 00 41 80 3c 1e 00 74 08 48 89 ef e8 fa ff 01 f8 4c 8b 75 00 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 d1 00 02 f8 4d 89 2e 41 80 3c 1f 00 RSP: 0018:ffffc9001e16f3a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff88807e47bc00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: ffff8880568e4030 R08: dffffc0000000000 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000000 R12: ffff8880568e4028 R13: ffff8880568e4028 R14: 0000000000000000 R15: 1ffff1100ad1c806 FS: 00007f8539daf6c0(0000) GS:ffff888125d1b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000007b372000 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 fd 00 02 f8 call 0xf8020109 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 fa ff 01 f8 call 0xf8020019 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 d1 00 02 f8 call 0xf8020109 38: 4d 89 2e mov %r13,(%r14) 3b: 41 80 3c 1f 00 cmpb $0x0,(%r15,%rbx,1)