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 invvpid instruction

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

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

+1
+1
arch/x86/kvm/vmx.c
··· 7458 7458 if (!(types & (1UL << type))) { 7459 7459 nested_vmx_failValid(vcpu, 7460 7460 VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID); 7461 + skip_emulated_instruction(vcpu); 7461 7462 return 1; 7462 7463 } 7463 7464