INFO: rcu detected stall in shmem_file_write_iter (2)

Status: upstream: reported on 2026/07/31 20:44
Reported-by: syzbot+07015a52da04d299ded0@syzkaller.appspotmail.com
First crash: 111d, last: 1d13h
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in shmem_file_write_iter (2) mm 1 142 638d 907d 0/29 auto-obsoleted due to no activity on 2025/05/01 06:33
linux-6.6 INFO: rcu detected stall in shmem_file_write_iter 1 7 287d 491d 0/2 auto-obsoleted due to no activity on 2026/05/16 20:03
upstream INFO: rcu detected stall in shmem_file_write_iter (3) prio:low mm 1 syz, C 102 20d 394d 0/29 upstream: reported C repro on 2025/10/22 03:00
upstream INFO: rcu detected stall in shmem_file_write_iter mm 1 4 1058d 1101d 0/29 auto-obsoleted due to no activity on 2024/03/27 04:51

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P8045/2:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=40933, q=430 ncpus=1)
task:syz.7.459       state:R  running task     stack:23752 pid:8045  ppid:7149   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5393 [inline]
 __schedule+0x156f/0x4720 kernel/sched/core.c:6722
 preempt_schedule_irq+0xbf/0x150 kernel/sched/core.c:7032
 irqentry_exit+0x67/0x70 kernel/entry/common.c:441
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:182 [inline]
RIP: 0010:percpu_ref_tryget_many include/linux/percpu-refcount.h:243 [inline]
RIP: 0010:percpu_ref_tryget+0x9b/0x180 include/linux/percpu-refcount.h:266
Code: f6 8a e8 c8 ac 80 ff 49 bf 00 00 00 00 00 fc ff df 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 48 ff f7 ff 49 8b 06 <a8> 03 75 67 65 48 ff 00 40 b5 01 e8 d5 00 af 08 85 c0 74 3a e8 2c
RSP: 0018:ffffc900035877e0 EFLAGS: 00000246
RAX: 0000607f47021730 RBX: ffffffff81e8e785 RCX: 202cffa54ab59500
RDX: 0000000000000000 RSI: ffffffff8b3c5240 RDI: ffffffff8b3c5200
RBP: 1ffff11004396f3b R08: dffffc0000000000 R09: 1ffffffff24446a0
R10: dffffc0000000000 R11: fffffbfff24446a1 R12: ffff88802a99c054
R13: dffffc0000000000 R14: ffff88802a99c010 R15: dffffc0000000000
 css_tryget include/linux/cgroup_refcnt.h:45 [inline]
 get_mem_cgroup_from_mm+0x102/0x290 mm/memcontrol.c:1094
 __mem_cgroup_charge+0x15/0x80 mm/memcontrol.c:7128
 mem_cgroup_charge include/linux/memcontrol.h:686 [inline]
 shmem_add_to_page_cache+0x8d3/0x1b80 mm/shmem.c:784
 shmem_get_folio_gfp+0x1037/0x2b40 mm/shmem.c:2071
 shmem_get_folio mm/shmem.c:2164 [inline]
 shmem_write_begin+0xf2/0x430 mm/shmem.c:2706
 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4027
 shmem_file_write_iter+0xfb/0x120 mm/shmem.c:2883
 call_write_iter include/linux/fs.h:2019 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_write+0x151/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa0c8969d8e
RSP: 002b:00007fa0c980bd98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fa0c980c6c0 RCX: 00007fa0c8969d8e
RDX: 0000000001000000 RSI: 00007fa0be7f7000 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa0c980bea0
R13: 0000000000000000 R14: 00007fa0be7f7000 R15: 00007fa0c980bee0
 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g40933 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:27120 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5393 [inline]
 __schedule+0x156f/0x4720 kernel/sched/core.c:6722
 schedule+0xbd/0x170 kernel/sched/core.c:6796
 schedule_timeout+0x188/0x2d0 kernel/time/timer.c:2168
 rcu_gp_fqs_loop+0x30d/0x15e0 kernel/rcu/tree.c:1667
 rcu_gp_kthread+0x9e/0x400 kernel/rcu/tree.c:1866
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 8053 Comm: syz.9.462 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:99 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:227 [inline]
RIP: 0010:unwind_next_frame+0x4fb/0x2990 arch/x86/kernel/unwind_orc.c:494
Code: 0f 47 d8 49 0f 46 ef 49 39 dd 77 1e e8 ee f5 4b 00 eb 96 44 89 f9 80 e1 07 80 c1 03 38 c1 7c bf 4c 89 ff e8 67 fe a4 00 eb b5 <e8> d0 f5 4b 00 48 2b 6c 24 40 48 89 e9 4c 8b 2c 24 49 bf 00 00 00
RSP: 0018:ffffc900032676d8 EFLAGS: 00000212
RAX: ffffffff8fa5bbf8 RBX: ffffffff8fa5bbfc RCX: ffff88802b1f3c00
RDX: 0000000000000002 RSI: ffffffff81e01489 RDI: ffffffff81e013df
RBP: ffffffff8fa5bbfc R08: ffffc90003267870 R09: 0000000000000004
R10: 0000000000000004 R11: 0000000000000002 R12: ffffffff81e013df
R13: ffffffff8fa5bc00 R14: ffffffff81e01489 R15: ffffffff8fa5bbfc
FS:  00007f4fb01f66c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c29dcdb CR3: 000000006acb5000 CR4: 00000000003506f0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_stack_walk+0x144/0x190 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522
 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1833 [inline]
 slab_free_freelist_hook+0x154/0x240 mm/slub.c:1859
 slab_free mm/slub.c:3853 [inline]
 __kmem_cache_free+0xba/0x1f0 mm/slub.c:3866
 proc_sys_call_handler+0x503/0x6c0 fs/proc/proc_sysctl.c:611
 call_write_iter include/linux/fs.h:2019 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_write+0x151/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4fb1fa9559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4fb01f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f4fb2225fa0 RCX: 00007f4fb1fa9559
RDX: 0000000000000003 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007f4fb2038136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4fb2226038 R14: 00007f4fb2225fa0 R15: 00007ffd84fa7028
 </TASK>
sched: RT throttling activated

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/18 23:22 linux-6.6.y 5139929c698c 2006bdcc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in shmem_file_write_iter
2026/10/08 07:01 linux-6.6.y a91a6aa9253c 4f6a9fcf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in shmem_file_write_iter
2026/10/05 01:35 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in shmem_file_write_iter
2026/08/08 11:51 linux-6.6.y 6436c12a2ced 5d63f80b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in shmem_file_write_iter
2026/07/31 20:44 linux-6.6.y a1153c0deb44 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in shmem_file_write_iter
* Struck through repros no longer work on HEAD.