syzbot


INFO: rcu detected stall in wg_ratelimiter_gc_entries

Status: auto-obsoleted due to no activity on 2023/08/18 11:48
Reported-by: syzbot+7636da3b13657ad69058@syzkaller.appspotmail.com
First crash: 602d, last: 602d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in wg_ratelimiter_gc_entries wireguard 1 579d 579d 0/28 auto-obsoleted due to no activity on 2023/08/11 08:26
linux-6.1 INFO: rcu detected stall in wg_ratelimiter_gc_entries (2) 1 132d 132d 0/3 auto-obsoleted due to no activity on 2024/11/10 07:30
upstream INFO: rcu detected stall in wg_ratelimiter_gc_entries (2) wireguard C done done 3 485d 483d 0/28 auto-obsoleted due to no activity on 2023/11/23 21:08
linux-5.15 INFO: rcu detected stall in wg_ratelimiter_gc_entries 1 138d 138d 0/3 auto-obsoleted due to no activity on 2024/11/04 15:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=64c4/1/0x4000000000000000 softirq=62872/62876 fqs=522
	(detected by 0, t=10502 jiffies, g=86373, q=82 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10473 Comm: kworker/1:5 Not tainted 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: events_power_efficient wg_ratelimiter_gc_entries
RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline]
RIP: 0010:lock_release+0xcf/0xa20 kernel/locking/lockdep.c:5680
Code: 0c 0f 86 c2 05 00 00 89 db 48 89 d8 48 c1 e8 06 48 8d 3c c5 28 6f 52 8e be 08 00 00 00 e8 69 f0 75 00 48 0f a3 1d 19 b3 e8 0c <73> 0d e8 da d4 08 00 84 c0 0f 84 c5 05 00 00 48 c7 c0 e4 a3 52 8e
RSP: 0018:ffffc900001e0b80 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8169bc07
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e526f28
RBP: ffffc900001e0cb0 R08: dffffc0000000000 R09: fffffbfff1ca4de6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200003c17c
R13: ffffffff88b05325 R14: dffffc0000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30125000 CR3: 00000000593df000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rcu_read_unlock include/linux/rcupdate.h:780 [inline]
 advance_sched+0x7d4/0x940 net/sched/sch_taprio.c:755
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:preempt_latency_start kernel/sched/core.c:5687 [inline]
RIP: 0010:preempt_count_add+0xa5/0x180 kernel/sched/core.c:5710
Code: ff ff 7f 39 d8 75 43 4c 8b 74 24 18 4c 89 f7 e8 31 23 0d 00 85 c0 74 0a 45 31 f6 31 ff e8 23 23 0d 00 65 48 8b 1d db b0 a4 7e <48> 81 c3 48 14 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48
RSP: 0018:ffffc90004bafbd8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88804b0b9d40 RCX: ffffffff8a87e000
RDX: 0000000000000000 RSI: ffff88804b0b9d40 RDI: 0000000000000000
RBP: ffffc90004bafde0 R08: dffffc0000000000 R09: fffffbfff1b1d239
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline]
 _raw_spin_lock+0xe/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 wg_ratelimiter_gc_entries+0x5c/0x470 drivers/net/wireguard/ratelimiter.c:63
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
 kthread+0x268/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: rcu_preempt kthread starved for 9458 jiffies! g86373 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:24440 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2c2/0x1010 kernel/rcu/tree.c:1660
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1859
 kthread+0x268/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:113 [inline]
RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572
Code: db 01 f7 48 83 e3 08 0f 85 0b 01 00 00 4c 8d 74 24 20 e8 e4 87 08 f7 0f 1f 44 00 00 e8 5a d7 01 f7 0f 00 2d f3 08 bf 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 9b 01 58 f7
RSP: 0018:ffffffff8cc07b40 EFLAGS: 000002d3
RAX: ffffffff8a87a9a6 RBX: 0000000000000000 RCX: ffffffff8ccbb800
RDX: 0000000000000000 RSI: ffffffff8aebc620 RDI: ffffffff8b3cb8a0
RBP: ffffffff8cc07bd0 R08: ffffffff8a87a988 R09: fffffbfff1997701
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1980f68
R13: ffff88801c584804 R14: ffffffff8cc07b60 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c004311000 CR3: 000000001c923000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:709
 cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x3ce/0x680 kernel/sched/idle.c:303
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:400
 rest_init+0x28f/0x2b0 init/main.c:729
 arch_call_rest_init+0xa/0xa init/main.c:890
 start_kernel+0x496/0x53f init/main.c:1145
 secondary_startup_64_no_verify+0xcf/0xdb
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/20 11:47 linux-6.1.y 0102425ac76b a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in wg_ratelimiter_gc_entries
* Struck through repros no longer work on HEAD.