================================================================== BUG: KCSAN: data-race in blk_stat_add / enqueue_timer read to 0xffff888128c03b98 of 8 bytes by interrupt on cpu 1: blk_stat_is_active block/blk-stat.h:131 [inline] blk_stat_add+0x103/0x2c0 block/blk-stat.c:66 __blk_mq_end_request+0x22d/0x270 block/blk-mq.c:527 scsi_end_request+0x1dd/0x360 drivers/scsi/scsi_lib.c:610 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1476 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+0x81/0x130 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 tomoyo_check_acl+0x9d/0x270 security/tomoyo/domain.c:170 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0xe3/0x160 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x2fd/0x320 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0x75/0x90 security/tomoyo/tomoyo.c:314 security_file_open+0x69/0x210 security/security.c:1497 do_dentry_open+0x211/0x970 fs/open.c:784 vfs_open+0x62/0x80 fs/open.c:914 do_last fs/namei.c:3420 [inline] path_openat+0xf9f/0x3580 fs/namei.c:3537 do_filp_open+0x11e/0x1b0 fs/namei.c:3567 do_sys_open+0x3b3/0x4f0 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1110 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888128c03b98 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: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 should_watch kernel/kcsan/core.c:203 [inline] check_access kernel/kcsan/core.c:458 [inline] __tsan_read4+0x9b/0x100 kernel/kcsan/core.c:588 tomoyo_path_matches_pattern+0x11a/0x160 security/tomoyo/util.c:923 tomoyo_compare_name_union security/tomoyo/file.c:87 [inline] tomoyo_compare_name_union+0x71/0xa0 security/tomoyo/file.c:82 tomoyo_check_path_acl security/tomoyo/file.c:260 [inline] tomoyo_check_path_acl+0x85/0xa0 security/tomoyo/file.c:252 tomoyo_check_acl+0xf6/0x270 security/tomoyo/domain.c:172 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0xe3/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_lstat include/linux/fs.h:3254 [inline] __do_sys_newlstat+0x51/0xb0 fs/stat.c:354 __se_sys_newlstat fs/stat.c:348 [inline] __x64_sys_newlstat+0x3a/0x50 fs/stat.c:348 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: 9343 Comm: syz-executor.1 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================