================================================================== BUG: KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu read-write to 0xffffffff86ea03b0 of 4 bytes by interrupt on cpu 1: fprop_new_period+0xf7/0x170 lib/flex_proportions.c:83 writeout_period+0x55/0xe0 mm/page-writeback.c:612 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1474 expire_timers+0x116/0x240 kernel/time/timer.c:1519 __run_timers+0x350/0x400 kernel/time/timer.c:1790 run_timer_softirq+0x56/0x60 kernel/time/timer.c:1805 __do_softirq+0x158/0x2e3 kernel/softirq.c:571 __irq_exit_rcu kernel/softirq.c:650 [inline] irq_exit_rcu+0x41/0x70 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 kcsan_setup_watchpoint+0x3e9/0x3f0 kernel/kcsan/core.c:694 __import_iovec+0x31/0x290 lib/iov_iter.c:1948 import_iovec+0xb8/0xd0 lib/iov_iter.c:2013 copy_msghdr_from_user net/socket.c:2430 [inline] recvmsg_copy_msghdr net/socket.c:2677 [inline] ___sys_recvmsg net/socket.c:2749 [inline] do_recvmmsg+0x4e7/0xa30 net/socket.c:2847 __sys_recvmmsg net/socket.c:2926 [inline] __do_sys_recvmmsg net/socket.c:2949 [inline] __se_sys_recvmmsg net/socket.c:2942 [inline] __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2942 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 read to 0xffffffff86ea03b0 of 4 bytes by task 4265 on cpu 0: fprop_reflect_period_percpu+0x22/0x1a0 lib/flex_proportions.c:192 __fprop_add_percpu lib/flex_proportions.c:223 [inline] __fprop_add_percpu_max+0x54/0x180 lib/flex_proportions.c:281 wb_domain_writeout_add mm/page-writeback.c:559 [inline] __wb_writeout_add+0x7e/0x1d0 mm/page-writeback.c:583 __folio_end_writeback+0x2f4/0x540 mm/page-writeback.c:2902 folio_end_writeback+0x57/0x130 mm/filemap.c:1646 end_page_writeback+0x3b/0xe0 mm/folio-compat.c:26 ext4_finish_bio+0x421/0x520 fs/ext4/page-io.c:145 ext4_release_io_end+0x98/0x200 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+0x319/0x3a0 fs/ext4/page-io.c:273 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x000002c7 -> 0x000002c8 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 4265 Comm: kworker/u4:4 Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work ==================================================================