================================================================== BUG: KCSAN: data-race in blk_stat_add / enqueue_timer read to 0xffff8881292a7a98 of 8 bytes by interrupt on cpu 1: blk_stat_is_active block/blk-stat.h:131 [inline] blk_stat_add+0xc9/0x290 block/blk-stat.c:65 __blk_mq_end_request+0x22d/0x270 block/blk-mq.c:549 scsi_end_request+0x20e/0x3e0 drivers/scsi/scsi_lib.c:613 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:963 scsi_finish_command+0x280/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1477 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __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] do_IRQ+0xa6/0x180 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x19 find_watchpoint kernel/kcsan/core.c:67 [inline] check_access kernel/kcsan/core.c:388 [inline] __tsan_read1+0x4e/0x1e0 kernel/kcsan/core.c:527 format_decode+0xc8/0xb10 lib/vsprintf.c:2245 vsnprintf+0xc9/0xb40 lib/vsprintf.c:2462 tomoyo_supervisor+0xc3/0xd20 security/tomoyo/common.c:2067 tomoyo_audit_net_log security/tomoyo/network.c:367 [inline] tomoyo_audit_inet_log+0x14d/0x1b0 security/tomoyo/network.c:393 tomoyo_inet_entry security/tomoyo/network.c:484 [inline] tomoyo_check_inet_address security/tomoyo/network.c:532 [inline] tomoyo_check_inet_address+0x32f/0x360 security/tomoyo/network.c:501 tomoyo_socket_bind_permission+0x16a/0x200 security/tomoyo/network.c:745 tomoyo_socket_bind+0x2f/0x50 security/tomoyo/tomoyo.c:471 security_socket_bind+0x6d/0xa0 security/security.c:1993 __sys_bind+0x18e/0x220 net/socket.c:1643 __do_sys_bind net/socket.c:1658 [inline] __se_sys_bind net/socket.c:1656 [inline] __x64_sys_bind+0x4c/0x60 net/socket.c:1656 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8881292a7a98 of 8 bytes by interrupt on cpu 0: hlist_add_head include/linux/list.h:789 [inline] enqueue_timer+0x9c/0x210 kernel/time/timer.c:540 __internal_add_timer+0x4f/0x60 kernel/time/timer.c:553 internal_add_timer kernel/time/timer.c:595 [inline] __mod_timer kernel/time/timer.c:1053 [inline] mod_timer+0x303/0x7a0 kernel/time/timer.c:1100 blk_stat_activate_nsecs block/blk-stat.h:145 [inline] rwb_arm_timer+0x98/0xf0 block/blk-wbt.c:349 wb_timer_fn+0x311/0xad0 block/blk-wbt.c:405 blk_stat_timer_fn+0x3b0/0x3d0 block/blk-stat.c:98 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:830 __sanitizer_cov_trace_const_cmp1+0x15/0x20 kernel/kcov.c:175 tomoyo_domain_quota_is_ok+0x257/0x2b0 security/tomoyo/util.c:1068 tomoyo_supervisor+0x22b/0xd20 security/tomoyo/common.c:2087 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x121/0x160 security/tomoyo/file.c:573 tomoyo_path_perm+0x23e/0x390 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x26/0x40 security/tomoyo/tomoyo.c:129 security_inode_getattr+0x9b/0xd0 security/security.c:1222 vfs_getattr+0x2e/0x70 fs/stat.c:115 vfs_statx+0x102/0x190 fs/stat.c:191 vfs_stat include/linux/fs.h:3242 [inline] __do_sys_newstat+0x51/0xb0 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x3a/0x50 fs/stat.c:337 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3890 Comm: udevd Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================