syzbot


BUG: soft lockup in wg_packet_tx_worker

Status: auto-obsoleted due to no activity on 2023/11/14 01:23
Reported-by: syzbot+ead9ef7e0febb98959e1@syzkaller.appspotmail.com
First crash: 259d, last: 259d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in wg_packet_tx_worker kvm 1 1455d 1455d 15/26 fixed on 2020/07/17 17:58
android-5-10 BUG: soft lockup in wg_packet_tx_worker 5 250d 299d 0/2 auto-obsoleted due to no activity on 2023/11/22 23:32
android-6-1 BUG: soft lockup in wg_packet_tx_worker 3 165d 187d 0/2 auto-obsoleted due to no activity on 2024/02/16 07:09
upstream INFO: rcu detected stall in wg_packet_tx_worker (3) net C inconclusive 5 989d 971d 20/26 fixed on 2021/11/10 00:50
android-5-15 BUG: soft lockup in wg_packet_tx_worker (2) 1 15d 15d 0/2 premoderation: reported on 2024/04/16 09:36
upstream INFO: rcu detected stall in wg_packet_tx_worker (4) net 1 887d 887d 0/26 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 143s! [kworker/1:0:26]
Modules linked in:
CPU: 1 PID: 26 Comm: kworker/1:0 Not tainted 5.15.122-syzkaller-00676-g1463976ddc64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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: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 6b 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:ffffc900001b7140 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff92000036e2c RCX: 1ffffffff0d1a98c
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7137ed4
RBP: ffffc900001b71f0 R08: dffffc0000000000 R09: ffffed103ee26fdb
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7137ed4 R14: 0000000000000001 R15: 1ffff92000036e30
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e728000 CR3: 0000000128f88000 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:597 [inline]
 pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline]
 __pv_queued_spin_lock_slowpath+0x41b/0xc40 kernel/locking/qspinlock.c:473
 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_packet_create_data_done drivers/net/wireguard/send.c:251 [inline]
 wg_packet_tx_worker+0x1e6/0x530 drivers/net/wireguard/send.c:276
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
 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: 16807 Comm: syz-executor.1 Not tainted 5.15.122-syzkaller-00676-g1463976ddc64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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 6b 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:ffffc9000721eb00 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000e43d64 RCX: ffffffff8154ce3f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888115b8e8ac
RBP: ffffc9000721ebb0 R08: dffffc0000000000 R09: ffffed1022b71d16
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888115b8e8ac R14: 0000000000000003 R15: 1ffff92000e43d68
FS:  00007fa91f20b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002b00 CR3: 000000012b5d0000 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: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+0xa05/0x20c0 net/sched/sch_netem.c:988
 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:5599
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5617
 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:1924
 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:0x7fa920488ae9
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:00007fa91f20b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa9205a7f80 RCX: 00007fa920488ae9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fa9204d447a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fa9205a7f80 R15: 00007ffd892854b8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/16 01:16 android13-5.15-lts 1463976ddc64 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in wg_packet_tx_worker
* Struck through repros no longer work on HEAD.