syzbot


BUG: soft lockup in wg_packet_tx_worker

Status: upstream: reported on 2024/11/29 19:21
Reported-by: syzbot+4e34fd450cb85d672f0f@syzkaller.appspotmail.com
First crash: 48d, last: 19d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in wg_packet_tx_worker kvm 1 1716d 1716d 15/28 fixed on 2020/07/17 17:58
linux-5.15 BUG: soft lockup in wg_packet_tx_worker origin:lts-only C error 1 61d 61d 0/3 upstream: reported C repro on 2024/11/16 16:23
android-5-10 BUG: soft lockup in wg_packet_tx_worker 5 511d 560d 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 425d 448d 0/2 auto-obsoleted due to no activity on 2024/02/16 07:09
android-5-15 BUG: soft lockup in wg_packet_tx_worker 1 520d 520d 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 1249d 1232d 20/28 fixed on 2021/11/10 00:50
android-5-15 BUG: soft lockup in wg_packet_tx_worker (2) 1 275d 275d 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 224d 224d 0/3 auto-obsoleted due to no activity on 2024/09/14 07:48
upstream INFO: rcu detected stall in wg_packet_tx_worker (4) net 1 1148d 1148d 0/28 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [kworker/1:7:4793]
Modules linked in:
irq event stamp: 21579625
hardirqs last  enabled at (21579624): [<ffff80000b7dc750>] get_random_u16+0x34c/0x658 drivers/char/random.c:512
hardirqs last disabled at (21579625): [<ffff80001232cb44>] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline]
hardirqs last disabled at (21579625): [<ffff80001232cb44>] el1_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:486
softirqs last  enabled at (24542): [<ffff80000cb7af94>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (24546): [<ffff80000cb8642c>] wg_socket_send_skb_to_peer+0x64/0x1a8 drivers/net/wireguard/socket.c:173
CPU: 1 PID: 4793 Comm: kworker/1:7 Tainted: G        W          6.1.122-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : get_random_u16+0x36c/0x658
lr : get_random_u16+0x368/0x658 drivers/char/random.c:512
sp : ffff8000219d6e00
x29: ffff8000219d6f40 x28: 0000000000000000 x27: 0000000000000006
x26: dfff800000000000 x25: ffff70000433adc4 x24: 1ffff0000433ade0
x23: 0000000000003bfb x22: 0000000000000006 x21: 0000000000000001
x20: 0000000000000080 x19: ffff8000159f3620 x18: dfff800000000000
x17: 0000000098c3cf77 x16: ffff800008301588 x15: 00000000fbf17139
x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000b7dc76c
x8 : ffff0000dacf5340 x7 : ffff80000b7dc0d4 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000002 x1 : 0000000000000080 x0 : 0000000000000000
Call trace:
 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline]
 get_random_u16+0x36c/0x658 drivers/char/random.c:512
 cake_dequeue+0x2184/0x3ad0 net/sched/sch_cake.c:2102
 dequeue_skb net/sched/sch_generic.c:292 [inline]
 qdisc_restart net/sched/sch_generic.c:397 [inline]
 __qdisc_run+0x204/0x239c net/sched/sch_generic.c:415
 __dev_xmit_skb net/core/dev.c:3925 [inline]
 __dev_queue_xmit+0xcac/0x34d0 net/core/dev.c:4267
 dev_queue_xmit include/linux/netdevice.h:3043 [inline]
 neigh_hh_output include/net/neighbour.h:528 [inline]
 neigh_output include/net/neighbour.h:542 [inline]
 ip6_finish_output2+0xd84/0x1b54 net/ipv6/ip6_output.c:138
 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline]
 ip6_finish_output+0x5a4/0x940 net/ipv6/ip6_output.c:216
 NF_HOOK_COND include/linux/netfilter.h:291 [inline]
 ip6_output+0x274/0x594 net/ipv6/ip6_output.c:237
 dst_output include/net/dst.h:444 [inline]
 ip6_local_out+0x120/0x160 net/ipv6/output_core.c:161
 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline]
 udp_tunnel6_xmit_skb+0x470/0x97c net/ipv6/ip6_udp_tunnel.c:109
 send6+0x560/0x930 drivers/net/wireguard/socket.c:152
 wg_socket_send_skb_to_peer+0xfc/0x1a8 drivers/net/wireguard/socket.c:178
 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline]
 wg_packet_tx_worker+0x1a8/0x718 drivers/net/wireguard/send.c:276
 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292
 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439
 kthread+0x250/0x2d8 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/28 20:47 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: soft lockup in wg_packet_tx_worker
2024/11/29 19:20 linux-6.1.y e4d90d63d385 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: soft lockup in wg_packet_tx_worker
* Struck through repros no longer work on HEAD.