================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffc25660 of 8 bytes by interrupt on cpu 1: blk_rq_stat_init block/blk-stat.c:25 [inline] blk_stat_timer_fn+0x35c/0x410 block/blk-stat.c:95 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1413 expire_timers+0x116/0x290 kernel/time/timer.c:1458 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] kcsan_setup_watchpoint+0x44b/0x4a0 kernel/kcsan/core.c:563 tomoyo_path_matches_pattern+0x29/0x120 security/tomoyo/util.c:919 tomoyo_compare_name_union security/tomoyo/file.c:87 [inline] tomoyo_check_path_acl+0x9b/0xe0 security/tomoyo/file.c:260 tomoyo_check_acl+0xcc/0x220 security/tomoyo/domain.c:175 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_check_open_permission+0x17f/0x370 security/tomoyo/file.c:777 tomoyo_file_open+0xd0/0xe0 security/tomoyo/tomoyo.c:313 security_file_open+0x3f/0x90 security/security.c:1574 do_dentry_open+0x22d/0x890 fs/open.c:804 vfs_open+0x43/0x50 fs/open.c:931 do_open fs/namei.c:3251 [inline] path_openat+0x1844/0x20a0 fs/namei.c:3368 do_filp_open+0xbd/0x1d0 fs/namei.c:3395 do_sys_openat2+0x33b/0x500 fs/open.c:1168 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0xe2/0x110 fs/open.c:1188 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffe8ffffc25660 of 8 bytes by interrupt on cpu 0: blk_rq_stat_add block/blk-stat.c:47 [inline] blk_stat_add+0x16e/0x240 block/blk-stat.c:74 __blk_mq_end_request+0x142/0x230 block/blk-mq.c:544 blk_mq_end_request+0x37/0x50 block/blk-mq.c:564 lo_complete_rq+0xca/0x180 drivers/block/loop.c:500 blk_done_softirq+0x1a5/0x200 block/blk-mq.c:586 __do_softirq+0x198/0x360 kernel/softirq.c:298 run_ksoftirqd+0x2f/0x60 kernel/softirq.c:652 smpboot_thread_fn+0x347/0x530 kernel/smpboot.c:165 kthread+0x20d/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================