================================================================== BUG: KCSAN: data-race in calc_wb_limits.part.0 / wbt_track read to 0xffff888129eb5004 of 4 bytes by task 4473 on cpu 1: rwb_enabled block/blk-wbt.c:80 [inline] bio_to_wbt_flags block/blk-wbt.c:551 [inline] wbt_track+0x39/0xa0 block/blk-wbt.c:600 __rq_qos_track+0x52/0x80 block/blk-rq-qos.c:81 rq_qos_track block/blk-rq-qos.h:189 [inline] blk_mq_make_request+0x32e/0xf60 block/blk-mq.c:1945 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 ext4_io_submit+0xdf/0x110 fs/ext4/page-io.c:384 ext4_writepages+0x98e/0x2500 fs/ext4/inode.c:2728 do_writepages+0x6b/0x170 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421 file_write_and_wait_range+0xfd/0x160 mm/filemap.c:782 ext4_sync_file+0x266/0xaf0 fs/ext4/fsync.c:153 vfs_fsync_range+0x82/0x150 fs/sync.c:197 generic_write_sync include/linux/fs.h:2856 [inline] ext4_buffered_write_iter+0x222/0x290 fs/ext4/file.c:259 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547 call_write_iter include/linux/fs.h:1902 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x530/0x840 fs/splice.c:760 do_splice_from fs/splice.c:863 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1037 splice_direct_to_actor+0x22b/0x540 fs/splice.c:992 do_splice_direct+0x161/0x1e0 fs/splice.c:1080 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1519 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0xbe/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888129eb5004 of 4 bytes by interrupt on cpu 0: calc_wb_limits.part.0+0x7b/0xb0 block/blk-wbt.c:304 calc_wb_limits block/blk-wbt.c:298 [inline] scale_up block/blk-wbt.c:313 [inline] scale_up+0x7f/0x250 block/blk-wbt.c:309 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+0xc0c/0xcd0 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 __read_once_size include/linux/compiler.h:232 [inline] check_kcov_mode kernel/kcov.c:155 [inline] write_comp_data+0x1e/0x70 kernel/kcov.c:208 tomoyo_domain_quota_is_ok+0x257/0x2b0 security/tomoyo/util.c:1068 tomoyo_supervisor+0x22b/0xd20 security/tomoyo/common.c:2087 tomoyo_audit_path2_log security/tomoyo/file.c:182 [inline] tomoyo_path2_perm+0x44a/0x4c0 security/tomoyo/file.c:943 tomoyo_path_rename+0x95/0xd0 security/tomoyo/tomoyo.c:285 security_path_rename+0x17e/0x1e0 security/security.c:1079 do_renameat2+0x6ea/0xa50 fs/namei.c:4627 __do_sys_rename fs/namei.c:4677 [inline] __se_sys_rename fs/namei.c:4675 [inline] __x64_sys_rename+0x47/0x60 fs/namei.c:4675 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28918 Comm: udevd Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================