================================================================== BUG: KCSAN: data-race in install_new_memslots / vcpu_is_mmio_gpa.part.0 write to 0xffff88809dac2800 of 8 bytes by task 18717 on cpu 0: install_new_memslots+0xe9/0x130 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1077 kvm_set_memslot+0x800/0xb70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1153 __kvm_set_memory_region+0x91c/0xc20 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1300 kvm_set_memory_region+0x31/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1321 kvm_vm_ioctl_set_memory_region arch/x86/kvm/../../../virt/kvm/kvm_main.c:1333 [inline] kvm_vm_ioctl+0x662/0x18b0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3604 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/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88809dac2800 of 8 bytes by task 18721 on cpu 1: vcpu_match_mmio_gen arch/x86/kvm/x86.h:183 [inline] vcpu_match_mmio_gpa arch/x86/kvm/x86.h:211 [inline] vcpu_is_mmio_gpa.part.0+0x8e/0x220 arch/x86/kvm/x86.c:5577 vcpu_is_mmio_gpa arch/x86/kvm/x86.c:5574 [inline] vcpu_mmio_gva_to_gpa arch/x86/kvm/x86.c:5611 [inline] emulator_read_write_onepage+0x29a/0x740 arch/x86/kvm/x86.c:5722 emulator_read_write.isra.0+0x15b/0x300 arch/x86/kvm/x86.c:5782 emulator_write_emulated+0x4a/0x60 arch/x86/kvm/x86.c:5819 segmented_write+0xa3/0xe0 arch/x86/kvm/emulate.c:1495 writeback arch/x86/kvm/emulate.c:1857 [inline] writeback+0x244/0x430 arch/x86/kvm/emulate.c:1843 x86_emulate_insn+0x12d2/0x2840 arch/x86/kvm/emulate.c:5753 x86_emulate_instruction+0x702/0x11d0 arch/x86/kvm/x86.c:6867 kvm_emulate_instruction+0x2b/0x40 arch/x86/kvm/x86.c:6935 handle_io+0x8c/0x130 arch/x86/kvm/vmx/vmx.c:4752 vmx_handle_exit+0x1de/0xd60 arch/x86/kvm/vmx/vmx.c:5980 vcpu_enter_guest+0xc00/0x3740 arch/x86/kvm/x86.c:8481 vcpu_run arch/x86/kvm/x86.c:8544 [inline] kvm_arch_vcpu_ioctl_run+0x281/0xd60 arch/x86/kvm/x86.c:8766 kvm_vcpu_ioctl+0x70b/0x9d0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3138 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/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18721 Comm: syz-executor.3 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================