================================================================== BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch read-write to 0xffff88810206c140 of 8 bytes by task 23729 on cpu 1: percpu_counter_add_batch+0xc9/0x140 lib/percpu_counter.c:96 wb_stat_mod include/linux/backing-dev.h:67 [inline] __wb_writeout_add+0x4c/0x1d0 mm/page-writeback.c:583 __folio_end_writeback+0x21b/0x4a0 mm/page-writeback.c:2963 folio_end_writeback+0x74/0x1f0 mm/filemap.c:1599 ext4_finish_bio+0x45c/0x8c0 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 kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 read to 0xffff88810206c140 of 8 bytes by task 1663 on cpu 0: percpu_counter_read include/linux/percpu_counter.h:110 [inline] __wb_update_bandwidth+0x9b/0x5c0 mm/page-writeback.c:1462 wb_update_bandwidth+0x55/0x70 mm/page-writeback.c:1489 wb_update_bandwidth_workfn+0x1c/0x20 mm/backing-dev.c:405 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 value changed: 0x0000000000077070 -> 0x0000000000077080 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1663 Comm: kworker/u4:5 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: writeback wb_update_bandwidth_workfn ==================================================================