mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] KVM: riscv: Fix Spectre-v1 vulnerabilities in register access
@ 2026-03-03 14:19 Lukas Gerlach
  2026-03-03 14:19 ` [PATCH v2 1/4] KVM: riscv: Fix Spectre-v1 in ONE_REG " Lukas Gerlach
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Lukas Gerlach @ 2026-03-03 14:19 UTC (permalink / raw)
  To: Anup Patel, Atish Patra, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Andrew Jones
  Cc: Radim Krčmář,
	kvm, kvm-riscv, linux-riscv, linux-kernel, Daniel Weber,
	Michael Schwarz, Marton Bognar, Jo Van Bulck, Lukas Gerlach

This series adds array_index_nospec() to RISC-V KVM to prevent
speculative out-of-bounds access to kernel memory.

Similar fixes exist for x86 (ioapic, lapic, PMU) and arm64 (vgic).

Signed-off-by: Lukas Gerlach <lukas.gerlach@cispa.de>
---
Changes in v2:
Add array_index_nospec() to four additional sites in vcpu_pmu.c
(Radim Krčmář)

---
Lukas Gerlach (4):
      KVM: riscv: Fix Spectre-v1 in ONE_REG register access
      KVM: riscv: Fix Spectre-v1 in AIA CSR access
      KVM: riscv: Fix Spectre-v1 in floating-point register access
      KVM: riscv: Fix Spectre-v1 in PMU counter access

 arch/riscv/kvm/aia.c         | 11 +++++++++--
 arch/riscv/kvm/vcpu_fp.c     | 17 +++++++++++++----
 arch/riscv/kvm/vcpu_onereg.c | 36 ++++++++++++++++++++++++++++--------
 arch/riscv/kvm/vcpu_pmu.c    | 14 +++++++++++---
 4 files changed, 61 insertions(+), 17 deletions(-)
---
base-commit: f4d0ec0aa20d49f09dc01d82894ce80d72de0560
change-id: 20260226-kvm-riscv-spectre-v1-4d04dc68c226

Best regards,
-- 
Lukas Gerlach <lukas.gerlach@cispa.de>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-24  6:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-03 14:19 [PATCH v2 0/4] KVM: riscv: Fix Spectre-v1 vulnerabilities in register access Lukas Gerlach
2026-03-03 14:19 ` [PATCH v2 1/4] KVM: riscv: Fix Spectre-v1 in ONE_REG " Lukas Gerlach
2026-03-03 14:19 ` [PATCH v2 2/4] KVM: riscv: Fix Spectre-v1 in AIA CSR access Lukas Gerlach
2026-03-03 14:19 ` [PATCH v2 3/4] KVM: riscv: Fix Spectre-v1 in floating-point register access Lukas Gerlach
2026-03-03 14:19 ` [PATCH v2 4/4] KVM: riscv: Fix Spectre-v1 in PMU counter access Lukas Gerlach
2026-03-04 11:08 ` [PATCH v2 0/4] KVM: riscv: Fix Spectre-v1 vulnerabilities in register access Anup Patel
2026-03-24  6:07 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome