syzbot


INFO: rcu detected stall in wg_expired_send_keepalive

Status: upstream: reported on 2025/08/24 22:47
Reported-by: syzbot+9feae06b3fce2817434c@syzkaller.appspotmail.com
First crash: 4d14h, last: 4d14h
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in wg_expired_send_keepalive kvm 1 1 1221d 1221d 0/29 auto-closed as invalid on 2022/06/24 21:49
android-54 BUG: soft lockup in wg_expired_send_keepalive 1 1 436d 436d 0/2 auto-obsoleted due to no activity on 2024/09/16 17:51

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (1 GPs behind) idle=bd1/1/0x4000000000000000 softirq=30889/30890 fqs=1253 
	(t=10500 jiffies g=44173 q=1652)
NMI backtrace for cpu 0
CPU: 0 PID: 10579 Comm: syz.7.1477 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <IRQ>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x22f/0x380 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x31d/0x5f0 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3936 [inline]
 rcu_sched_clock_irq+0x6d8/0x1110 kernel/rcu/tree.c:2619
 update_process_times+0x193/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x37d/0x560 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1690 [inline]
 __hrtimer_run_queues+0x4fe/0xc40 kernel/time/hrtimer.c:1754
 hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1816
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x4d/0xc0 arch/x86/kernel/apic/apic.c:1108
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x132/0x1b0 kernel/softirq.c:408
Code: 8a e8 02 cd 5f 08 65 66 8b 05 1a 27 bb 7e 66 85 c0 75 54 bf 01 00 00 00 e8 6b fe 08 00 e8 76 70 35 00 fb 65 8b 05 06 fe b9 7e <85> c0 75 05 e8 b5 08 b8 ff 48 c7 04 24 0e 36 e0 45 4b c7 04 37 00
RSP: 0018:ffffc90000007920 EFLAGS: 00000282
RAX: 0000000000000301 RBX: 0000000000000201 RCX: 5ea4c0d92da94c00
RDX: dffffc0000000000 RSI: ffffffff8a0b15c0 RDI: ffffffff8a599340
RBP: ffffc900000079b0 R08: dffffc0000000000 R09: fffffbfff1ff6e3f
R10: fffffbfff1ff6e3f R11: 1ffffffff1ff6e3e R12: ffffffff8527c41c
R13: ffff88806432e500 R14: dffffc0000000000 R15: 1ffff92000000f24
 spin_unlock_bh include/linux/spinlock.h:408 [inline]
 ptr_ring_produce_bh include/linux/ptr_ring.h:164 [inline]
 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline]
 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline]
 wg_packet_send_staged_packets+0xf1c/0x1650 drivers/net/wireguard/send.c:388
 wg_expired_send_keepalive+0x2a/0xd0 drivers/net/wireguard/timers.c:83
 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x525/0x7c0 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 handle_softirqs+0x328/0x820 kernel/softirq.c:576
 __do_softirq kernel/softirq.c:610 [inline]
 invoke_softirq kernel/softirq.c:450 [inline]
 __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:generic_exec_single+0x360/0x450 kernel/smp.c:532
Code: df eb 27 e8 d2 52 0b 00 0f 0b e9 ce fd ff ff e8 c6 52 0b 00 e8 21 bc 3b 08 48 85 db 0f 84 5c ff ff ff e8 b3 52 0b 00 fb 31 c0 <48> c7 44 24 20 0e 36 e0 45 4b c7 44 3d 00 00 00 00 00 66 43 c7 44
RSP: 0018:ffffc9000342fa60 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000200 RCX: ffff8880221b9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000342fb30 R08: dffffc0000000000 R09: fffffbfff1ff6e3a
R10: fffffbfff1ff6e3a R11: 1ffffffff1ff6e39 R12: ffffc9000342fb88
R13: 1ffff92000685f50 R14: 0000000000000000 R15: dffffc0000000000
 smp_call_function_single+0x1e2/0x490 kernel/smp.c:755
 task_function_call kernel/events/core.c:120 [inline]
 perf_install_in_context+0x59a/0x8f0 kernel/events/core.c:3016
 __do_sys_perf_event_open kernel/events/core.c:12779 [inline]
 __se_sys_perf_event_open+0x1283/0x1b80 kernel/events/core.c:12373
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f567b382be9
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:00007f56795ea038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f567b5a9fa0 RCX: 00007f567b382be9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 00002000000003c0
RBP: 00007f567b405e19 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f567b5aa038 R14: 00007f567b5a9fa0 R15: 00007fff36e2f198
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/24 22:46 linux-5.15.y c79648372d02 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in wg_expired_send_keepalive
* Struck through repros no longer work on HEAD.