syzbot


WARNING in xfrm_state_migrate

Status: upstream: reported on 2024/10/01 08:20
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+e6afe0936b6cb8fae996@syzkaller.appspotmail.com
First crash: 53d, last: 2d00h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] WARNING in xfrm_state_migrate 0 (1) 2024/10/01 08:20

Sample crash report:
: renamed from bond_slave_1 (while UP)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 10112 at net/xfrm/xfrm_state.c:725 __xfrm_state_destroy net/xfrm/xfrm_state.c:725 [inline]
WARNING: CPU: 0 PID: 10112 at net/xfrm/xfrm_state.c:725 xfrm_state_put include/net/xfrm.h:859 [inline]
WARNING: CPU: 0 PID: 10112 at net/xfrm/xfrm_state.c:725 xfrm_state_migrate+0x130e/0x1870 net/xfrm/xfrm_state.c:1899
Modules linked in:
CPU: 0 UID: 0 PID: 10112 Comm: syz.2.1100 Not tainted 6.12.0-rc7-syzkaller-00138-g4262bacb748f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:__xfrm_state_destroy net/xfrm/xfrm_state.c:725 [inline]
RIP: 0010:xfrm_state_put include/net/xfrm.h:859 [inline]
RIP: 0010:xfrm_state_migrate+0x130e/0x1870 net/xfrm/xfrm_state.c:1899
Code: e8 77 41 a2 f7 e9 c4 ef ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 1f ef ff ff e8 cd 40 a2 f7 e9 15 ef ff ff e8 93 64 38 f7 90 <0f> 0b 90 e9 cb fd ff ff e8 85 64 38 f7 e9 ad fe ff ff 89 f9 80 e1
RSP: 0018:ffffc900030fedb8 EFLAGS: 00010287
RAX: ffffffff8a5c857d RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc90004f23000 RSI: 00000000000002e1 RDI: 00000000000002e2
RBP: 0000000000000001 R08: ffffffff8a5c8343 R09: 1ffff1100ca8ca89
R10: dffffc0000000000 R11: ffffed100ca8ca8a R12: dffffc0000000000
R13: ffff888065465400 R14: ffffc900030ff236 R15: ffff88807ec79800
FS:  00007f0422bb76c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 0000000033038000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xfrm_migrate+0x102c/0x25e0 net/xfrm/xfrm_policy.c:4646
 xfrm_do_migrate+0x9c8/0xba0 net/xfrm/xfrm_user.c:2985
 xfrm_user_rcv_msg+0x75b/0xa80 net/xfrm/xfrm_user.c:3321
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2536
 xfrm_netlink_rcv+0x79/0x90 net/xfrm/xfrm_user.c:3343
 netlink_unicast_kernel net/netlink/af_netlink.c:1316 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1342
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1886
 sock_sendmsg_nosec net/socket.c:729 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:744
 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2607
 ___sys_sendmsg net/socket.c:2661 [inline]
 __sys_sendmsg+0x292/0x380 net/socket.c:2690
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0421d7e759
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:00007f0422bb7038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f0421f35f80 RCX: 00007f0421d7e759
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000008
RBP: 00007f0421df175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0421f35f80 R15: 00007fff6f096ab8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 06:40 net 4262bacb748f 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in xfrm_state_migrate
2024/09/28 19:51 net d505d3593b52 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in xfrm_state_migrate
* Struck through repros no longer work on HEAD.