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>
Mon, 16 Sep 2019 06:22:18 +0000 (08:22 +0200)
commit74ce13331db90a855f61d65daa56908c8733c128
treea0caf342a25f74c5da1da042043909ce4bfd795c
parent74fd8aae19d996c62df9f7919aadfa4744f5c5ad
KVM: VMX: Always signal #GP on WRMSR to MSR_IA32_CR_PAT with bad value

[ Upstream commit d28f4290b53a157191ed9991ad05dffe9e8c0c89 ]

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: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx.c