------------[ cut here ]------------
WARNING: CPU: 2 PID: 8241 at net/xfrm/xfrm_state.c:727 __xfrm_state_destroy+0x178/0x1c0 net/xfrm/xfrm_state.c:727
Modules linked in:
CPU: 2 UID: 0 PID: 8241 Comm: syz.3.651 Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__xfrm_state_destroy+0x178/0x1c0 net/xfrm/xfrm_state.c:727
Code: 48 48 8b 35 4a 5f dc 03 48 c7 c2 e0 f8 09 90 bf 08 00 00 00 e8 39 0b 98 f7 5b 5d 41 5c 41 5d e9 fe fe ce f7 e8 f9 fe ce f7 90 <0f> 0b 90 e9 dc fe ff ff e8 3b ab 31 f8 e9 b3 fe ff ff 4c 89 e7 e8
RSP: 0018:ffffc9000752ef58 EFLAGS: 00010287
RAX: 00000000000005bd RBX: ffff888029cd8440 RCX: ffffc90007602000
RDX: 0000000000080000 RSI: ffffffff89cb25a7 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000005
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff888029cd84f4 R15: ffff888029cd8440
FS: 00007fb8552256c0(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000096 CR3: 000000004e246000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
xfrm_state_put include/net/xfrm.h:866 [inline]
xfrm_state_put include/net/xfrm.h:863 [inline]
xfrm_state_migrate+0x43e/0x1d70 net/xfrm/xfrm_state.c:2038
xfrm_migrate+0x763/0x1820 net/xfrm/xfrm_policy.c:4658
xfrm_do_migrate+0xc0c/0xf10 net/xfrm/xfrm_user.c:3022
xfrm_user_rcv_msg+0x585/0xbf0 net/xfrm/xfrm_user.c:3373
netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2542
xfrm_netlink_rcv+0x71/0x90 net/xfrm/xfrm_user.c:3395
netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline]
netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1347
netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1891
sock_sendmsg_nosec net/socket.c:711 [inline]
__sock_sendmsg net/socket.c:726 [inline]
____sys_sendmsg+0xaaf/0xc90 net/socket.c:2583
___sys_sendmsg+0x135/0x1e0 net/socket.c:2637
__sys_sendmsg+0x16e/0x220 net/socket.c:2669
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb854385d29
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:00007fb855225038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb854575fa0 RCX: 00007fb854385d29
RDX: 0000000020000000 RSI: 00000000200004c0 RDI: 0000000000000005
RBP: 00007fb854401b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb854575fa0 R15: 00007ffe34dcdec8
</TASK>