syzbot


INFO: rcu detected stall in sys_mlock (2)

Status: upstream: reported C repro on 2026/07/12 06:18
Reported-by: syzbot+6d18e493d35a61aea34b@syzkaller.appspotmail.com
First crash: 10d, last: 10d
Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_mlock mm 1 1 769d 769d 0/29 auto-obsoleted due to no activity on 2024/09/11 05:27
linux-6.6 INFO: rcu detected stall in sys_mlock 1 1 309d 309d 0/2 auto-obsoleted due to no activity on 2025/12/25 08:53
linux-5.15 INFO: rcu detected stall in sys_mlock 1 1 396d 396d 0/3 auto-obsoleted due to no activity on 2025/09/29 15:14
upstream INFO: rcu detected stall in sys_mlock (2) mm kasan 1 2 622d 634d 0/29 auto-obsoleted due to no activity on 2025/02/05 20:37
linux-6.1 INFO: rcu detected stall in sys_mlock 1 1 798d 798d 0/3 auto-obsoleted due to no activity on 2024/08/23 11:10
upstream INFO: rcu detected stall in sys_mlock (3) mm 1 8 152d 395d 0/29 auto-obsoleted due to no activity on 2026/05/20 22:34

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 0, t=10502 jiffies, g=6117, q=31)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294969893-4294959391), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g6117 f0x2 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:28112 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5049 [inline]
 __schedule+0x11c3/0x4350 kernel/sched/core.c:6395
 schedule+0x11b/0x1e0 kernel/sched/core.c:6478
 schedule_timeout+0x184/0x2d0 kernel/time/timer.c:2117
 rcu_gp_fqs_loop+0x2be/0x11f0 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0x9a/0x370 kernel/rcu/tree.c:2145
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 4227 Comm: syz-executor492 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <IRQ>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a2/0x3d0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1cd/0x250 kernel/rcu/tree_stall.h:487
 print_other_cpu_stall+0x1110/0x1270 kernel/rcu/tree_stall.h:592
 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline]
 rcu_pending kernel/rcu/tree.c:3936 [inline]
 rcu_sched_clock_irq+0x845/0x1120 kernel/rcu/tree.c:2619
 update_process_times+0x193/0x200 kernel/time/timer.c:2021
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x37d/0x560 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4b0/0xb60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x397/0x8b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:172 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:227 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0xc/0x80 kernel/kcov.c:300
Code: 44 02 08 05 00 00 00 4a 89 7c 02 10 4a 89 74 02 18 4a 89 44 02 20 48 ff c1 48 89 0a c3 90 48 8b 04 24 65 48 8b 0d 34 79 89 7e <65> 8b 15 35 79 89 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75
RSP: 0018:ffffc90002ebf810 EFLAGS: 00000246
RAX: ffffffff819ea7b2 RBX: ffffea0001b8f400 RCX: ffff888077129dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: dffffc0000000000 R08: ffffea0001b8f437 R09: 1ffffd4000371e86
R10: dffffc0000000000 R11: fffff94000371e87 R12: 0000000000000000
R13: 1ffff920005d7f2c R14: ffff888020dc8dc0 R15: ffffc90002ebf960
 xa_is_internal include/linux/xarray.h:170 [inline]
 xa_is_sibling include/linux/xarray.h:1264 [inline]
 xas_reload+0x1d2/0x470 include/linux/xarray.h:1574
 next_uptodate_page+0x26e/0x870 mm/filemap.c:3259
 next_map_page mm/filemap.c:3296 [inline]
 filemap_map_pages+0xf3d/0x1450 mm/filemap.c:3352
 do_fault_around mm/memory.c:4243 [inline]
 do_read_fault mm/memory.c:4258 [inline]
 do_fault mm/memory.c:4392 [inline]
 handle_pte_fault mm/memory.c:4650 [inline]
 __handle_mm_fault mm/memory.c:4785 [inline]
 handle_mm_fault+0x25bb/0x4440 mm/memory.c:4883
 faultin_page mm/gup.c:976 [inline]
 __get_user_pages+0x952/0x11e0 mm/gup.c:1197
 populate_vma_page_range+0x213/0x290 mm/gup.c:1529
 __mm_populate+0x275/0x3b0 mm/gup.c:1638
 do_mlock+0x49c/0x550 mm/mlock.c:688
 __do_sys_mlock mm/mlock.c:696 [inline]
 __se_sys_mlock mm/mlock.c:694 [inline]
 __x64_sys_mlock+0x5c/0x70 mm/mlock.c:694
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb2de2201a9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffea748d378 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007fb2de2201a9
RDX: 00007fb2de2201a9 RSI: 0000000000800000 RDI: 0000200000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffea748d698
R13: 0000000000000000 R14: 431bde82d7b634db R15: 00007ffea748d3e0
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/12 12:53 linux-5.15.y c86c4726e7f0 d78ea535 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_mlock
2026/07/12 06:17 linux-5.15.y c86c4726e7f0 d78ea535 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_mlock
* Struck through repros no longer work on HEAD.