================================================================== BUG: KCSAN: data-race in wb_timer_fn / wbt_issue write to 0xffff888129889604 of 4 bytes by interrupt on cpu 0: calc_wb_limits block/blk-wbt.c:304 [inline] scale_up block/blk-wbt.c:313 [inline] wb_timer_fn+0x42d/0xa40 block/blk-wbt.c:382 blk_stat_timer_fn+0x3f4/0x410 block/blk-stat.c:99 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1413 expire_timers+0x116/0x290 kernel/time/timer.c:1458 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x44/0x70 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] __set_page_dirty+0x189/0x1d0 fs/buffer.c:612 mark_buffer_dirty+0x12e/0x260 fs/buffer.c:1137 __block_commit_write fs/buffer.c:2084 [inline] block_write_end+0x13d/0x220 fs/buffer.c:2162 generic_write_end+0x5c/0x250 fs/buffer.c:2176 ext4_da_write_end+0x57e/0x760 fs/ext4/inode.c:3091 generic_perform_write+0x23b/0x390 mm/filemap.c:3414 ext4_buffered_write_iter+0x2cc/0x3b0 fs/ext4/file.c:269 ext4_file_write_iter+0x768/0x1060 include/linux/fs.h:784 call_write_iter include/linux/fs.h:1882 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x665/0x6f0 fs/read_write.c:578 ksys_write+0xce/0x180 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:640 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888129889604 of 4 bytes by task 3448 on cpu 1: rwb_enabled block/blk-wbt.c:80 [inline] wbt_issue+0x20/0xd0 block/blk-wbt.c:599 __rq_qos_issue+0x3b/0x70 block/blk-rq-qos.c:54 rq_qos_issue block/blk-rq-qos.h:159 [inline] blk_mq_start_request+0xd2/0x260 block/blk-mq.c:740 loop_queue_rq+0x3c/0x220 drivers/block/loop.c:2007 blk_mq_dispatch_rq_list+0x512/0xd10 block/blk-mq.c:1387 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline] blk_mq_do_dispatch_sched+0x370/0x610 block/blk-mq-sched.c:214 __blk_mq_sched_dispatch_requests+0x1fd/0x2a0 block/blk-mq-sched.c:325 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:356 __blk_mq_run_hw_queue+0xee/0x1c0 block/blk-mq.c:1534 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:1812 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x20d/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3448 Comm: kworker/1:1H Not tainted 5.9.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kblockd blk_mq_run_work_fn ==================================================================