================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffd30d98 of 8 bytes by interrupt on cpu 0: blk_rq_stat_init block/blk-stat.c:23 [inline] blk_stat_timer_fn+0x313/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 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 read to 0xffffe8ffffd30d98 of 8 bytes by interrupt on cpu 1: blk_rq_stat_add block/blk-stat.c:45 [inline] blk_stat_add+0x10c/0x240 block/blk-stat.c:74 __blk_mq_end_request+0x142/0x230 block/blk-mq.c:544 scsi_end_request+0x2ae/0x400 drivers/scsi/scsi_lib.c:600 scsi_io_completion+0x105/0xf40 drivers/scsi/scsi_lib.c:938 scsi_finish_command+0x277/0x2c0 drivers/scsi/scsi.c:214 scsi_softirq_done+0x271/0x400 drivers/scsi/scsi_lib.c:1464 blk_done_softirq+0x1a5/0x200 block/blk-mq.c:586 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x5b/0x70 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] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x44/0x70 kernel/locking/spinlock.c:191 unlock_hrtimer_base kernel/time/hrtimer.c:902 [inline] hrtimer_start_range_ns+0x226/0x250 kernel/time/hrtimer.c:1140 hrtimer_start_expires include/linux/hrtimer.h:436 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1804 [inline] do_nanosleep+0xd2/0x3a0 kernel/time/hrtimer.c:1880 hrtimer_nanosleep kernel/time/hrtimer.c:1936 [inline] __do_sys_nanosleep kernel/time/hrtimer.c:1970 [inline] __se_sys_nanosleep+0x20b/0x2a0 kernel/time/hrtimer.c:1957 __x64_sys_nanosleep+0x2d/0x40 kernel/time/hrtimer.c:1957 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 23224 Comm: syz-executor.0 Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================