syzbot


INFO: rcu detected stall in snd_rawmidi_write (5)

Status: auto-obsoleted due to no activity on 2025/04/29 04:59
Subsystems: sound
[Documentation on labels]
First crash: 247d, last: 206d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in snd_rawmidi_write (4) sound 1 1 717d 717d 0/29 auto-obsoleted due to no activity on 2023/12/05 12:57
upstream INFO: rcu detected stall in snd_rawmidi_write mm 1 1 2090d 2090d 0/29 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in snd_rawmidi_write (3) block 1 1 926d 926d 0/29 auto-obsoleted due to no activity on 2023/04/20 22:18
upstream INFO: rcu detected stall in snd_rawmidi_write (2) sound 1 2 1101d 1188d 0/29 auto-obsoleted due to no activity on 2022/11/16 04:30

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=5d24/1/0x4000000000000000 softirq=84516/84519 fqs=2100
rcu: 	         hardirqs   softirqs   csw/system
rcu: 	 number:        0          0            0
rcu: 	cputime:        0          0            0   ==> 52500(ms)
rcu: 	(detected by 0, t=10505 jiffies, g=86585, q=199 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 19540 Comm: syz.0.3815 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:task_wait_context kernel/locking/lockdep.c:5089 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4873 [inline]
RIP: 0010:__lock_acquire+0x1310/0x3c40 kernel/locking/lockdep.c:5178
Code: 84 5b f6 ff ff ba 04 00 00 00 4c 89 fe 4c 89 ef e8 75 db ff ff 85 c0 0f 85 43 f6 ff ff 31 d2 e9 77 fb ff ff 41 be 03 00 00 00 <e9> ce f2 ff ff c7 84 24 38 01 00 00 01 00 00 00 bb 01 00 00 00 e9
RSP: 0018:ffffc90000a18b38 EFLAGS: 00000002
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 1ffff1100d8fa5e3 RDI: ffff88806c7d2f18
RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff2dd73d4
R10: ffffffff96eb9ea7 R11: 0000000000000001 R12: 0000000000000002
R13: ffff88806c7d2440 R14: 0000000000000003 R15: ffff88806c7d2f30
FS:  00007f397790f6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000201a3000 CR3: 0000000087d56000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 advance_sched+0xd8/0xc60 net/sched/sch_taprio.c:924
 __run_hrtimer kernel/time/hrtimer.c:1738 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1802
 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1864
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x9f/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:queue_work_on+0x98/0x140 kernel/workqueue.c:2395
Code: e8 5d cc 36 00 48 85 ed 75 44 e8 23 d1 36 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 41 cc 36 00 48 85 db 0f 85 8d 00 00 00 <e8> 03 d1 36 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc e8
RSP: 0018:ffffc90003397af8 EFLAGS: 00000283
RAX: 000000000004a66b RBX: 0000000000000000 RCX: ffffc900186f8000
RDX: 0000000000080000 RSI: ffffffff8182ddf2 RDI: 0000000000000007
RBP: 0000000000000200 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000004 R12: 0000000000000001
R13: 0000000000000008 R14: ffff88801b079000 R15: ffff88814d0f8a00
 queue_work include/linux/workqueue.h:662 [inline]
 snd_virmidi_output_trigger+0xf1/0x130 sound/core/seq/seq_virmidi.c:178
 snd_rawmidi_output_trigger sound/core/rawmidi.c:213 [inline]
 snd_rawmidi_output_trigger sound/core/rawmidi.c:209 [inline]
 snd_rawmidi_kernel_write1+0x3f8/0x880 sound/core/rawmidi.c:1576
 snd_rawmidi_write+0x267/0xbe0 sound/core/rawmidi.c:1629
 vfs_write+0x24c/0x1150 fs/read_write.c:677
 ksys_write+0x207/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3976b8cda9
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:00007f397790f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f3976da5fa0 RCX: 00007f3976b8cda9
RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000005
RBP: 00007f3976c0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3976da5fa0 R15: 00007ffcbd7f9628
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/29 04:57 upstream 9c5968db9e62 f5427d7c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in snd_rawmidi_write
2024/12/19 10:42 upstream c061cf420ded 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in snd_rawmidi_write
* Struck through repros no longer work on HEAD.