================================================================== BUG: KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu read-write to 0xffffffff86f65b90 of 4 bytes by interrupt on cpu 1: fprop_new_period+0xaa/0xe0 lib/flex_proportions.c:79 writeout_period+0x59/0xe0 mm/page-writeback.c:613 call_timer_fn+0x35/0x290 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x46c/0x650 kernel/time/timer.c:2022 run_timer_softirq+0x31/0x40 kernel/time/timer.c:2037 __do_softirq+0xc1/0x265 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 should_watch kernel/kcsan/core.c:280 [inline] check_access kernel/kcsan/core.c:752 [inline] __tsan_read8+0x113/0x180 kernel/kcsan/core.c:1025 io_submit_add_bh fs/ext4/page-io.c:425 [inline] ext4_bio_write_folio+0x81c/0x8d0 fs/ext4/page-io.c:563 mpage_submit_folio fs/ext4/inode.c:1889 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2135 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2275 [inline] ext4_do_writepages+0x1416/0x21e0 fs/ext4/inode.c:2703 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2792 do_writepages+0x1c5/0x340 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:393 __filemap_fdatawrite_range mm/filemap.c:426 [inline] __filemap_fdatawrite mm/filemap.c:432 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:459 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3056 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x303/0x600 fs/file_table.c:378 ____fput+0x15/0x20 fs/file_table.c:406 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86f65b90 of 4 bytes by task 23491 on cpu 0: fprop_reflect_period_percpu+0x22/0x1a0 lib/flex_proportions.c:188 __fprop_add_percpu lib/flex_proportions.c:219 [inline] __fprop_add_percpu_max+0x58/0x180 lib/flex_proportions.c:277 wb_domain_writeout_add mm/page-writeback.c:560 [inline] __wb_writeout_add+0x7e/0x1d0 mm/page-writeback.c:584 __folio_end_writeback+0x26f/0x500 mm/page-writeback.c:2983 folio_end_writeback+0x5b/0x150 mm/filemap.c:1616 ext4_finish_bio+0x3f2/0x870 fs/ext4/page-io.c:145 ext4_release_io_end+0x8c/0x1e0 fs/ext4/page-io.c:160 ext4_end_io_end fs/ext4/page-io.c:194 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:259 [inline] ext4_end_io_rsv_work+0x2d3/0x360 fs/ext4/page-io.c:273 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00000259 -> 0x0000025a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 23491 Comm: kworker/u4:26 Not tainted 6.4.0-syzkaller-04247-g3a8a670eeeaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work ==================================================================