KVM: x86: Inject #GP if WRMSR sets reserved bits in APIC Self-IPI
authorSean Christopherson <seanjc@google.com>
Sat, 7 Jan 2023 01:10:20 +0000 (01:10 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:04:34 +0000 (10:04 -0800)
commitba5838abb05334e4abfdff1490585c7f365e0424
tree034708f8363408a07d62a5bfdd9b1da412da6fa3
parent85e64d09f7934166b77dfbe42eec600c93703cb3
KVM: x86: Inject #GP if WRMSR sets reserved bits in APIC Self-IPI

Inject a #GP if the guest attempts to set reserved bits in the x2APIC-only
Self-IPI register.  Bits 7:0 hold the vector, all other bits are reserved.

Reported-by: Marc Orr <marcorr@google.com>
Cc: Ben Gardon <bgardon@google.com>
Cc: Venkatesh Srinivas <venkateshs@chromium.org>
Cc: stable@vger.kernel.org
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20230107011025.565472-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c