================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffc28090 of 8 bytes by interrupt on cpu 1: blk_rq_stat_init block/blk-stat.c:24 [inline] blk_stat_timer_fn+0x349/0x410 block/blk-stat.c:95 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1431 expire_timers+0x116/0x260 kernel/time/timer.c:1476 __run_timers+0x358/0x3f0 kernel/time/timer.c:1745 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1758 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 check_kcov_mode kernel/kcov.c:165 [inline] __sanitizer_cov_trace_pc+0x33/0x60 kernel/kcov.c:197 make_kuid+0x27/0x180 kernel/user_namespace.c:387 kuid_into_mnt include/linux/fs.h:1580 [inline] i_uid_into_mnt include/linux/fs.h:1592 [inline] common_perm_cond+0x73/0x360 security/apparmor/lsm.c:229 apparmor_inode_getattr+0x1d/0x20 security/apparmor/lsm.c:404 security_inode_getattr+0x7f/0xd0 security/security.c:1288 vfs_getattr fs/stat.c:131 [inline] vfs_fstat fs/stat.c:156 [inline] __do_sys_newfstat fs/stat.c:396 [inline] __se_sys_newfstat+0x58/0x2c0 fs/stat.c:393 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:393 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffe8ffffc28090 of 8 bytes by interrupt on cpu 0: blk_rq_stat_add block/blk-stat.c:46 [inline] blk_stat_add+0x13d/0x240 block/blk-stat.c:74 __blk_mq_end_request+0x142/0x230 block/blk-mq.c:546 blk_mq_end_request+0x37/0x50 block/blk-mq.c:566 lo_complete_rq+0xca/0x180 drivers/block/loop.c:497 blk_complete_reqs block/blk-mq.c:576 [inline] blk_done_softirq+0x69/0x90 block/blk-mq.c:581 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 run_ksoftirqd+0x13/0x20 kernel/softirq.c:652 smpboot_thread_fn+0x34f/0x520 kernel/smpboot.c:165 kthread+0x20b/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: 12 Comm: ksoftirqd/0 Tainted: G W 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================