syzbot


BUG: soft lockup in wg_packet_handshake_send_worker

Status: auto-obsoleted due to no activity on 2023/10/18 09:06
Reported-by: syzbot+abf759c94f777b4b5965@syzkaller.appspotmail.com
First crash: 498d, last: 492d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: soft lockup in wg_packet_handshake_send_worker 1 7d02h 7d02h 0/3 upstream: reported on 2024/11/16 07:32
android-5-10 BUG: soft lockup in wg_packet_handshake_send_worker 6 464d 504d 0/2 auto-obsoleted due to no activity on 2023/11/15 02:30
upstream INFO: rcu detected stall in wg_packet_handshake_send_worker (4) wireguard 1 494d 494d 0/28 auto-obsoleted due to no activity on 2023/10/15 22:40
linux-5.15 INFO: rcu detected stall in wg_packet_handshake_send_worker 1 229d 229d 0/3 auto-obsoleted due to no activity on 2024/07/16 21:11
upstream INFO: rcu detected stall in wg_packet_handshake_send_worker (5) wireguard 1 357d 357d 0/28 auto-obsoleted due to no activity on 2024/02/29 10:43
upstream INFO: rcu detected stall in wg_packet_handshake_send_worker (3) kernel 1 703d 703d 0/28 auto-obsoleted due to no activity on 2023/04/12 00:54
linux-6.1 INFO: rcu detected stall in wg_packet_handshake_send_worker 1 175d 175d 0/3 auto-obsoleted due to no activity on 2024/09/09 01:47

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 144s! [kworker/u4:1:12109]
Modules linked in:
CPU: 1 PID: 12109 Comm: kworker/u4:1 Tainted: G        W         5.15.119-syzkaller-android13-5.15.119_r00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker
RIP: 0010:pv_wait_node kernel/locking/qspinlock_paravirt.h:301 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x38b/0xc40 kernel/locking/qspinlock.c:473
Code: 00 00 00 00 00 fc ff df 41 0f b6 04 16 84 c0 0f 85 ac 00 00 00 48 8b 44 24 08 83 38 00 0f 85 15 01 00 00 45 84 e4 74 09 f3 90 <41> ff cc 75 d9 eb 1b 48 8b 44 24 20 0f b6 04 10 84 c0 0f 85 cd 00
RSP: 0018:ffffc9000691f0a0 EFLAGS: 00000206
RAX: ffff8881f7137e88 RBX: ffff8881f7137e94 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881f7137e94
RBP: ffffc9000691f190 R08: dffffc0000000000 R09: ffffed103ee26fd3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000006f18
R13: 1ffff11027225b15 R14: 1ffff1103ee26fd1 R15: ffff88813912d8ac
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30121000 CR3: 0000000153577000 CR4: 00000000003506a0
DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 __dev_xmit_skb net/core/dev.c:3855 [inline]
 __dev_queue_xmit+0xb7b/0x2e70 net/core/dev.c:4197
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4265
 neigh_hh_output include/net/neighbour.h:501 [inline]
 neigh_output include/net/neighbour.h:515 [inline]
 ip6_finish_output2+0xf5e/0x16e0 net/ipv6/ip6_output.c:126
 __ip6_finish_output+0x678/0x850 net/ipv6/ip6_output.c:191
 ip6_finish_output+0x31/0x210 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4d0 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:444 [inline]
 ip6_local_out+0x1ff/0x480 net/ipv6/output_core.c:161
 ip6tunnel_xmit include/net/ip6_tunnel.h:160 [inline]
 udp_tunnel6_xmit_skb+0x452/0x840 net/ipv6/ip6_udp_tunnel.c:109
 send6+0x575/0x850 drivers/net/wireguard/socket.c:152
 wg_socket_send_skb_to_peer+0x116/0x1d0 drivers/net/wireguard/socket.c:178
 wg_socket_send_buffer_to_peer+0x11a/0x170 drivers/net/wireguard/socket.c:200
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0x1d4/0x240 drivers/net/wireguard/send.c:51
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2314
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2461
 kthread+0x421/0x510 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 10279 Comm: syz-executor.2 Tainted: G        W         5.15.119-syzkaller-android13-5.15.119_r00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d ab ff f2 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc900048d6b00 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff9200091ad64 RCX: ffffffff8154cacf
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88813912d8ac
RBP: ffffc900048d6bb0 R08: dffffc0000000000 R09: ffffed1027225b16
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88813912d8ac R14: 0000000000000003 R15: 1ffff9200091ad68
FS:  00007f8ccaeab6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 000000016ca2f000 CR4: 00000000003506b0
DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 get_dist_table+0x207/0x2e0 net/sched/sch_netem.c:798
 netem_change+0xa6a/0x20c0 net/sched/sch_netem.c:995
 netem_init+0x5b/0xb0 net/sched/sch_netem.c:1075
 qdisc_create+0x890/0x12e0 net/sched/sch_api.c:1264
 tc_modify_qdisc+0x8b4/0x14b0
 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5593
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5611
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1923
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
 __sys_sendmsg net/socket.c:2495 [inline]
 __do_sys_sendmsg net/socket.c:2504 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2502
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f8ccc128b29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ccaeab0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f8ccc247f80 RCX: 00007f8ccc128b29
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007f8ccc17447a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8ccc247f80 R15: 00007ffc56dd22e8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/20 09:03 android13-5.15-lts 879959450ec7 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in wg_packet_handshake_send_worker
2023/07/13 23:17 android13-5.15-lts 879959450ec7 55eda22f .config console log report info ci2-android-5-15 BUG: soft lockup in wg_packet_handshake_send_worker
* Struck through repros no longer work on HEAD.