================================================================== BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch write to 0xffff888102f0d518 of 8 bytes by task 3938 on cpu 1: percpu_counter_add_batch+0xa4/0x110 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] account_page_dirtied+0x196/0x300 mm/page-writeback.c:2436 __set_page_dirty+0xbb/0x1d0 fs/buffer.c:608 mark_buffer_dirty+0x126/0x230 fs/buffer.c:1137 __block_commit_write fs/buffer.c:2084 [inline] block_write_end+0x13d/0x230 fs/buffer.c:2162 generic_write_end+0x5c/0x240 fs/buffer.c:2176 ext4_da_write_end+0x59b/0x760 fs/ext4/inode.c:3111 generic_perform_write+0x23e/0x3a0 mm/filemap.c:3419 ext4_buffered_write_iter+0x2e5/0x3e0 fs/ext4/file.c:270 ext4_file_write_iter+0x47a/0x1060 fs/ext4/file.c:503 call_write_iter include/linux/fs.h:1901 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x6f0/0x7e0 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888102f0d518 of 8 bytes by task 28493 on cpu 0: percpu_counter_read include/linux/percpu_counter.h:72 [inline] __wb_update_bandwidth+0x8d/0x5d0 mm/page-writeback.c:1358 wb_update_bandwidth+0x59/0x80 mm/page-writeback.c:1393 wb_writeback+0x2a3/0x660 fs/fs-writeback.c:1901 wb_check_old_data_flush fs/fs-writeback.c:2000 [inline] wb_do_writeback+0x520/0x5d0 fs/fs-writeback.c:2053 wb_workfn+0xc8/0x430 fs/fs-writeback.c:2082 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28493 Comm: kworker/u4:3 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================