================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffd21c20 of 8 bytes by interrupt on cpu 0: blk_rq_stat_init block/blk-stat.c:25 [inline] blk_stat_timer_fn+0x30d/0x3d0 block/blk-stat.c:94 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+0xcb8/0xd20 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 arch_local_irq_restore arch/x86/include/asm/paravirt.h:756 [inline] __kcsan_setup_watchpoint+0x268/0x4a0 kernel/kcsan/core.c:424 __tsan_read8 kernel/kcsan/kcsan.c:36 [inline] __tsan_read8+0x2c/0x30 kernel/kcsan/kcsan.c:36 tomoyo_check_acl+0x19d/0x270 security/tomoyo/domain.c:169 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 read to 0xffffe8ffffd21c20 of 8 bytes by interrupt on cpu 1: blk_rq_stat_add block/blk-stat.c:47 [inline] blk_stat_add+0x1bb/0x290 block/blk-stat.c:73 __blk_mq_end_request block/blk-mq.c:549 [inline] blk_mq_end_request+0x256/0x2b0 block/blk-mq.c:570 lo_complete_rq+0x136/0x1a0 drivers/block/loop.c:485 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 run_ksoftirqd+0x46/0x60 kernel/softirq.c:603 smpboot_thread_fn+0x37d/0x4a0 kernel/smpboot.c:165 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================