================================================================== BUG: KCSAN: data-race in pvclock_gtod_notify / pvclock_update_vm_gtod_copy write to 0xffffffff85fde628 of 4 bytes by interrupt on cpu 0: 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 find_watchpoint kernel/kcsan/core.c:67 [inline] check_access kernel/kcsan/core.c:388 [inline] __tsan_read4+0x49/0x1f0 kernel/kcsan/core.c:529 link_path_walk.part.0+0x253/0xa90 fs/namei.c:2081 link_path_walk fs/namei.c:2259 [inline] path_lookupat.isra.0+0x77/0x5a0 fs/namei.c:2307 filename_lookup+0x145/0x2b0 fs/namei.c:2338 user_path_at_empty+0x4c/0x70 fs/namei.c:2598 user_path_at include/linux/namei.h:49 [inline] vfs_statx+0xd9/0x190 fs/stat.c:187 vfs_stat include/linux/fs.h:3242 [inline] __do_sys_newstat+0x51/0xb0 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x3a/0x50 fs/stat.c:337 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff85fde628 of 4 bytes by task 18597 on cpu 1: kvm_get_time_and_clockread arch/x86/kvm/x86.c:2065 [inline] pvclock_update_vm_gtod_copy+0x75/0x4d0 arch/x86/kvm/x86.c:2139 kvm_arch_init_vm+0x1d8/0x370 arch/x86/kvm/x86.c:9445 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:666 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3444 [inline] kvm_dev_ioctl+0x3c5/0xc10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3496 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: 1 PID: 18597 Comm: syz-executor.3 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================