mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
KVM: x86: use array_index_nospec with indices that come from guest
min and dest_id are guest-controlled indices. Using array_index_nospec() after the bounds checks clamps these values to mitigate speculative execution side-channels. Signed-off-by: Thijs Raymakers <thijs@raymakers.nl> Cc: stable@vger.kernel.org Cc: Sean Christopherson <seanjc@google.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Fixes:715062970f("KVM: X86: Implement PV sched yield hypercall") Fixes:bdf7ffc899("KVM: LAPIC: Fix pv ipis out-of-bounds access") Fixes:4180bf1b65("KVM: X86: Implement "send IPI" hypercall") Link: https://lore.kernel.org/r/20250804064405.4802-1-thijs@raymakers.nl Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
parent
8f5ae30d69
commit
c87bd4dd43
2 changed files with 7 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue