syzbot


KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (12)

Status: moderation: reported on 2026/06/09 11:24
Subsystems: mm fs
Labels: race:benign
[Documentation on labels]
Reported-by: syzbot+4aa04afa96d122358ff0@syzkaller.appspotmail.com
First crash: 21h47m, last: 21h47m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
626f9d19-39fc-4cfa-b9ed-b6e41ee5b7bb assessment-kcsan Benign: ✅ KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (12) 2026/06/09 14:57 2026/06/09 14:57 2026/06/09 15:25 c36c07f6c1f2230a36374cbd22235f635e8f9284
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (7) fs mm 6 5 1447d 1526d 0/29 auto-closed as invalid on 2022/07/28 18:16
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (2) fs mm 6 2 2029d 2010d 0/29 auto-closed as invalid on 2020/12/23 11:14
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (5) fs mm 6 2 1775d 1775d 0/29 auto-closed as invalid on 2021/09/04 07:15
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (3) fs mm 6 2 1951d 1983d 0/29 auto-closed as invalid on 2021/03/11 15:36
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (6) mm fs 6 1 1566d 1566d 0/29 auto-closed as invalid on 2022/04/01 06:25
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (9) mm fs 6 8 1036d 1118d 0/29 auto-obsoleted due to no activity on 2023/09/13 06:09
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (8) fs mm 6 20 1162d 1362d 0/29 auto-obsoleted due to no activity on 2023/05/10 03:18
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (11) fs mm 6 1 710d 710d 0/29 auto-obsoleted due to no activity on 2024/08/04 03:47
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu fs mm 6 1 2098d 2098d 0/29 auto-closed as invalid on 2020/10/15 13:11
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (4) fs mm 6 3 1839d 1906d 0/29 auto-closed as invalid on 2021/07/02 00:21
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (10) mm fs 6 31 752d 913d 0/29 auto-obsoleted due to no activity on 2024/06/22 10:03

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu

read-write to 0xffffffff893c2e40 of 4 bytes by interrupt on cpu 0:
 fprop_new_period+0xa4/0x110 lib/flex_proportions.c:80
 writeout_period+0x5a/0xe0 mm/page-writeback.c:607
 call_timer_fn+0x3b/0x240 kernel/time/timer.c:1748
 expire_timers kernel/time/timer.c:1799 [inline]
 __run_timers kernel/time/timer.c:2374 [inline]
 __run_timer_base+0x415/0x5f0 kernel/time/timer.c:2386
 run_timer_base kernel/time/timer.c:2395 [inline]
 run_timer_softirq+0x45/0x70 kernel/time/timer.c:2406
 handle_softirqs+0xb9/0x280 kernel/softirq.c:622
 __do_softirq kernel/softirq.c:656 [inline]
 invoke_softirq kernel/softirq.c:496 [inline]
 __irq_exit_rcu+0x42/0xd0 kernel/softirq.c:735
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline]
 sysvec_apic_timer_interrupt+0x74/0x80 arch/x86/kernel/apic/apic.c:1061
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
 kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705
 step_into fs/namei.c:2142 [inline]
 walk_component fs/namei.c:2284 [inline]
 link_path_walk+0x6db/0xe30 fs/namei.c:2652
 path_openat+0x1c6/0x2050 fs/namei.c:4854
 do_file_open+0x16c/0x290 fs/namei.c:4887
 do_sys_openat2+0x94/0x130 fs/open.c:1364
 do_sys_open fs/open.c:1370 [inline]
 __do_sys_openat fs/open.c:1386 [inline]
 __se_sys_openat fs/open.c:1381 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1381
 x64_sys_call+0x1e39/0x3020 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff893c2e40 of 4 bytes by task 30 on cpu 1:
 fprop_reflect_period_percpu+0x22/0x190 lib/flex_proportions.c:112
 __fprop_add_percpu lib/flex_proportions.c:143 [inline]
 __fprop_add_percpu_max+0x57/0x190 lib/flex_proportions.c:201
 wb_domain_writeout_add mm/page-writeback.c:554 [inline]
 __wb_writeout_add+0x75/0x1b0 mm/page-writeback.c:578
 __folio_end_writeback+0x14b/0x360 mm/page-writeback.c:2970
 folio_end_writeback_no_dropbehind+0x6d/0x1d0 mm/filemap.c:1667
 folio_end_writeback+0x1c/0x70 mm/filemap.c:1693
 ext4_finish_bio+0x450/0x760 fs/ext4/page-io.c:144
 ext4_release_io_end+0x9f/0x1f0 fs/ext4/page-io.c:159
 ext4_end_io_end+0x18d/0x240 fs/ext4/page-io.c:210
 ext4_do_flush_completed_IO fs/ext4/page-io.c:290 [inline]
 ext4_end_io_rsv_work+0x15b/0x1f0 fs/ext4/page-io.c:305
 process_one_work kernel/workqueue.c:3314 [inline]
 process_scheduled_works+0x4f0/0x9c0 kernel/workqueue.c:3397
 worker_thread+0x58a/0x780 kernel/workqueue.c:3478
 kthread+0x22a/0x280 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000005 -> 0x00000006

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 30 Comm: kworker/u8:1 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/09 11:24 upstream 2d3090a8aeb5 c36c07f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu
* Struck through repros no longer work on HEAD.