================================================================== BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch write to 0xffff88812b13ed58 of 8 bytes by interrupt on cpu 1: 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] __wb_writeout_inc mm/page-writeback.c:604 [inline] test_clear_page_writeback+0x508/0x790 mm/page-writeback.c:2737 end_page_writeback+0x9e/0x190 mm/filemap.c:1339 end_buffer_async_write+0x2dc/0x3a0 fs/buffer.c:389 end_bio_bh_io_sync+0x87/0xb0 fs/buffer.c:3018 bio_endio+0x2fa/0x400 block/bio.c:1821 req_bio_endio block/blk-core.c:245 [inline] blk_update_request+0x427/0x7b0 block/blk-core.c:1464 scsi_end_request+0x6b/0x360 drivers/scsi/scsi_lib.c:576 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1476 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] do_IRQ+0x81/0x130 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 preempt_count arch/x86/include/asm/preempt.h:26 [inline] check_kcov_mode kernel/kcov.c:153 [inline] __sanitizer_cov_trace_pc+0x14/0x50 kernel/kcov.c:187 do_dentry_open+0x22b/0x970 fs/open.c:788 vfs_open+0x62/0x80 fs/open.c:914 do_last fs/namei.c:3420 [inline] path_openat+0xf9f/0x3580 fs/namei.c:3537 do_filp_open+0x11e/0x1b0 fs/namei.c:3567 do_sys_open+0x3b3/0x4f0 fs/open.c:1097 ksys_open include/linux/syscalls.h:1385 [inline] __do_sys_creat fs/open.c:1155 [inline] __se_sys_creat fs/open.c:1153 [inline] __x64_sys_creat+0x45/0x60 fs/open.c:1153 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812b13ed58 of 8 bytes by task 14578 on cpu 0: __wb_update_bandwidth+0xb0/0x3c0 mm/page-writeback.c:1365 wb_update_bandwidth+0x90/0xc0 mm/page-writeback.c:1399 wb_writeback+0x21d/0x6a0 fs/fs-writeback.c:1897 wb_check_old_data_flush fs/fs-writeback.c:1996 [inline] wb_do_writeback fs/fs-writeback.c:2049 [inline] wb_workfn+0x7bb/0x970 fs/fs-writeback.c:2078 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264 worker_thread+0xa0/0x800 kernel/workqueue.c:2410 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: 0 PID: 14578 Comm: kworker/u4:2 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================