KVM: VMX: Always signal #GP on WRMSR to MSR_IA32_CR_PAT with bad value
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:27 +0000 (09:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:10:59 +0000 (09:10 +0200)
commitf4da0a8823dbb9ff9cf467093650b4b41f9cc17a
tree249ce63f9c7fb15df47221ee262688a144c58da4
parent1d83b4652e023a0bb86e1689882e46fc28f2184a
KVM: VMX: Always signal #GP on WRMSR to MSR_IA32_CR_PAT with bad value

commit d28f4290b53a157191ed9991ad05dffe9e8c0c89 upstream.

The behavior of WRMSR is in no way dependent on whether or not KVM
consumes the value.

Fixes: 4566654bb9be9 ("KVM: vmx: Inject #GP on invalid PAT CR")
Cc: stable@vger.kernel.org
Cc: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/vmx.c