syzbot


INFO: rcu detected stall in snd_pcm_oss_read (2)

Status: auto-obsoleted due to no activity on 2023/11/15 07:39
Subsystems: sound
[Documentation on labels]
First crash: 258d, last: 258d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in snd_pcm_oss_read sound C 2 1956d 1955d 11/26 fixed on 2019/03/06 07:43
linux-4.14 INFO: rcu detected stall in snd_pcm_oss_read 1 1458d 1458d 0/1 auto-closed as invalid on 2020/09/01 05:31

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=8b94/1/0x4000000000000000 softirq=36713/36716 fqs=3
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P9081/1:b..l
rcu: 	(detected by 0, t=10505 jiffies, g=48585, q=342 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12343 Comm: syz-executor.5 Not tainted 6.5.0-rc6-syzkaller-00036-g4853c74bd7ab #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:kasan_check_range+0x1ba/0x290 mm/kasan/generic.c:187
Code: fb 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 3b 00 0f 85 a2 00 00 00 49 ff c3 48 ff cd 75 ee 5b 41 5c <41> 5e 41 5f 5d c3 40 84 ed 75 5f f7 c5 00 ff 00 00 75 5c f7 c5 00
RSP: 0018:ffffc900001e06e0 EFLAGS: 00000056
RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff816b26e5
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff907b4300
RBP: 0000000000000000 R08: ffffffff907b4307 R09: 1ffffffff20f6860
R10: dffffc0000000000 R11: fffffbfff20f6861 R12: ffff88801bd98ac0
R13: ffff88801bd98ac0 R14: dffffc0000000001 R15: fffffbfff20f6861
FS:  00007f443b0796c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000c2c0 CR3: 0000000021d9a000 CR4: 00000000003506e0
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]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 lookup_chain_cache_add kernel/locking/lockdep.c:3788 [inline]
 validate_chain kernel/locking/lockdep.c:3844 [inline]
 __lock_acquire+0x1345/0x7f70 kernel/locking/lockdep.c:5144
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5761
 __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+0x163/0x530 lib/debugobjects.c:717
 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline]
 debug_activate kernel/time/hrtimer.c:477 [inline]
 enqueue_hrtimer+0x30/0x310 kernel/time/hrtimer.c:1087
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6c0/0xd10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1098 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1115
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:444 [inline]
RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline]
RIP: 0010:page_ref_count include/linux/page_ref.h:67 [inline]
RIP: 0010:page_expected_state mm/page_alloc.c:938 [inline]
RIP: 0010:check_new_page mm/page_alloc.c:1464 [inline]
RIP: 0010:check_new_pages+0xef/0x330 mm/page_alloc.c:1478
Code: 4c 89 e7 be 04 00 00 00 e8 ce 81 0b 00 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 98 00 00 00 <4a> 63 6c 33 34 4c 09 ed 4a 8d 7c 33 38 48 89 f8 48 c1 e8 03 48 b9
RSP: 0018:ffffc9000b4f6bb0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffea0000814800 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea0000814834
RBP: ffffc9000b4f6df0 R08: ffffea0000814837 R09: 1ffffd4000102906
R10: dffffc0000000000 R11: fffff94000102907 R12: ffffea0000814834
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffffd4000102906
 __rmqueue_pcplist+0x1fd8/0x2150 mm/page_alloc.c:2754
 rmqueue_pcplist mm/page_alloc.c:2784 [inline]
 rmqueue mm/page_alloc.c:2827 [inline]
 get_page_from_freelist+0x780/0x3370 mm/page_alloc.c:3218
 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477
 __get_free_pages+0xc/0x30 mm/page_alloc.c:4527
 kasan_populate_vmalloc_pte+0x3f/0x100 mm/kasan/shadow.c:323
 apply_to_pte_range mm/memory.c:2596 [inline]
 apply_to_pmd_range mm/memory.c:2640 [inline]
 apply_to_pud_range mm/memory.c:2676 [inline]
 apply_to_p4d_range mm/memory.c:2712 [inline]
 __apply_to_page_range+0x8cb/0xdc0 mm/memory.c:2746
 alloc_vmap_area+0x1acb/0x1c00 mm/vmalloc.c:1641
 __get_vm_area_node+0x16e/0x370 mm/vmalloc.c:2595
 __vmalloc_node_range+0x3df/0x1490 mm/vmalloc.c:3276
 __vmalloc_node mm/vmalloc.c:3381 [inline]
 vmalloc+0x79/0x90 mm/vmalloc.c:3414
 __snd_dma_alloc_pages sound/core/memalloc.c:39 [inline]
 snd_dma_alloc_dir_pages+0x160/0x230 sound/core/memalloc.c:73
 do_alloc_pages+0x122/0x270 sound/core/pcm_memory.c:74
 snd_pcm_lib_malloc_pages+0x33d/0x760 sound/core/pcm_memory.c:459
 snd_pcm_hw_params+0x91d/0x1e70 sound/core/pcm_native.c:759
 snd_pcm_oss_change_params_locked+0x209b/0x3da0 sound/core/oss/pcm_oss.c:976
 snd_pcm_oss_make_ready_locked sound/core/oss/pcm_oss.c:1198 [inline]
 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1526 [inline]
 snd_pcm_oss_read+0x24c/0x940 sound/core/oss/pcm_oss.c:2788
 vfs_read+0x279/0xb00 fs/read_write.c:468
 ksys_read+0x1a0/0x2c0 fs/read_write.c:613
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f443a27cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f443b0790c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f443a39bf80 RCX: 00007f443a27cae9
RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f443a2c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f443a39bf80 R15: 00007ffc22744298
 </TASK>
task:kworker/u4:10   state:R  running task     stack:21096 pid:9081  ppid:2      flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6710
 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7022
 irqentry_exit+0x57/0x80 kernel/entry/common.c:433
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650
RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5765
Code: 2b 00 74 08 4c 89 f7 e8 c4 7a 79 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900167b7a40 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92002cf6f54 RCX: ffffffff816b2607
RDX: 0000000000000000 RSI: ffffffff8b0aa960 RDI: ffffffff8b58ad60
RBP: ffffc900167b7b98 R08: dffffc0000000000 R09: 1ffffffff20f6860
R10: dffffc0000000000 R11: fffffbfff20f6861 R12: 1ffff92002cf6f50
R13: dffffc0000000000 R14: ffffc900167b7aa0 R15: 0000000000000246
 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:303
 rcu_read_lock include/linux/rcupdate.h:749 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0xc5/0x5c0 net/batman-adv/network-coding.c:719
 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751
 kthread+0x2b8/0x350 kernel/kthread.c:389
 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: rcu_preempt kthread starved for 10490 jiffies! g48585 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:26568 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6710
 schedule+0xc3/0x180 kernel/sched/core.c:6786
 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1808
 kthread+0x2b8/0x350 kernel/kthread.c:389
 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 12117 Comm: kworker/u4:11 Not tainted 6.5.0-rc6-syzkaller-00036-g4853c74bd7ab #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:296 [inline]
RIP: 0010:smp_call_function_many_cond+0x1856/0x27d0 kernel/smp.c:835
Code: 03 84 c0 75 7e 45 8b 2c 24 44 89 ee 83 e6 01 31 ff e8 de 17 0b 00 41 83 e5 01 4c 8b 6c 24 60 75 07 e8 1e 14 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 04 24
RSP: 0018:ffffc9000a6d7780 EFLAGS: 00000293
RAX: ffffffff8180a437 RBX: 1ffff1101732857d RCX: ffff88803ea0bb80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000a6d7980 R08: ffffffff8180a402 R09: 1ffffffff20f6860
R10: dffffc0000000000 R11: fffffbfff20f6861 R12: ffff8880b9942be8
R13: ffff8880b983d0c8 R14: ffff8880b983d0c0 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5cdf598000 CR3: 000000000d130000 CR4: 00000000003506f0
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:1003
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2001 [inline]
 text_poke_bp_batch+0x2d7/0x960 arch/x86/kernel/alternative.c:2211
 text_poke_flush arch/x86/kernel/alternative.c:2402 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2409
 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x132/0x250 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:831
 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751
 kthread+0x2b8/0x350 kernel/kthread.c:389
 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145
 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/08/17 07:34 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in snd_pcm_oss_read
* Struck through repros no longer work on HEAD.