================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffd2e660 of 8 bytes by interrupt on cpu 0: blk_rq_stat_init block/blk-stat.c:25 [inline] blk_stat_timer_fn+0x311/0x3d0 block/blk-stat.c:95 call_timer_fn+0x58/0x2e0 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0xb14/0xbd0 kernel/time/timer.c:1787 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 kvm_cpu_has_pending_timer+0x0/0x60 vcpu_run arch/x86/kvm/x86.c:8507 [inline] kvm_arch_vcpu_ioctl_run+0x2c9/0xdc0 arch/x86/kvm/x86.c:8720 kvm_vcpu_ioctl+0x70b/0x9d0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2932 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x101/0x150 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x47/0x60 fs/ioctl.c:770 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffe8ffffd2e660 of 8 bytes by interrupt on cpu 1: blk_rq_stat_add block/blk-stat.c:47 [inline] blk_stat_add+0x1e4/0x2c0 block/blk-stat.c:74 __blk_mq_end_request+0x224/0x2c0 block/blk-mq.c:527 scsi_end_request+0x1d4/0x350 drivers/scsi/scsi_lib.c:610 scsi_io_completion+0x11e/0xcc0 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x390 drivers/scsi/scsi.c:228 scsi_softirq_done+0x249/0x270 drivers/scsi/scsi_lib.c:1476 blk_done_softirq+0x1e6/0x250 block/blk-softirq.c:37 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] do_IRQ+0x7b/0x120 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 arch_local_irq_enable arch/x86/include/asm/paravirt.h:762 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] _raw_spin_unlock_irq+0x4b/0x80 kernel/locking/spinlock.c:199 finish_lock_switch kernel/sched/core.c:3173 [inline] finish_task_switch+0x7b/0x260 kernel/sched/core.c:3273 context_switch kernel/sched/core.c:3437 [inline] __schedule+0x30e/0x690 kernel/sched/core.c:4130 schedule+0x41/0xe0 kernel/sched/core.c:4204 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x138/0x320 kernel/time/hrtimer.c:1874 hrtimer_nanosleep+0x136/0x230 kernel/time/hrtimer.c:1927 __do_sys_nanosleep kernel/time/hrtimer.c:1961 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1948 [inline] __x64_sys_nanosleep+0x14b/0x190 kernel/time/hrtimer.c:1948 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7814 Comm: syz-executor.2 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================