================================================================== BUG: KCSAN: data-race in percpu_counter_add_batch / wb_over_bg_thresh read to 0xffff88811fb84068 of 8 bytes by task 8074 on cpu 1: wb_stat include/linux/backing-dev.h:88 [inline] wb_over_bg_thresh+0x247/0x490 mm/page-writeback.c:1948 wb_check_background_flush fs/fs-writeback.c:1949 [inline] wb_do_writeback fs/fs-writeback.c:2047 [inline] wb_workfn+0x3b3/0x970 fs/fs-writeback.c:2075 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269 worker_thread+0xa0/0x800 kernel/workqueue.c:2415 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 write to 0xffff88811fb84068 of 8 bytes by task 10571 on cpu 0: percpu_counter_add_batch+0xca/0x150 lib/percpu_counter.c:91 __add_wb_stat include/linux/backing-dev.h:73 [inline] inc_wb_stat include/linux/backing-dev.h:78 [inline] account_page_dirtied+0x1f7/0x4a0 mm/page-writeback.c:2427 __set_page_dirty+0x8a/0x270 fs/buffer.c:583 mark_buffer_dirty+0x27f/0x2c0 fs/buffer.c:1112 ext4_block_write_begin+0x714/0xba0 fs/ext4/inode.c:1209 ext4_da_write_begin+0x1da/0x7e0 fs/ext4/inode.c:3094 generic_perform_write+0x136/0x320 mm/filemap.c:3305 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3434 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1020 splice_direct_to_actor+0x215/0x510 fs/splice.c:975 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10571 Comm: syz-executor.5 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================