syzbot


INFO: rcu detected stall in generic_file_write_iter (2)

Status: upstream: reported on 2024/03/08 18:29
Reported-by: syzbot+bb21d42787b313521a4c@syzkaller.appspotmail.com
First crash: 534d, last: 8d05h
Similar bugs (12)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in generic_file_write_iter (3) mm 1 1 2091d 2091d 0/29 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in generic_file_write_iter (2) exfat 1 2 2306d 2345d 0/29 auto-closed as invalid on 2019/10/25 09:01
upstream BUG: soft lockup in generic_file_write_iter (2) mm 1 8 777d 765d 0/29 auto-obsoleted due to no activity on 2023/10/18 13:34
linux-6.1 INFO: rcu detected stall in generic_file_write_iter (2) 1 7 17d 249d 0/3 upstream: reported on 2024/12/19 01:50
linux-5.15 INFO: rcu detected stall in generic_file_write_iter 1 1 720d 720d 0/3 auto-obsoleted due to no activity on 2023/12/13 17:16
upstream INFO: rcu detected stall in generic_file_write_iter (4) cgroups 1 1 2024d 2020d 0/29 auto-closed as invalid on 2020/05/09 11:43
upstream BUG: soft lockup in generic_file_write_iter net mm fs 1 2 962d 997d 0/29 auto-obsoleted due to no activity on 2023/04/05 19:12
upstream INFO: rcu detected stall in generic_file_write_iter mm 1 58 2369d 2511d 0/29 closed as dup on 2018/10/27 15:28
upstream INFO: rcu detected stall in generic_file_write_iter (5) fs 1 2 1858d 1865d 0/29 auto-closed as invalid on 2020/10/22 01:02
upstream INFO: rcu detected stall in generic_file_write_iter (6) cgroups mm 1 2 1344d 1400d 0/29 closed as invalid on 2022/02/08 09:50
linux-6.1 INFO: rcu detected stall in generic_file_write_iter 1 18 378d 491d 0/3 auto-obsoleted due to no activity on 2024/11/12 08:46
android-5-15 BUG: soft lockup in generic_file_write_iter 1 1 470d 470d 0/2 auto-obsoleted due to no activity on 2024/08/10 08:10

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (1 GPs behind) idle=7f3/1/0x4000000000000002 softirq=17635/17636 fqs=2100 
	(detected by 1, t=10506 jiffies, g=22889, q=662)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7970 Comm: syz.2.1013 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:rcu_read_unlock_special+0x197/0x480 kernel/rcu/tree_plugin.h:639
Code: f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ff e8 06 cd 57 00 4d 8d b5 80 b1 03 00 4d 8b 3f 4d 85 ff <49> bd 00 00 00 00 00 fc ff df 74 31 49 81 c7 e0 00 00 00 4c 89 f8
RSP: 0018:ffffc900000076a0 EFLAGS: 00000046
RAX: 1ffff1100f4bdbb3 RBX: 1ffff92000000ed8 RCX: dffffc0000000000
RDX: 0000000000000100 RSI: ffffffff8a599320 RDI: ffffffff8a5992e0
RBP: ffffc90000007780 R08: dffffc0000000000 R09: fffffbfff1ad2dd6
R10: fffffbfff1ad2dd6 R11: 1ffffffff1ad2dd5 R12: ffffffff8c1207c0
R13: ffff8880b9000000 R14: ffff8880b903b180 R15: 0000000000000000
FS:  00007f09d8d876c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c307f5d CR3: 000000005911b000 CR4: 00000000003506f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 __rcu_read_unlock+0x78/0xd0 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 __perf_event_output kernel/events/core.c:7799 [inline]
 perf_event_output_forward+0x216/0x280 kernel/events/core.c:7808
 __perf_event_overflow+0x364/0x530 kernel/events/core.c:9501
 perf_tp_event+0x32c/0xb50 kernel/events/core.c:10033
 perf_trace_run_bpf_submit+0xf3/0x1c0 kernel/events/core.c:10007
 perf_trace_preemptirq_template+0x2be/0x380 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x108/0x180 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
RIP: 0010:ffs arch/x86/include/asm/bitops.h:297 [inline]
RIP: 0010:handle_softirqs+0x1a9/0x820 kernel/softirq.c:564
Code: 24 78 44 89 64 24 28 0f b7 db 48 c7 c7 c0 fd 09 8a e8 cb c8 5f 08 65 66 c7 05 e1 22 bb 7e 00 00 e8 4c 6c 35 00 fb 89 5c 24 34 <b8> ff ff ff ff 0f bc 44 24 34 41 89 c5 41 ff c5 0f 85 c1 00 00 00
RSP: 0018:ffffc90000007e20 EFLAGS: 00000282
RAX: 27ed13d2b151ec00 RBX: 0000000000000200 RCX: 27ed13d2b151ec00
RDX: dffffc0000000000 RSI: ffffffff8a0b15c0 RDI: ffffffff8a599340
RBP: ffffc90000007f30 R08: dffffc0000000000 R09: fffffbfff1ff6e2c
R10: fffffbfff1ff6e2c R11: 1ffffffff1ff6e2b R12: 000000000000000a
R13: 0000000000000000 R14: ffff88807a5ed940 R15: dffffc0000000000
 __do_softirq kernel/softirq.c:610 [inline]
 invoke_softirq kernel/softirq.c:450 [inline]
 __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/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:__rcu_read_unlock+0x4d/0xd0 kernel/rcu/tree_plugin.h:421
Code: 89 dc 49 c1 ec 03 43 0f b6 04 3c 84 c0 75 48 ff 0b 75 1d 4c 8d b7 40 04 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 84 c0 75 5f <41> 83 3e 00 75 20 43 0f b6 04 3c 84 c0 75 3a 8b 03 3d 00 00 00 40
RSP: 0018:ffffc9000338eef0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88807a5edd7c RCX: 0000000000080000
RDX: ffffc90003bb2000 RSI: 000000000007ffff RDI: ffff88807a5ed940
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ff6e19
R10: fffffbfff1ff6e19 R11: 1ffffffff1ff6e18 R12: 1ffff1100f4bdbaf
R13: 0000000000000bf0 R14: ffff88807a5edd80 R15: dffffc0000000000
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 is_bpf_text_address+0x24f/0x270 kernel/bpf/core.c:727
 kernel_text_address kernel/extable.c:151 [inline]
 __kernel_text_address+0x9a/0x100 kernel/extable.c:105
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf2/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x98/0xe0 kernel/stacktrace.c:122
 save_stack+0xf3/0x1e0 mm/page_owner.c:119
 __set_page_owner+0x41/0x2d0 mm/page_owner.c:181
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192
 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474
 alloc_pages_vma+0x393/0x7c0 mm/mempolicy.c:2146
 shmem_alloc_page mm/shmem.c:1586 [inline]
 shmem_alloc_and_acct_page+0x427/0xb70 mm/shmem.c:1611
 shmem_getpage_gfp+0x14f4/0x2d40 mm/shmem.c:1906
 shmem_getpage mm/shmem.c:151 [inline]
 shmem_write_begin+0xcd/0x1a0 mm/shmem.c:2474
 generic_perform_write+0x2aa/0x530 mm/filemap.c:3785
 __generic_file_write_iter+0x25f/0x4e0 mm/filemap.c:3912
 generic_file_write_iter+0xa6/0x1b0 mm/filemap.c:3944
 call_write_iter include/linux/fs.h:2172 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x712/0xd00 fs/read_write.c:594
 ksys_write+0x14d/0x250 fs/read_write.c:647
 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:0x7f09dab1fbe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f09d8d87038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f09dad46fa0 RCX: 00007f09dab1fbe9
RDX: 000000011ffffce1 RSI: 0000200000000080 RDI: 0000000000000008
RBP: 00007f09daba2e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f09dad47038 R14: 00007f09dad46fa0 R15: 00007ffd2e07f5b8
 </TASK>

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/17 10:48 linux-5.15.y c79648372d02 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in generic_file_write_iter
2025/08/14 23:36 linux-5.15.y c79648372d02 5d8c2ac2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2025/08/12 10:31 linux-5.15.y c79648372d02 c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in generic_file_write_iter
2025/07/17 15:48 linux-5.15.y 89950c454265 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2025/04/21 19:41 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2025/03/19 01:25 linux-5.15.y 0c935c049b5c 22a6c2b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2025/02/07 09:54 linux-5.15.y c16c81c81336 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2025/01/05 20:37 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/11/25 11:35 linux-5.15.y 0a51d2d4527b 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/10/04 02:05 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/10/01 02:03 linux-5.15.y 3a5928702e71 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/09/25 05:30 linux-5.15.y 3a5928702e71 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/09/25 05:25 linux-5.15.y 3a5928702e71 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/25 12:46 linux-5.15.y fa93fa65db6e d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/23 15:54 linux-5.15.y fa93fa65db6e d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/14 05:45 linux-5.15.y 7e89efd3ae1c bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/11 14:11 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/06 05:48 linux-5.15.y 7e89efd3ae1c e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/07/02 15:21 linux-5.15.y 4878aadf2d15 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/06/26 23:11 linux-5.15.y 4878aadf2d15 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/06/20 01:11 linux-5.15.y 4878aadf2d15 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/06/19 05:21 linux-5.15.y 4878aadf2d15 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/06/19 01:58 linux-5.15.y 4878aadf2d15 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/05/24 04:21 linux-5.15.y 83655231580b 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/04/30 16:34 linux-5.15.y b925f60c6ee7 3ce4924c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/04/26 10:25 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/03/08 18:28 linux-5.15.y 574362648507 8e75c913 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in generic_file_write_iter
2024/08/29 09:14 linux-5.15.y fa93fa65db6e ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: rcu detected stall in generic_file_write_iter
* Struck through repros no longer work on HEAD.