]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 12:57:50 +0000 (13:57 +0100)
commitfe6ed369fca98e99df55c932b85782a5687526b5
tree6bc5c4ec20e952e8a05eb5fefb8db019df22ea9b
parent311497e0c5565e7d9cf7b0987d17626b228b8fec
KVM: VMX: Add non-canonical check on writes to RTIT address MSRs

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