aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorThijs Raymakers <[email protected]>2025-08-04 06:44:05 +0000
committerSean Christopherson <[email protected]>2025-08-15 18:33:21 +0000
commitc87bd4dd43a624109c3cc42d843138378a7f4548 (patch)
treed1df52ed1c6250367f64d5c87a5498cb97e77369 /drivers/cdx/controller/cdx_controller.c
parentLinux 6.17-rc1 (diff)
downloadkernel-c87bd4dd43a624109c3cc42d843138378a7f4548.tar.gz
kernel-c87bd4dd43a624109c3cc42d843138378a7f4548.zip
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 <[email protected]> Cc: [email protected] Cc: Sean Christopherson <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Fixes: 715062970f37 ("KVM: X86: Implement PV sched yield hypercall") Fixes: bdf7ffc89922 ("KVM: LAPIC: Fix pv ipis out-of-bounds access") Fixes: 4180bf1b655a ("KVM: X86: Implement "send IPI" hypercall") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions