================================================================== BUG: KCSAN: data-race in rq_depth_calc_max_depth / wbt_inflight_cb write to 0xffff88812917f9e0 of 4 bytes by interrupt on cpu 0: rq_depth_calc_max_depth+0xa5/0x160 block/blk-rq-qos.c:157 rq_depth_scale_up+0x71/0xa0 block/blk-rq-qos.c:174 scale_up+0x40/0x250 block/blk-wbt.c:311 wb_timer_fn+0x2cd/0xad0 block/blk-wbt.c:393 blk_stat_timer_fn+0x3b0/0x3d0 block/blk-stat.c:99 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xbe3/0xcb0 kernel/time/timer.c:1786 __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] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 __sanitizer_cov_trace_pc+0x48/0x50 kernel/kcov.c:194 iov_iter_init+0x36/0x120 lib/iov_iter.c:445 new_sync_write+0x364/0x4a0 fs/read_write.c:481 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0x17b/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812917f9e0 of 4 bytes by task 7939 on cpu 1: get_limit block/blk-wbt.c:481 [inline] wbt_inflight_cb+0xc0/0x230 block/blk-wbt.c:503 rq_qos_wait+0x283/0x320 block/blk-rq-qos.c:266 __wbt_wait block/blk-wbt.c:526 [inline] wbt_wait+0x161/0x250 block/blk-wbt.c:591 __rq_qos_throttle+0x47/0x70 block/blk-rq-qos.c:72 rq_qos_throttle block/blk-rq-qos.h:182 [inline] blk_mq_make_request+0x29c/0xf60 block/blk-mq.c:1932 generic_make_request block/blk-core.c:1066 [inline] generic_make_request+0x196/0x700 block/blk-core.c:1008 submit_bio+0x96/0x3c0 block/blk-core.c:1192 submit_bh_wbc+0x40f/0x460 fs/buffer.c:3135 __block_write_full_page+0x4e9/0x870 fs/buffer.c:1807 block_write_full_page+0x1c0/0x1e0 fs/buffer.c:2993 blkdev_writepage+0x2e/0x40 fs/block_dev.c:609 __writepage+0x40/0xb0 mm/page-writeback.c:2303 write_cache_pages+0x47a/0xb40 mm/page-writeback.c:2238 generic_writepages mm/page-writeback.c:2329 [inline] generic_writepages+0x79/0xc0 mm/page-writeback.c:2318 blkdev_writepages+0x27/0x40 fs/block_dev.c:2060 do_writepages+0x6b/0x170 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421 __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_flush+0x2d/0x40 mm/filemap.c:456 __sync_blockdev fs/block_dev.c:490 [inline] __sync_blockdev+0x81/0x90 fs/block_dev.c:485 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem+0x116/0x1a0 fs/sync.c:64 ovl_sync_fs+0x92/0xa0 fs/overlayfs/super.c:276 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x168/0x1a0 fs/sync.c:48 generic_shutdown_super+0x6b/0x270 fs/super.c:448 kill_anon_super+0x2f/0x50 fs/super.c:1106 deactivate_locked_super+0x64/0xb0 fs/super.c:335 deactivate_super fs/super.c:366 [inline] deactivate_super+0xca/0xe0 fs/super.c:362 cleanup_mnt+0x291/0x340 fs/namespace.c:1102 __cleanup_mnt+0x1f/0x30 fs/namespace.c:1109 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7939 Comm: syz-executor.4 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================