diff options
| author | Lukas Gerlach <lukas.gerlach@cispa.de> | 2026-03-03 17:19:43 +0300 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-03-06 08:50:30 +0300 |
| commit | 8f0c15c4b14f27dd9bd35971adb9c908241f2f63 (patch) | |
| tree | 15bb61e93fd090c96e917946b793a78e562b1c41 /include/linux/debugobjects.h | |
| parent | ec87a82ca8740891bce9e93e79ea2cd6c2d70ac8 (diff) | |
| download | linux-8f0c15c4b14f27dd9bd35971adb9c908241f2f63.tar.xz | |
KVM: riscv: Fix Spectre-v1 in floating-point register access
User-controlled indices are used to index into floating-point registers.
Sanitize them with array_index_nospec() to prevent speculative
out-of-bounds access.
Reviewed-by: Radim Krčmář <radim.krcmar@oss.qualcomm.com>
Signed-off-by: Lukas Gerlach <lukas.gerlach@cispa.de>
Link: https://lore.kernel.org/r/20260303-kvm-riscv-spectre-v1-v2-3-192caab8e0dc@cispa.de
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
