syzbot


INFO: rcu detected stall in sys_rename (2)

Status: upstream: reported on 2025/08/15 08:45
Reported-by: syzbot+46ad845c7f790415d654@syzkaller.appspotmail.com
First crash: 10d, last: 10d
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_rename (2) mm 1 2 2056d 2056d 0/29 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_rename (5) fs 1 2 637d 698d 0/29 auto-obsoleted due to no activity on 2024/02/25 12:55
upstream INFO: rcu detected stall in sys_rename (4) fs 1 1 1028d 1028d 0/29 auto-obsoleted due to no activity on 2023/02/25 08:48
upstream INFO: rcu detected stall in sys_rename (3) fs 1 3 1128d 1202d 0/29 auto-obsoleted due to no activity on 2022/10/21 16:10
linux-6.1 INFO: rcu detected stall in sys_rename 1 1 121d 121d 0/3 auto-obsoleted due to no activity on 2025/08/04 09:07
linux-5.15 INFO: rcu detected stall in sys_rename 1 1 688d 688d 0/3 auto-obsoleted due to no activity on 2024/01/14 17:35
upstream INFO: rcu detected stall in sys_rename (6) fs 1 13 259d 430d 0/29 auto-obsoleted due to no activity on 2025/03/09 06:53
upstream INFO: rcu detected stall in sys_rename mm 1 9 2091d 2092d 0/29 closed as invalid on 2019/12/04 14:14
linux-5.15 INFO: rcu detected stall in sys_rename (2) 1 1 382d 382d 0/3 auto-obsoleted due to no activity on 2024/11/15 17:39
linux-5.15 INFO: rcu detected stall in sys_rename (3) 1 1 193d 193d 0/3 auto-obsoleted due to no activity on 2025/05/23 15:25
android-5-15 BUG: soft lockup in sys_rename 1 2 478d 483d 0/2 auto-obsoleted due to no activity on 2024/08/01 16:15

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P16934/1:b..l P19228/1:b..l
	(detected by 0, t=10502 jiffies, g=123049, q=96 ncpus=2)
task:syz.1.3271      state:R  running task     stack:26208 pid:19228 ppid:13741  flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10ec/0x40b0 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_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:unwind_next_frame+0x93/0x20b0 arch/x86/kernel/unwind_orc.c:-1
Code: 49 89 df 49 c1 ef 03 43 0f b6 04 37 84 c0 0f 85 a0 19 00 00 8b 03 85 c0 0f 84 79 18 00 00 48 89 6c 24 08 89 84 24 8c 00 00 00 <4c> 89 ac 24 98 00 00 00 4c 89 64 24 68 4c 89 7c 24 18 bf 01 00 00
RSP: 0018:ffffc900001c71f0 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffc900001c72c8 RCX: 0000000080000000
RDX: dffffc0000000000 RSI: ffffffff81e46668 RDI: ffffc900001c72c8
RBP: ffffc900001c7310 R08: ffffc900001c7390 R09: 0000000000000008
R10: fffff52000038e65 R11: 1ffff92000038e63 R12: ffffffff81e46668
R13: ffffc900001c7d10 R14: dffffc0000000000 R15: 1ffff92000038e59
 arch_stack_walk+0x10c/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x98/0xe0 kernel/stacktrace.c:122
 save_stack+0xf3/0x1e0 mm/page_owner.c:127
 __reset_page_owner+0x51/0x1a0 mm/page_owner.c:148
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1459 [inline]
 free_pcp_prepare mm/page_alloc.c:1509 [inline]
 free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384
 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3525
 release_pages+0x1f92/0x2200 mm/swap.c:1035
 __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]
 shmem_undo_range+0x75b/0x2050 mm/shmem.c:946
 shmem_truncate_range mm/shmem.c:1062 [inline]
 shmem_evict_inode+0x248/0xa40 mm/shmem.c:1171
 evict+0x485/0x870 fs/inode.c:705
 __dentry_kill+0x431/0x650 fs/dcache.c:611
 dentry_kill+0xb8/0x290 fs/dcache.c:-1
 dput+0xfa/0x1d0 fs/dcache.c:918
 __fput+0x5e0/0x920 fs/file_table.c:328
 task_work_run+0x1ca/0x250 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 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:0x7f7f80b8d84a
RSP: 002b:00007f7f81ac2e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f7f80b8d84a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000005597
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 00007f7f81ac2ef0 R14: 00007f7f81ac3668 R15: 00007f7f769f7000
 </TASK>
task:udevd           state:R  running task     stack:24576 pid:16934 ppid:3640   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10ec/0x40b0 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:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:212
Code: 2e 0f 1f 84 00 00 00 00 00 90 53 48 89 fb e8 17 00 00 00 48 8b 3d 00 87 9e 0c 48 89 de 5b e9 87 53 4f 00 00 00 cc cc 00 00 cc <48> 8b 04 24 65 48 8b 0d 54 a8 81 7e 65 8b 15 55 a8 81 7e 81 e2 00
RSP: 0018:ffffc90006c2f960 EFLAGS: 00000246
RAX: ffffffff81e16bc1 RBX: ffff888030b4ad70 RCX: 0000000000000000
RDX: ffff88804cce3b80 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888030b4ad98 R08: dffffc0000000000 R09: fffff52000d85f76
R10: fffff52000d85f76 R11: 1ffff92000d85f74 R12: 0000000000000000
R13: 0000000000000081 R14: 0000000000000000 R15: 0000000000000000
 acl_permission_check fs/namei.c:349 [inline]
 generic_permission+0x230/0x510 fs/namei.c:407
 do_inode_permission fs/namei.c:468 [inline]
 inode_permission+0x90/0x480 fs/namei.c:528
 may_lookup fs/namei.c:1716 [inline]
 link_path_walk+0x280/0xe50 fs/namei.c:2267
 path_parentat fs/namei.c:2526 [inline]
 __filename_parentat+0x201/0x610 fs/namei.c:2550
 filename_parentat fs/namei.c:2568 [inline]
 do_renameat2+0x230/0xc70 fs/namei.c:4943
 __do_sys_rename fs/namei.c:5073 [inline]
 __se_sys_rename fs/namei.c:5071 [inline]
 __x64_sys_rename+0x82/0x90 fs/namei.c:5071
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd75c87acc7
RSP: 002b:00007fff0a824408 EFLAGS: 00000206 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00005593dc137f30 RCX: 00007fd75c87acc7
RDX: 00005593dc117010 RSI: 00007fff0a824420 RDI: 00007fff0a824820
RBP: 00005593dc1ffc00 R08: 00000000000001e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff0a824420
R13: 00007fff0a824820 R14: 0000000000000000 R15: 00005593bee199dd
 </TASK>
rcu: rcu_preempt kthread starved for 10583 jiffies! g123049 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:27848 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10ec/0x40b0 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:
CPU: 0 PID: 19242 Comm: syz.2.3273 Not tainted 6.1.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline]
RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:206
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 9f 47 f7 02 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003277cb0 EFLAGS: 00000246
RAX: 00000000000000f6 RBX: ffffffff8c5e0b88 RCX: 000000000000083f
RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffff5200064ef85
R10: fffff5200064ef85 R11: 1ffff9200064ef84 R12: ffff8880b8e33e01
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000020
FS:  00007fd35f5f66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c40a04c CR3: 0000000052f86000 CR4: 00000000003506f0
DR0: 0000000000000008 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_irq_work_raise+0x82/0xd0 arch/x86/kernel/irq_work.c:31
 irq_work_queue+0x95/0x140 kernel/irq_work.c:114
 bpf_send_signal_common+0x2b2/0x420 kernel/trace/bpf_trace.c:879
 ____bpf_send_signal kernel/trace/bpf_trace.c:888 [inline]
 bpf_send_signal+0x15/0x20 kernel/trace/bpf_trace.c:886
 bpf_prog_7ba5217f62dcd359+0x38/0x3c
 bpf_dispatcher_nop_func include/linux/bpf.h:1001 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2285 [inline]
 bpf_trace_run2+0x1cd/0x3b0 kernel/trace/bpf_trace.c:2324
 __bpf_trace_sys_enter+0x60/0x70 include/trace/events/syscalls.h:18
 trace_sys_enter+0x6b/0x80 include/trace/events/syscalls.h:18
 syscall_trace_enter+0xf0/0x150 kernel/entry/common.c:81
 do_syscall_64+0x24/0xa0 arch/x86/entry/common.c:77
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd36132add9
Code: 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 c7 c0 0f 00 00 00 0f 05 <0f> 1f 80 00 00 00 00 48 81 ec 48 01 00 00 49 89 d0 64 48 8b 04 25
RSP: 002b:00007fd35f5f5b40 EFLAGS: 00000246 ORIG_RAX: 000000000000000f
RAX: ffffffffffffffda RBX: 00007fd3615b6098 RCX: 00007fd36132add9
RDX: 00007fd35f5f5b40 RSI: 00007fd35f5f5c70 RDI: 0000000000000011
RBP: 00007fd3615b6090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd3615b6128 R14: 00007ffc8aaf61f0 R15: 00007ffc8aaf62d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/15 08:44 linux-6.1.y 3594f306da12 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_rename
* Struck through repros no longer work on HEAD.