syzbot


INFO: rcu detected stall in snd_timer_user_release

Status: auto-obsoleted due to no activity on 2024/01/24 03:14
Subsystems: sound
[Documentation on labels]
First crash: 410d, last: 410d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in snd_timer_user_release (3) sound C inconclusive 3 215d 224d 25/28 fixed on 2024/06/11 03:41
upstream INFO: rcu detected stall in snd_timer_user_release (2) sound C 7 232d 245d 25/28 fixed on 2024/04/22 10:23

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=312c/1/0x4000000000000000 softirq=280313/280314 fqs=2
rcu: 	(detected by 1, t=10504 jiffies, g=393661, q=306 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3476 Comm: syz-executor.5 Not tainted 6.6.0-rc7-syzkaller-00039-g4f82870119a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:check_preemption_disabled+0x3/0xe0 lib/smp_processor_id.c:13
Code: 04 85 c0 74 18 65 8b 05 9b ab c4 75 85 c0 75 0d 65 8b 05 ac a8 c4 75 85 c0 74 02 0f 0b e9 85 fc ff ff 0f 1f 44 00 00 41 54 55 <53> 48 83 ec 08 65 8b 1d 7d de c5 75 65 8b 05 72 de c5 75 a9 ff ff
RSP: 0018:ffffc90000007c48 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 49da982df18c1733 RCX: ffffc90000007cb0
RDX: 1ffff11015bbdc7f RSI: ffffffff8a8cafa0 RDI: ffffffff8ae93460
RBP: 1ffff92000000f8e R08: 0000000000000000 R09: fffffbfff1d98362
R10: ffffffff8ecc1b17 R11: ffff8880252818d0 R12: 0000000000000003
R13: 0000000000000004 R14: ffff8880addee400 R15: ffff8880added940
FS:  000055555638f480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fda416d784c CR3: 00000000b0dee000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline]
 lock_release+0x382/0x680 kernel/locking/lockdep.c:5775
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x1a/0x70 kernel/locking/spinlock.c:194
 debug_object_deactivate lib/debugobjects.c:805 [inline]
 debug_object_deactivate+0x28b/0x320 lib/debugobjects.c:771
 debug_hrtimer_deactivate kernel/time/hrtimer.c:427 [inline]
 debug_deactivate kernel/time/hrtimer.c:483 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1656 [inline]
 __hrtimer_run_queues+0x470/0xc10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline]
 __sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1080
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x70 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 86 13 27 f7 48 89 df e8 7e 92 27 f7 f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f <bf> 01 00 00 00 e8 55 f7 18 f7 65 8b 05 e6 39 c2 75 85 c0 74 12 5b
RSP: 0018:ffffc900034ffd00 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff888025281930 RCX: 1ffffffff233f22c
RDX: 0000000000000000 RSI: ffffffff8a8caca0 RDI: ffffffff8ae93460
RBP: 0000000000000293 R08: 0000000000000001 R09: fffffbfff23389df
R10: ffffffff919c4eff R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000020010 R14: 0000000000000000 R15: ffff8880a957f210
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 snd_timer_stop1+0x4ca/0x830 sound/core/timer.c:660
 snd_timer_stop sound/core/timer.c:710 [inline]
 snd_timer_close_locked+0x213/0xbb0 sound/core/timer.c:408
 snd_timer_close+0x8b/0xf0 sound/core/timer.c:463
 snd_timer_user_release+0x99/0x210 sound/core/timer.c:1524
 __fput+0x3f7/0xa70 fs/file_table.c:384
 __fput_sync+0x47/0x50 fs/file_table.c:465
 __do_sys_close fs/open.c:1572 [inline]
 __se_sys_close fs/open.c:1557 [inline]
 __x64_sys_close+0x87/0xf0 fs/open.c:1557
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fda4167b9da
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffc642c40b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fda4167b9da
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000032 R08: 0000001b2eb60000 R09: 00007fda4179c12c
R10: 00007ffc642c4200 R11: 0000000000000293 R12: 00007fda412019a0
R13: ffffffffffffffff R14: 00007fda41200000 R15: 00000000002e97f9
 </TASK>
rcu: rcu_preempt kthread starved for 10493 jiffies! g393661 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
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:28304 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0xee1/0x5a10 kernel/sched/core.c:6695
 schedule+0xe7/0x1b0 kernel/sched/core.c:6771
 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1613
 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1812
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 3514 Comm: kworker/u4:5 Not tainted 6.6.0-rc7-syzkaller-00039-g4f82870119a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:300 [inline]
RIP: 0010:smp_call_function_many_cond+0x4db/0x1570 kernel/smp.c:844
Code: 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 fc 4c 89 fd 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 ec 8a 0b 00 f3 90 41 0f b6 04 24 <40> 38 c5 7c 08 84 c0 0f 85 3c 0e 00 00 8b 43 08 31 ff 83 e0 01 41
RSP: 0018:ffffc900045b7920 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b98442a0 RCX: 0000000000000000
RDX: ffff88807ec10000 RSI: ffffffff817c4f44 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed1017308855
R13: 0000000000000001 R14: ffff8880b993d8c0 R15: ffff8880b98442a8
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae5137ad58 CR3: 000000000c976000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1012
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2006 [inline]
 text_poke_bp_batch+0x2ce/0x960 arch/x86/kernel/alternative.c:2216
 text_poke_flush arch/x86/kernel/alternative.c:2407 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2404 [inline]
 text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2414
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x32e/0x410 kernel/jump_label.c:829
 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate mm/kfence/core.c:830 [inline]
 toggle_allocation_gate+0xf4/0x250 mm/kfence/core.c:822
 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/26 03:07 upstream 4f82870119a4 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in snd_timer_user_release
* Struck through repros no longer work on HEAD.