syzbot


INFO: rcu detected stall in eventpoll_release_file

Status: auto-obsoleted due to no activity on 2025/02/27 22:07
Subsystems: fs
[Documentation on labels]
First crash: 315d, last: 315d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in eventpoll_release_file (2) fs 1 C error 1 5d19h 1d19h 0/29 upstream: reported C repro on 2025/10/09 10:32

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=e6e4/1/0x4000000000000000 softirq=13886/13887 fqs=2
rcu: 	(detected by 0, t=10502 jiffies, g=11741, q=1722 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5860 Comm: udevd Not tainted 6.12.0-syzkaller-10681-g65ae975e97d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:188
Code: 8e e8 8f 94 e1 ff 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 <41> 57 41 56 41 54 53 b0 01 48 85 f6 0f 84 a0 01 00 00 4c 8d 04 37
RSP: 0018:ffffc90000a188e0 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81712d54
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff94323880
RBP: ffff888060b7c730 R08: ffffffff94323887 R09: 1ffffffff2864710
R10: dffffc0000000000 R11: fffffbfff2864711 R12: ffff888060b7c6c4
R13: ffff888060b7bc00 R14: 0000000000000000 R15: ffff888060b7c750
FS:  00007f63c02ebc80(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555571d68808 CR3: 0000000061b04000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 __lock_acquire+0xc94/0x2100 kernel/locking/lockdep.c:5196
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162
 debug_object_activate+0x17f/0x580 lib/debugobjects.c:818
 debug_hrtimer_activate kernel/time/hrtimer.c:428 [inline]
 debug_activate kernel/time/hrtimer.c:469 [inline]
 enqueue_hrtimer+0x30/0x3c0 kernel/time/hrtimer.c:1076
 __run_hrtimer kernel/time/hrtimer.c:1756 [inline]
 __hrtimer_run_queues+0x6cb/0xd50 kernel/time/hrtimer.c:1803
 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:percpu_counter_add_batch+0x43/0x1f0 lib/percpu_counter.c:98
Code: 89 fd 49 bf 00 00 00 00 00 fc ff df e8 36 9e 9e fc 48 89 6c 24 10 4c 8d 65 58 4c 89 e0 48 c1 e8 03 48 89 04 24 42 80 3c 38 00 <74> 08 4c 89 e7 e8 23 85 09 fd 49 8b 04 24 65 8b 28 41 89 ef 41 c1
RSP: 0018:ffffc90003eefd68 EFLAGS: 00000246
RAX: 1ffffffff1cfc590 RBX: ffffffffffffffff RCX: ffff888060b7bc00
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffffffff8e7e2c28
RBP: ffffffff8e7e2c28 R08: ffffffff94323947 R09: 1ffffffff2864728
R10: dffffc0000000000 R11: fffffbfff2864729 R12: ffffffff8e7e2c80
R13: ffff8880250a4c00 R14: 0000000000000020 R15: dffffc0000000000
 percpu_counter_add include/linux/percpu_counter.h:71 [inline]
 percpu_counter_dec include/linux/percpu_counter.h:272 [inline]
 __ep_remove+0x562/0x780 fs/eventpoll.c:885
 eventpoll_release_file+0xe3/0x280 fs/eventpoll.c:1137
 eventpoll_release include/linux/eventpoll.h:53 [inline]
 __fput+0x819/0xa50 fs/file_table.c:441
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close fs/open.c:1539 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1539
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f63bff170a8
Code: 48 8b 05 83 9d 0d 00 64 c7 00 16 00 00 00 83 c8 ff 48 83 c4 20 5b c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 5b 48 8b 15 51 9d 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc097351f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00007f63c02ebae0 RCX: 00007f63bff170a8
RDX: 0000000000000080 RSI: 00007ffc09735328 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000007 R09: 531f8d28e8dcd67d
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc09735278 R14: 0000000000000001 R15: 0000556b592c3910
 </TASK>
rcu: rcu_preempt kthread starved for 10481 jiffies! g11741 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:25976 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0x1850/0x4c30 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6848
 schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 UID: 0 PID: 35 Comm: kworker/u8:2 Not tainted 6.12.0-syzkaller-10681-g65ae975e97d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x19f3/0x2ca0 kernel/smp.c:884
Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 36 ea 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 e1 e5 0b 00 eb 38 f3 90 <42> 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 c5 e5
RSP: 0000:ffffc90000ab76e0 EFLAGS: 00000293
RAX: ffffffff8189febb RBX: 1ffff110170e88c1 RCX: ffff8880202e9e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000ab78e0 R08: ffffffff8189fe8a R09: 1ffffffff2864710
R10: dffffc0000000000 R11: fffffbfff2864711 R12: dffffc0000000000
R13: ffff8880b8744608 R14: ffff8880b863f980 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f581ed710be CR3: 000000000e738000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1051
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2114 [inline]
 text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2324
 text_poke_flush arch/x86/kernel/alternative.c:2515 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2522
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:210
 static_key_enable+0x1a/0x20 kernel/jump_label.c:223
 toggle_allocation_gate+0xbc/0x260 mm/kfence/core.c:849
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/29 21:57 net-next 65ae975e97d5 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in eventpoll_release_file
* Struck through repros no longer work on HEAD.