================================================================== BUG: KCSAN: data-race in kvm_arch_vcpu_load / pvclock_gtod_notify write to 0xffffffff85fde628 of 4 bytes by interrupt on cpu 1: update_pvclock_gtod arch/x86/kvm/x86.c:1551 [inline] pvclock_gtod_notify+0x9f/0x260 arch/x86/kvm/x86.c:7123 notifier_call_chain+0xd7/0x160 kernel/notifier.c:95 __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0x37/0x50 kernel/notifier.c:403 update_pvclock_gtod kernel/time/timekeeping.c:578 [inline] timekeeping_update+0x1b5/0x2d0 kernel/time/timekeeping.c:672 timekeeping_advance+0x87d/0xd80 kernel/time/timekeeping.c:2120 update_wall_time+0x19/0x20 kernel/time/timekeeping.c:2137 tick_do_update_jiffies64+0x1a4/0x250 kernel/time/tick-sched.c:94 tick_sched_do_timer+0xd4/0xe0 kernel/time/tick-sched.c:138 tick_sched_timer+0x43/0xe0 kernel/time/tick-sched.c:1292 __run_hrtimer kernel/time/hrtimer.c:1514 [inline] __hrtimer_run_queues+0x274/0x5f0 kernel/time/hrtimer.c:1576 hrtimer_interrupt+0x22a/0x480 kernel/time/hrtimer.c:1638 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline] smp_apic_timer_interrupt+0xdc/0x280 arch/x86/kernel/apic/apic.c:1135 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+0x205/0x410 kernel/kcsan/core.c:369 check_access kernel/kcsan/core.c:409 [inline] __tsan_read8+0x145/0x1f0 kernel/kcsan/core.c:530 compound_head include/linux/page-flags.h:174 [inline] PageSwapCache include/linux/page-flags.h:383 [inline] free_swap_cache mm/swap_state.c:267 [inline] free_pages_and_swap_cache+0xa1/0x2a0 mm/swap_state.c:295 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:184 [inline] tlb_flush_mmu+0x72/0x3b0 mm/mmu_gather.c:191 zap_pte_range mm/memory.c:1128 [inline] zap_pmd_range mm/memory.c:1166 [inline] zap_pud_range mm/memory.c:1195 [inline] zap_p4d_range mm/memory.c:1216 [inline] unmap_page_range+0x1562/0x18d0 mm/memory.c:1237 unmap_single_vma+0x144/0x200 mm/memory.c:1282 unmap_vmas+0xda/0x1a0 mm/memory.c:1314 exit_mmap+0x13e/0x300 mm/mmap.c:3161 __mmput kernel/fork.c:1079 [inline] mmput+0xea/0x280 kernel/fork.c:1100 exit_mm kernel/exit.c:485 [inline] do_exit+0x4c9/0x18f0 kernel/exit.c:804 do_group_exit+0xb4/0x1c0 kernel/exit.c:921 get_signal+0x2a2/0x1320 kernel/signal.c:2734 do_signal+0x3b/0xbf0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff85fde628 of 4 bytes by task 9223 on cpu 0: kvm_check_tsc_unstable arch/x86/kvm/x86.c:1837 [inline] kvm_arch_vcpu_load+0x1e5/0x620 arch/x86/kvm/x86.c:3418 vcpu_load+0x4c/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:167 kvm_arch_vcpu_postcreate+0x9b/0x160 arch/x86/kvm/x86.c:9064 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2700 [inline] kvm_vm_ioctl+0xe1a/0x1190 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3212 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9223 Comm: syz-executor.5 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================