syzbot


INFO: rcu detected stall in toggle_allocation_gate

Status: upstream: reported on 2025/02/08 05:35
Reported-by: syzbot+61d4ddb124735ec3ef0c@syzkaller.appspotmail.com
First crash: 31d, last: 31d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in toggle_allocation_gate kernel C error done 1 573d 572d 0/28 auto-obsoleted due to no activity on 2023/11/25 01:47
android-5-15 BUG: soft lockup in toggle_allocation_gate 4 206d 338d 0/2 auto-obsoleted due to no activity on 2024/11/15 17:25

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 1-...D } 2688 jiffies s: 43525 root: 0x2/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5948 Comm: kworker/u4:24 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:__lock_acquire+0x11d8/0x1f80 kernel/locking/lockdep.c:5046
Code: 08 8b 18 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 60 02 25 91 be 08 00 00 00 e8 30 77 77 00 48 0f a3 1d 68 48 ba 0f <73> 1b 48 8d 04 5b 48 c1 e0 06 48 8d 98 20 81 bd 90 48 ba 00 00 00
RSP: 0018:ffffc900001e0a80 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 000000000000002c RCX: ffffffff816ab9f0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff91250260
RBP: da2e616334457c0f R08: dffffc0000000000 R09: fffffbfff224a04d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880795f4658
R13: ffff8880795f3b80 R14: 0000000000000001 R15: 1ffff1100f2be8ee
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f245fcb6f98 CR3: 000000000d08e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 advance_sched+0x6ec/0x970 net/sched/sch_taprio.c:753
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1815
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline]
 __sysvec_apic_timer_interrupt+0x158/0x5b0 arch/x86/kernel/apic/apic.c:1124
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__text_poke+0x7f9/0x9a0 arch/x86/kernel/alternative.c:1216
Code: 4c 89 f7 e8 19 5a b0 00 f6 84 24 21 01 00 00 02 0f 85 9b 00 00 00 41 f7 c7 00 02 00 00 48 8b 5c 24 48 74 01 fb 48 8b 44 24 70 <42> 80 3c 20 00 74 0d 48 8d bc 24 60 01 00 00 e8 e3 59 b0 00 48 8b
RSP: 0018:ffffc900053477e0 EFLAGS: 00000206
RAX: 1ffff92000a68f28 RBX: ffffffff81e1490a RCX: ffffffff816b127a
RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: ffffffff8b5e6980
RBP: ffffc900053479b0 R08: dffffc0000000000 R09: fffffbfff224a04d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000a68f0c R14: ffffc90005347900 R15: 0000000000000246
 text_poke arch/x86/kernel/alternative.c:1240 [inline]
 text_poke_bp_batch+0x153/0x940 arch/x86/kernel/alternative.c:1531
 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1732
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xce/0x1b0 kernel/jump_label.c:237
 static_key_disable+0x16/0x20 kernel/jump_label.c:245
 toggle_allocation_gate+0x3e0/0x480 mm/kfence/core.c:818
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/08 05:35 linux-6.1.y 0cbb5f65e52f ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in toggle_allocation_gate
* Struck through repros no longer work on HEAD.