================================================================== BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch write to 0xffff8881027c0540 of 8 bytes by task 1159 on cpu 0: percpu_counter_add_batch+0x9c/0xd0 lib/percpu_counter.c:91 __add_wb_stat include/linux/backing-dev.h:70 [inline] inc_wb_stat include/linux/backing-dev.h:75 [inline] __wb_writeout_inc mm/page-writeback.c:592 [inline] test_clear_page_writeback+0x37c/0x600 mm/page-writeback.c:2789 end_page_writeback+0xd7/0x1b0 mm/filemap.c:1603 ext4_finish_bio+0x3e2/0x430 fs/ext4/page-io.c:143 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:158 ext4_end_io_end fs/ext4/page-io.c:192 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:257 [inline] ext4_end_io_rsv_work+0x306/0x360 fs/ext4/page-io.c:271 process_one_work+0x402/0x910 kernel/workqueue.c:2297 worker_thread+0x636/0xae0 kernel/workqueue.c:2444 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 read to 0xffff8881027c0540 of 8 bytes by task 57 on cpu 1: percpu_counter_read include/linux/percpu_counter.h:72 [inline] __wb_update_bandwidth+0x9f/0x470 mm/page-writeback.c:1353 wb_update_bandwidth+0x46/0x70 mm/page-writeback.c:1380 wb_update_bandwidth_workfn+0x18/0x20 mm/backing-dev.c:279 process_one_work+0x402/0x910 kernel/workqueue.c:2297 worker_thread+0x636/0xae0 kernel/workqueue.c:2444 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 value changed: 0x0000000000018610 -> 0x0000000000018620 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 57 Comm: kworker/u4:2 Not tainted 5.15.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_update_bandwidth_workfn ==================================================================