================================================================== BUG: KCSAN: data-race in wb_timer_fn / wbt_track write to 0xffff888103491504 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+0x403/0xa00 block/blk-wbt.c:382 blk_stat_timer_fn+0x3f4/0x410 block/blk-stat.c:99 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1415 expire_timers+0x116/0x260 kernel/time/timer.c:1460 __run_timers+0x338/0x3d0 kernel/time/timer.c:1757 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1770 __do_softirq+0x198/0x331 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x5b/0x70 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:631 arch_local_irq_enable arch/x86/include/asm/paravirt.h:663 [inline] devkmsg_poll+0x151/0x170 kernel/printk/printk.c:877 vfs_poll include/linux/poll.h:90 [inline] ep_item_poll fs/eventpoll.c:885 [inline] ep_send_events_proc+0x227/0x5f0 fs/eventpoll.c:1742 ep_scan_ready_list+0x13e/0x330 fs/eventpoll.c:712 ep_send_events fs/eventpoll.c:1786 [inline] ep_poll fs/eventpoll.c:1942 [inline] do_epoll_wait+0x555/0x880 fs/eventpoll.c:2323 __do_sys_epoll_wait fs/eventpoll.c:2333 [inline] __se_sys_epoll_wait fs/eventpoll.c:2330 [inline] __x64_sys_epoll_wait+0x4d/0x60 fs/eventpoll.c:2330 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888103491504 of 4 bytes by task 8719 on cpu 1: rwb_enabled block/blk-wbt.c:80 [inline] bio_to_wbt_flags block/blk-wbt.c:543 [inline] wbt_track+0x23/0x130 block/blk-wbt.c:592 __rq_qos_track+0x50/0x90 block/blk-rq-qos.c:81 rq_qos_track block/blk-rq-qos.h:189 [inline] blk_mq_submit_bio+0x2c0/0x1020 block/blk-mq.c:2187 __submit_bio_noacct_mq block/blk-core.c:1022 [inline] submit_bio_noacct+0x77d/0x930 block/blk-core.c:1055 submit_bio+0x1f3/0x360 block/blk-core.c:1125 submit_bh_wbc+0x38c/0x3d0 fs/buffer.c:3054 __block_write_full_page+0x618/0x9e0 fs/buffer.c:1810 block_write_full_page+0x162/0x1a0 fs/buffer.c:2980 blkdev_writepage+0x20/0x30 fs/block_dev.c:627 __writepage+0x32/0xc0 mm/page-writeback.c:2311 write_cache_pages+0x4bc/0x7f0 mm/page-writeback.c:2246 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337 blkdev_writepages+0x19/0x20 fs/block_dev.c:1946 do_writepages+0x7b/0x150 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422 __filemap_fdatawrite mm/filemap.c:430 [inline] filemap_flush+0x1f/0x30 mm/filemap.c:457 __sync_blockdev+0x69/0x70 fs/block_dev.c:508 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem+0xcb/0x160 fs/sync.c:64 ovl_sync_fs+0x74/0x90 fs/overlayfs/super.c:281 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x112/0x160 fs/sync.c:67 generic_shutdown_super+0x3c/0x1f0 fs/super.c:448 kill_anon_super+0x23/0x40 fs/super.c:1108 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125 task_work_run+0x8e/0x110 kernel/task_work.c:141 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:165 [inline] exit_to_user_mode_prepare+0x1a4/0x200 kernel/entry/common.c:192 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:267 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8719 Comm: syz-executor.3 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================