syzbot


BUG: soft lockup in wg_packet_tx_worker

Status: auto-obsoleted due to no activity on 2024/02/16 07:09
Reported-by: syzbot+114328134b85bef39deb@syzkaller.appspotmail.com
First crash: 272d, last: 250d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in wg_packet_tx_worker kvm 1 1541d 1541d 15/27 fixed on 2020/07/17 17:58
android-5-10 BUG: soft lockup in wg_packet_tx_worker 5 335d 385d 0/2 auto-obsoleted due to no activity on 2023/11/22 23:32
android-5-15 BUG: soft lockup in wg_packet_tx_worker 1 344d 344d 0/2 auto-obsoleted due to no activity on 2023/11/14 01:23
upstream INFO: rcu detected stall in wg_packet_tx_worker (3) net C inconclusive 5 1074d 1056d 20/27 fixed on 2021/11/10 00:50
android-5-15 BUG: soft lockup in wg_packet_tx_worker (2) 1 100d 100d 0/2 auto-obsoleted due to no activity on 2024/07/15 09:44
linux-5.15 INFO: rcu detected stall in wg_packet_tx_worker 1 49d 49d 0/3 upstream: reported on 2024/06/06 07:48
upstream INFO: rcu detected stall in wg_packet_tx_worker (4) net 1 972d 972d 0/27 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [kworker/1:3:14060]
Modules linked in:
CPU: 1 PID: 14060 Comm: kworker/1:3 Not tainted 6.1.43-syzkaller-00019-g1b639e97b8fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
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:1066
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 18 11 04 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:ffffc9000d1c7180 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff92001a38e34 RCX: 1ffffffff0d9bc9d
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7137fd4
RBP: ffffc9000d1c7230 R08: dffffc0000000000 R09: ffffed103ee26ffb
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7137fd4 R14: 0000000000000001 R15: 1ffff92001a38e38
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0517156d58 CR3: 000000015db15000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline]
 __pv_queued_spin_lock_slowpath+0x362/0xda0 kernel/locking/qspinlock.c:476
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:186 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 __dev_xmit_skb net/core/dev.c:3861 [inline]
 __dev_queue_xmit+0xd76/0x3700 net/core/dev.c:4234
 dev_queue_xmit include/linux/netdevice.h:3076 [inline]
 neigh_hh_output include/net/neighbour.h:536 [inline]
 neigh_output include/net/neighbour.h:550 [inline]
 ip6_finish_output2+0x1012/0x1820 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline]
 ip6_finish_output+0x5d9/0xb60 net/ipv6/ip6_output.c:206
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4d0 net/ipv6/ip6_output.c:227
 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:161 [inline]
 udp_tunnel6_xmit_skb+0x506/0x9a0 net/ipv6/ip6_udp_tunnel.c:109
 send6+0x574/0x840 drivers/net/wireguard/socket.c:152
 wg_socket_send_skb_to_peer+0x116/0x1d0 drivers/net/wireguard/socket.c:178
 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline]
 wg_packet_tx_worker+0x1df/0x500 drivers/net/wireguard/send.c:276
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 25194 Comm: syz-executor.0 Not tainted 6.1.43-syzkaller-00019-g1b639e97b8fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/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:1066
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 18 11 04 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:ffffc9000e1aebe0 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92001c35d80 RCX: ffffffff84fbfc6c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888120e030ac
RBP: ffffc9000e1aec90 R08: dffffc0000000000 R09: ffffed10241c0616
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888120e030ac R14: 0000000000000003 R15: 1ffff92001c35d84
FS:  00007f4d7440a6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002b00 CR3: 0000000114e33000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6de/0xda0 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:186 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:355 [inline]
 get_dist_table+0x215/0x2e0 net/sched/sch_netem.c:798
 netem_change+0x9ec/0x20b0 net/sched/sch_netem.c:985
 netem_init+0x5b/0xb0 net/sched/sch_netem.c:1072
 qdisc_create+0x889/0x1160 net/sched/sch_api.c:1314
 tc_modify_qdisc+0x8d0/0x19c0
 rtnetlink_rcv_msg+0x9a5/0xca0 net/core/rtnetlink.c:6103
 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2525
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6121
 netlink_unicast_kernel net/netlink/af_netlink.c:1328 [inline]
 netlink_unicast+0x8ee/0xad0 net/netlink/af_netlink.c:1354
 netlink_sendmsg+0xa15/0xd30 net/netlink/af_netlink.c:1903
 sock_sendmsg_nosec net/socket.c:716 [inline]
 sock_sendmsg net/socket.c:736 [inline]
 ____sys_sendmsg+0x5dc/0x9d0 net/socket.c:2482
 ___sys_sendmsg net/socket.c:2536 [inline]
 __sys_sendmsg+0x2a9/0x390 net/socket.c:2565
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2572
 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+0x63/0xcd
RIP: 0033:0x7f4d7367cae9
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:00007f4d7440a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f4d7379bf80 RCX: 00007f4d7367cae9
RDX: 0000000000000000 RSI: 00000000200012c0 RDI: 0000000000000003
RBP: 00007f4d736c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f4d7379bf80 R15: 00007fff7156ea18
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/18 07:07 android14-6.1 1b639e97b8fc cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in wg_packet_tx_worker
2023/11/13 07:55 android14-6.1 48c6c901fe0e 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in wg_packet_tx_worker
2023/10/27 00:50 android14-6.1 35361bdac25a bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in wg_packet_tx_worker
* Struck through repros no longer work on HEAD.