]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:51 +0000 (11:46 +0200)
commitd28f4290b53a157191ed9991ad05dffe9e8c0c89
tree20798dc75949256c5508ca548b55a2d683c62fdb
parentb1346ab2afbe64e7fb4ebc45efe5dd69367c9308
KVM: VMX: Always signal #GP on WRMSR to MSR_IA32_CR_PAT with bad value

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>
arch/x86/kvm/vmx/vmx.c