syzbot


INFO: rcu detected stall in cleanup_mnt (3)

Status: upstream: reported on 2025/06/16 18:34
Reported-by: syzbot+f0199fde110304a96b9b@syzkaller.appspotmail.com
First crash: 6d06h, last: 6d06h
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in cleanup_mnt 1 742d 742d 0/3 auto-obsoleted due to no activity on 2023/09/19 04:00
upstream INFO: rcu detected stall in cleanup_mnt (2) block 1 1278d 1278d 0/29 closed as invalid on 2022/02/08 10:10
linux-6.1 INFO: rcu detected stall in cleanup_mnt (2) 1 372d 372d 0/3 auto-obsoleted due to no activity on 2024/09/23 19:34
linux-6.1 INFO: rcu detected stall in cleanup_mnt 1 688d 688d 0/3 auto-obsoleted due to no activity on 2023/11/13 00:06
upstream INFO: rcu detected stall in cleanup_mnt exfat 1 1810d 1810d 0/29 auto-closed as invalid on 2020/09/06 14:28
upstream INFO: rcu detected stall in cleanup_mnt (3) reiserfs block 2 753d 764d 0/29 auto-obsoleted due to no activity on 2023/08/29 03:36
linux-5.15 INFO: rcu detected stall in cleanup_mnt (2) origin:lts-only C done 9 10d 316d 0/3 upstream: reported C repro on 2024/08/10 23:43

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P13211/1:b..l
	(detected by 1, t=10502 jiffies, g=83813, q=39 ncpus=2)
task:syz.2.2319      state:R  running task     stack:25248 pid:13211 ppid:7899   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561
 preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873
 irqentry_exit+0x63/0x70 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:lock_acquire+0x20f/0x490 kernel/locking/lockdep.c:5666
Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 3d 00 00 00 00 00 66 43 c7 44 3d 09 00 00 43 c6 44 3d 0b
RSP: 0018:ffffc900052a7000 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: d189be3c7511c400
RDX: 0000000000000000 RSI: ffffffff8a6c1160 RDI: ffffffff8abf1360
RBP: ffffc900052a7118 R08: dffffc0000000000 R09: fffffbfff2117049
R10: fffffbfff2117049 R11: 1ffffffff2117048 R12: 0000000000000000
R13: 1ffff92000a54e0c R14: 0000000000000246 R15: dffffc0000000000
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 percpu_ref_put_many include/linux/percpu-refcount.h:330 [inline]
 percpu_ref_put+0x35/0x180 include/linux/percpu-refcount.h:351
 __mem_cgroup_uncharge_list+0x6c/0xc0 mm/memcontrol.c:7140
 mem_cgroup_uncharge_list include/linux/memcontrol.h:699 [inline]
 release_pages+0x1f8a/0x2200 mm/swap.c:1034
 __pagevec_release+0x6d/0xe0 mm/swap.c:1055
 pagevec_release include/linux/pagevec.h:71 [inline]
 folio_batch_release include/linux/pagevec.h:135 [inline]
 truncate_inode_pages_range+0x2f6/0xff0 mm/truncate.c:372
 evict+0x498/0x870 fs/inode.c:707
 __dentry_kill+0x431/0x650 fs/dcache.c:611
 shrink_dentry_list+0x39b/0x6a0 fs/dcache.c:1206
 shrink_dcache_parent+0xa8/0x3c0 fs/dcache.c:-1
 do_one_tree+0x23/0xe0 fs/dcache.c:1687
 shrink_dcache_for_umount+0x65/0x110 fs/dcache.c:1704
 generic_shutdown_super+0x63/0x340 fs/super.c:473
 kill_anon_super fs/super.c:1128 [inline]
 kill_litter_super+0x72/0xa0 fs/super.c:1137
 deactivate_locked_super+0x93/0xf0 fs/super.c:332
 cleanup_mnt+0x463/0x4f0 fs/namespace.c:1182
 task_work_run+0x1ca/0x250 kernel/task_work.c:203
 exit_task_work include/linux/task_work.h:39 [inline]
 do_exit+0x936/0x2400 kernel/exit.c:871
 do_group_exit+0x217/0x2d0 kernel/exit.c:1021
 get_signal+0x1272/0x1350 kernel/signal.c:2871
 arch_do_signal_or_restart+0xb0/0x1230 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0bbf58e929
RSP: 002b:00007f0bc0416038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: 0000000001530000 RBX: 00007f0bbf7b5fa0 RCX: 00007f0bbf58e929
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007
RBP: 00007f0bbf610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0bbf7b5fa0 R15: 00007ffd655164f8
 </TASK>
rcu: rcu_preempt kthread starved for 10555 jiffies! g83813 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:27480 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561
 schedule+0xb9/0x180 kernel/sched/core.c:6637
 schedule_timeout+0x15c/0x280 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2f2/0x1310 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0x95/0x380 kernel/rcu/tree.c:1905
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at default_idle+0xb/0x10 arch/x86/kernel/process.c:735

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/16 18:33 linux-6.1.y 58485ff1a74f d1716036 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in cleanup_mnt
* Struck through repros no longer work on HEAD.