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: 22d, last: 14d
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 549d 818d 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 198d 402d 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 94 3d11h 305d 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 969d 1012d 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): P18406/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=141705, q=348 ncpus=1)
task:syz.0.3711      state:R  running task     stack:26280 pid:18406 ppid:16168  flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 preempt_schedule_irq+0xbf/0x150 kernel/sched/core.c:7011
 irqentry_exit+0x67/0x70 kernel/entry/common.c:438
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:lock_acquire+0x208/0x420 kernel/locking/lockdep.c:5758
Code: f7 84 24 80 00 00 00 00 02 00 00 43 c6 44 3c 04 f8 0f 85 f0 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 43 c7 44 3c 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc9000466f6e0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 48193888233c0f00
RDX: 0000000000000000 RSI: ffffffff8acadd60 RDI: ffffffff8b1d0ca0
RBP: ffffc9000466f7f0 R08: dffffc0000000000 R09: 1ffffffff223d6a0
R10: dffffc0000000000 R11: fffffbfff223d6a1 R12: 1ffff920008cdee8
R13: ffffffff8d131da0 R14: 0000000000000246 R15: dffffc0000000000
 rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 rcu_read_lock include/linux/rcupdate.h:786 [inline]
 get_mem_cgroup_from_mm+0x54/0x290 mm/memcontrol.c:1089
 __mem_cgroup_charge+0x15/0x80 mm/memcontrol.c:7110
 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:4036
 shmem_file_write_iter+0xfb/0x120 mm/shmem.c:2883
 call_write_iter include/linux/fs.h:2018 [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:0x7fe01b99e0d9
RSP: 002b:00007fe01c78b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe01bc25fa0 RCX: 00007fe01b99e0d9
RDX: 00000000ffffff6a RSI: 0000200000000000 RDI: 0000000000000005
RBP: 00007fe01ba35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe01bc26038 R14: 00007fe01bc25fa0 R15: 00007ffe196958d8
 </TASK>
rcu: rcu_preempt kthread starved for 10352 jiffies! g141705 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:26664 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 schedule+0xbd/0x170 kernel/sched/core.c:6775
 schedule_timeout+0x188/0x2d0 kernel/time/timer.c:2168
 rcu_gp_fqs_loop+0x30d/0x1590 kernel/rcu/tree.c:1667
 rcu_gp_kthread+0x9d/0x3b0 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: 18404 Comm: syz.8.3710 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:lock_release+0x594/0x8c0 kernel/locking/lockdep.c:5778
Code: 00 00 00 f7 84 24 80 00 00 00 00 02 00 00 43 c6 44 2f 04 f8 75 70 f7 44 24 50 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 2f 00 00 00 00 43 c7 44 2f 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc900034cfa60 EFLAGS: 00000206
RAX: 0000000000000001 RBX: ffffffffffffffff RCX: 12775f364028e700
RDX: 0000000000000000 RSI: ffffffff8acadd60 RDI: ffffffff8b1d0ca0
RBP: ffffc900034cfb70 R08: ffffffff8e8c7aef R09: 1ffffffff1d18f5d
R10: dffffc0000000000 R11: fffffbfff1d18f5e R12: ffff88805408e4e0
R13: dffffc0000000000 R14: ffff88805408e4d0 R15: 1ffff92000699f58
FS:  00007fc900c936c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff94e88fed6 CR3: 000000004f2c0000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 __mutex_unlock_slowpath+0xcc/0x6c0 kernel/locking/mutex.c:907
 seccomp_do_user_notification kernel/seccomp.c:1190 [inline]
 __seccomp_filter+0xc33/0x1ca0 kernel/seccomp.c:1284
 syscall_trace_enter+0xa7/0x150 kernel/entry/common.c:72
 do_syscall_64+0x28/0xb0 arch/x86/entry/common.c:72
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc8ffd9e0d9
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:00007fc900c930e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fc900025fa8 RCX: 00007fc8ffd9e0d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fc900025fa8
RBP: 00007fc900025fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc900026038 R14: 00007ffc655bc730 R15: 00007ffc655bc818
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.