syzbot


INFO: rcu detected stall in brk

Status: auto-obsoleted due to no activity on 2024/07/20 02:57
Subsystems: mm
[Documentation on labels]
First crash: 200d, last: 200d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in brk (2) mm input usb syz 1 10d 6d11h 0/28 upstream: reported syz repro on 2024/10/31 16:03

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P18705/1:b..l
rcu: 	(detected by 0, t=10503 jiffies, g=133857, q=242 ncpus=2)
task:udevadm         state:R  running task     stack:25664 pid:18705 tgid:18705 ppid:5614   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6746
 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7068
 irqentry_exit+0x36/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:mtree_range_walk+0x36a/0xbe0 lib/maple_tree.c:2774
Code: 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 74 06 0f 8e 5a 08 00 00 48 be 00 00 00 00 00 fc ff df 48 8b 04 24 44 0f b6 a0 f0 00 00 00 <48> 83 c0 08 48 89 44 24 28 48 c1 e8 03 80 3c 30 00 0f 85 1e 08 00
RSP: 0018:ffffc9000366fa58 EFLAGS: 00000246
RAX: ffff888028711c00 RBX: 0000000000000003 RCX: ffffffff8ac71df1
RDX: dffffc0000000000 RSI: dffffc0000000000 RDI: ffff888028711cf0
RBP: ffffc9000366fe98 R08: 0000000000000005 R09: 0000000000000003
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000004
R13: fffff520006cdfd5 R14: ffffc9000366fe88 R15: ffffc9000366fead
 mas_state_walk lib/maple_tree.c:3678 [inline]
 mas_walk+0x4a8/0x8d0 lib/maple_tree.c:4909
 mas_find_setup lib/maple_tree.c:6024 [inline]
 mas_find+0x107/0x530 lib/maple_tree.c:6064
 vma_find include/linux/mm.h:971 [inline]
 do_vmi_align_munmap+0x9a8/0x1ad0 mm/mmap.c:2595
 do_vma_munmap mm/mmap.c:3098 [inline]
 __do_sys_brk+0x931/0xb40 mm/mmap.c:239
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6c2331ac7c
RSP: 002b:00007ffed02bc3c8 EFLAGS: 00000206 ORIG_RAX: 000000000000000c
RAX: ffffffffffffffda RBX: fffffffffffe5000 RCX: 00007f6c2331ac7c
RDX: 0000000000000021 RSI: 0000564e507e9bc0 RDI: 0000564e50815000
RBP: 000000000003b6e0 R08: 0000564e507e9990 R09: 0000000000000020
R10: 0000000000000160 R11: 0000000000000206 R12: 0000564e50830000
R13: 0000564e5080f5f0 R14: 00007f6c233f1aa0 R15: 00007ffed02bc660
 </TASK>
rcu: rcu_preempt kthread starved for 10529 jiffies! g133857 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:28672 pid:16    tgid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6838
 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2582
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:1663
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:1862
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/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:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5140 Comm: kworker/1:6 Not tainted 6.9.0-rc4-syzkaller-00266-g977b1ef51866 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events bpf_prog_free_deferred
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x4e7/0x1420 kernel/smp.c:855
Code: 0c 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 5b 07 0c 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 f7 0c 00 00 8b 43 08 31
RSP: 0018:ffffc900038ff930 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b9446860 RCX: ffffffff8181bb1b
RDX: ffff88807dd21e00 RSI: ffffffff8181baf5 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: ffffed1017288d0d
R13: 0000000000000001 R14: ffff8880b9446868 R15: ffff8880b953fc00
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c9d96dd58 CR3: 0000000028f42000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023
 __purge_vmap_area_lazy+0x4f5/0xc10 mm/vmalloc.c:2245
 _vm_unmap_aliases+0x29c/0xbd0 mm/vmalloc.c:2843
 vm_reset_perms mm/vmalloc.c:3251 [inline]
 vfree+0x533/0x7a0 mm/vmalloc.c:3330
 bpf_prog_unlock_free include/linux/filter.h:930 [inline]
 bpf_jit_free include/linux/filter.h:1218 [inline]
 bpf_prog_free_deferred+0x466/0x630 kernel/bpf/core.c:2783
 process_one_work+0x9a9/0x1ac0 kernel/workqueue.c:3254
 process_scheduled_works kernel/workqueue.c:3335 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3416
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/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/04/21 02:49 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in brk
* Struck through repros no longer work on HEAD.