================================================================== BUG: KCSAN: data-race in percpu_counter_add_batch / wb_over_bg_thresh write to 0xffff8881299668e0 of 8 bytes by task 22418 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_handle_dirty_metadata+0x284/0x350 fs/ext4/ext4_jbd2.c:298 ext4_do_update_inode fs/ext4/inode.c:5334 [inline] ext4_mark_iloc_dirty+0xdb3/0x1580 fs/ext4/inode.c:5876 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:6055 ext4_ext_tree_init+0x92/0xb0 fs/ext4/extents.c:860 __ext4_new_inode+0x2c29/0x2ec0 fs/ext4/ialloc.c:1169 ext4_symlink+0x30e/0x970 fs/ext4/namei.c:3262 vfs_symlink fs/namei.c:4119 [inline] vfs_symlink+0x218/0x310 fs/namei.c:4105 do_symlinkat+0x1a5/0x1e0 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4165 [inline] __se_sys_symlink fs/namei.c:4163 [inline] __x64_sys_symlink+0x3f/0x50 fs/namei.c:4163 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8881299668e0 of 8 bytes by task 19966 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:1952 [inline] wb_do_writeback fs/fs-writeback.c:2050 [inline] wb_workfn+0x3b3/0x970 fs/fs-writeback.c:2078 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 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19966 Comm: kworker/u4:0 Not tainted 5.4.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================