Re: [syzbot] WARNING in free_loaded_vmcs (3)

From: Sean Christopherson
Date: Tue Jan 25 2022 - 15:22:48 EST


On Mon, Jan 24, 2022, syzbot wrote:
> WARNING: CPU: 0 PID: 3606 at arch/x86/kvm/vmx/vmx.c:2665 free_loaded_vmcs arch/x86/kvm/vmx/vmx.c:2665 [inline]
> WARNING: CPU: 0 PID: 3606 at arch/x86/kvm/vmx/vmx.c:2665 free_loaded_vmcs+0x158/0x1a0 arch/x86/kvm/vmx/vmx.c:2656

KVM gets confused if userspace abuses KVM_SET_VCPU_EVENTS to toggle SMM on/off
while the vCPU is post-VMXON, I'll send a patch.