syzbot


INFO: rcu detected stall in mas_store_prealloc (2)

Status: auto-obsoleted due to no activity on 2025/01/22 20:20
Subsystems: mm
[Documentation on labels]
First crash: 124d, last: 116d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in mas_store_prealloc mm 1 584d 584d 0/28 auto-obsoleted due to no activity on 2023/10/13 16:47
linux-6.1 INFO: rcu detected stall in mas_store_prealloc 1 241d 241d 0/3 auto-obsoleted due to no activity on 2024/09/30 04:09

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (2 ticks this GP) idle=19fc/1/0x4000000000000000 softirq=11390/11390 fqs=0
rcu: 	(detected by 0, t=10502 jiffies, g=8849, q=1712 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5650 Comm: modprobe Not tainted 6.12.0-rc3-syzkaller-00185-g9efc44fb2dba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:210
Code: 89 fb e8 23 00 00 00 48 8b 3d 74 0a 9d 0c 48 89 de 5b e9 83 ca 5d 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 c0 d7 03 00 65 8b 15 d0 ef
RSP: 0018:ffffc90000a18c28 EFLAGS: 00000086
RAX: 18017caceabff702 RBX: ffff88802e0762c0 RCX: ffff888079345a00
RDX: ffff8880276e0000 RSI: ffff8880277de800 RDI: ffff88802e0762c0
RBP: dffffc0000000000 R08: ffffffff89cc0d23 R09: fffff52000143180
R10: dffffc0000000000 R11: fffff52000143180 R12: dffffc0000000000
R13: ffff8880276e0008 R14: ffff8880276e0000 R15: ffff8880277de800
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c307525008 CR3: 00000000253bc000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 taprio_set_budgets+0x26/0x370 net/sched/sch_taprio.c:659
 advance_sched+0x98d/0xca0 net/sched/sch_taprio.c:977
 __run_hrtimer kernel/time/hrtimer.c:1691 [inline]
 __hrtimer_run_queues+0x59b/0xd50 kernel/time/hrtimer.c:1755
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1026 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1043
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1037
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:393 [inline]
RIP: 0010:deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline]
RIP: 0010:unwind_next_frame+0xb80/0x22d0 arch/x86/kernel/unwind_orc.c:585
Code: bd 00 48 89 6c 24 60 48 89 5c 24 40 49 8b 6d 08 49 8d 5d 10 49 89 df 49 c1 ef 03 43 80 3c 27 00 74 08 48 89 df e8 70 29 bd 00 <4c> 8b 74 24 08 4d 8b 66 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c
RSP: 0018:ffffc90009cd65f0 EFLAGS: 00000246
RAX: 1ffff9200139acd9 RBX: ffffc90009cd66d0 RCX: ffffffff9034f6fc
RDX: ffffffff90ae09fc RSI: 0000000000000002 RDI: ffffffff814166e0
RBP: ffffc90009cd0000 R08: 0000000000000001 R09: ffffc90009cd67b0
R10: ffffc90009cd6710 R11: ffffffff8180a0e0 R12: dffffc0000000000
R13: ffffc90009cd66c0 R14: ffffc90009cd66f8 R15: 1ffff9200139acda
 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
 kasan_save_stack+0x3f/0x60 mm/kasan/common.c:47
 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:541
 __call_rcu_common kernel/rcu/tree.c:3086 [inline]
 call_rcu+0x167/0xa70 kernel/rcu/tree.c:3190
 mas_wr_node_store lib/maple_tree.c:3857 [inline]
 mas_wr_store_entry+0x151d/0x2380 lib/maple_tree.c:4078
 mas_store_prealloc+0xcbb/0x1390 lib/maple_tree.c:5520
 mmap_region+0x207d/0x2990 mm/mmap.c:1513
 do_mmap+0x8f0/0x1000 mm/mmap.c:496
 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588
 elf_map fs/binfmt_elf.c:385 [inline]
 elf_load+0x25d/0x6f0 fs/binfmt_elf.c:408
 load_elf_interp+0x440/0xac0 fs/binfmt_elf.c:675
 load_elf_binary+0x1a44/0x2710 fs/binfmt_elf.c:1235
 search_binary_handler fs/exec.c:1752 [inline]
 exec_binprm fs/exec.c:1794 [inline]
 bprm_execve+0xaf8/0x1770 fs/exec.c:1845
 kernel_execve+0x931/0xa50 fs/exec.c:2012
 call_usermodehelper_exec_async+0x237/0x380 kernel/umh.c:110
 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: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g8849 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=3074
rcu: rcu_preempt kthread starved for 10502 jiffies! g8849 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:25136 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 __schedule_loop kernel/sched/core.c:6759 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6774
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 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>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/24 20:15 net 9efc44fb2dba 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in mas_store_prealloc
2024/10/17 17:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 07b887f8236e 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in mas_store_prealloc
* Struck through repros no longer work on HEAD.