================================================================== BUG: KCSAN: data-race in calc_wb_limits.part.0 / wbt_track write to 0xffff88812a68ce04 of 4 bytes by interrupt on cpu 1: calc_wb_limits.part.0+0x70/0xa0 block/blk-wbt.c:304 calc_wb_limits block/blk-wbt.c:298 [inline] scale_up block/blk-wbt.c:313 [inline] scale_up+0x7d/0x250 block/blk-wbt.c:309 wb_timer_fn+0x2d6/0xad0 block/blk-wbt.c:382 blk_stat_timer_fn+0x3af/0x3d0 block/blk-stat.c:99 call_timer_fn+0x58/0x2e0 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0xb14/0xbd0 kernel/time/timer.c:1787 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 should_watch kernel/kcsan/core.c:260 [inline] check_access kernel/kcsan/core.c:581 [inline] __tsan_read1+0xe0/0x110 kernel/kcsan/core.c:767 tomoyo_domain_quota_is_ok+0xec/0x2b0 security/tomoyo/util.c:1037 tomoyo_supervisor+0x1d9/0xc90 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x118/0x150 security/tomoyo/file.c:573 tomoyo_path_perm+0x215/0x350 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x23/0x40 security/tomoyo/tomoyo.c:129 security_inode_getattr+0x97/0xc0 security/security.c:1273 vfs_getattr+0x2c/0x70 fs/stat.c:117 vfs_statx+0x104/0x190 fs/stat.c:201 vfs_lstat include/linux/fs.h:3284 [inline] __do_sys_newlstat+0x50/0xb0 fs/stat.c:364 __se_sys_newlstat fs/stat.c:358 [inline] __x64_sys_newlstat+0x37/0x50 fs/stat.c:358 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812a68ce04 of 4 bytes by task 13546 on cpu 0: rwb_enabled block/blk-wbt.c:80 [inline] bio_to_wbt_flags block/blk-wbt.c:551 [inline] wbt_track+0x34/0x90 block/blk-wbt.c:600 __rq_qos_track+0x4b/0x80 block/blk-rq-qos.c:81 rq_qos_track block/blk-rq-qos.h:189 [inline] blk_mq_make_request+0x32c/0xf60 block/blk-mq.c:2011 generic_make_request block/blk-core.c:1075 [inline] generic_make_request+0x196/0x700 block/blk-core.c:1017 submit_bio+0x8f/0x3a0 block/blk-core.c:1200 mpage_bio_submit fs/mpage.c:66 [inline] mpage_readpages+0x325/0x370 fs/mpage.c:410 blkdev_readpages+0x32/0x50 fs/block_dev.c:621 read_pages+0xa2/0x2d0 mm/readahead.c:126 __do_page_cache_readahead+0x358/0x380 mm/readahead.c:212 force_page_cache_readahead+0x12c/0x1e0 mm/readahead.c:243 page_cache_sync_readahead+0x1d1/0x1e0 mm/readahead.c:522 generic_file_buffered_read mm/filemap.c:2036 [inline] generic_file_read_iter+0xef7/0x14e0 mm/filemap.c:2309 blkdev_read_iter+0xae/0xe0 fs/block_dev.c:2053 call_read_iter include/linux/fs.h:1901 [inline] new_sync_read+0x306/0x450 fs/read_write.c:415 __vfs_read+0x9e/0xb0 fs/read_write.c:428 vfs_read fs/read_write.c:462 [inline] vfs_read+0x13e/0x2b0 fs/read_write.c:447 ksys_read+0xc5/0x1a0 fs/read_write.c:588 __do_sys_read fs/read_write.c:598 [inline] __se_sys_read fs/read_write.c:596 [inline] __x64_sys_read+0x49/0x60 fs/read_write.c:596 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13546 Comm: systemd-udevd Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================