KVM: VMX: Add non-canonical check on writes to RTIT address MSRs
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 10 Dec 2019 23:24:32 +0000 (15:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:35:41 +0000 (04:35 -0800)
commit715f9f9a07687f3df6dd95f62a09e53ffdb07650
treed2e7c06928271222655e0157f8683f6df61db4ad
parent2aebc6ed84efeb1e255fd6417f9230388f2206cd
KVM: VMX: Add non-canonical check on writes to RTIT address MSRs

commit fe6ed369fca98e99df55c932b85782a5687526b5 upstream.

Reject writes to RTIT address MSRs if the data being written is a
non-canonical address as the MSRs are subject to canonical checks, e.g.
KVM will trigger an unchecked #GP when loading the values to hardware
during pt_guest_enter().

Cc: stable@vger.kernel.org
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