Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: VMX: avoid guest hang on invalid invept instruction

A guest executing an invalid invept instruction would hang
because the instruction pointer was not updated.

Cc: stable@vger.kernel.org
Fixes: bfd0a56b90005f8c8a004baf407ad90045c2b11e
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

+1
+1
arch/x86/kvm/vmx.c
··· 7399 7399 if (!(types & (1UL << type))) { 7400 7400 nested_vmx_failValid(vcpu, 7401 7401 VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID); 7402 + skip_emulated_instruction(vcpu); 7402 7403 return 1; 7403 7404 } 7404 7405