================================================================== BUG: KCSAN: data-race in wb_timer_fn / wbt_track write to 0xffff888102853d04 of 4 bytes by interrupt on cpu 1: calc_wb_limits block/blk-wbt.c:304 [inline] scale_up block/blk-wbt.c:313 [inline] wb_timer_fn+0x42a/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:1431 expire_timers+0x116/0x260 kernel/time/timer.c:1476 __run_timers+0x358/0x3f0 kernel/time/timer.c:1745 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1758 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 console_unlock+0x8c9/0xb20 kernel/printk/printk.c:2579 vprintk_emit+0x131/0x3e0 kernel/printk/printk.c:2098 vprintk_default+0x22/0x30 kernel/printk/printk.c:2115 vprintk_func+0x11b/0x120 kernel/printk/printk_safe.c:401 printk+0x62/0x82 kernel/printk/printk.c:2146 drop_caches_sysctl_handler+0x17d/0x1a0 fs/drop_caches.c:69 proc_sys_call_handler+0x3dd/0x530 fs/proc/proc_sysctl.c:591 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x6f9/0x7e0 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888102853d04 of 4 bytes by task 8393 on cpu 0: 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+0x2e8/0x1060 block/blk-mq.c:2200 __submit_bio_noacct_mq block/blk-core.c:1014 [inline] submit_bio_noacct+0x7c2/0x9a0 block/blk-core.c:1047 submit_bio+0x200/0x370 block/blk-core.c:1118 write_dev_flush fs/btrfs/disk-io.c:3891 [inline] barrier_all_devices fs/btrfs/disk-io.c:3941 [inline] write_all_supers+0xb13/0x18a0 fs/btrfs/disk-io.c:4036 btrfs_commit_transaction+0xfc8/0x1980 fs/btrfs/transaction.c:2363 btrfs_commit_super+0x8f/0xa0 fs/btrfs/disk-io.c:4210 close_ctree+0x1c0/0x52d fs/btrfs/disk-io.c:4275 btrfs_put_super+0x21/0x30 fs/btrfs/super.c:325 generic_shutdown_super+0xde/0x210 fs/super.c:464 kill_anon_super+0x23/0x40 fs/super.c:1056 btrfs_kill_super+0x26/0x40 fs/btrfs/super.c:2353 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1136 __cleanup_mnt+0x15/0x20 fs/namespace.c:1143 task_work_run+0x8e/0x110 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8393 Comm: syz-executor.5 Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================