diff options
| author | Zongmin Zhou <zhouzongmin@kylinos.cn> | 2026-07-15 11:08:18 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-07-15 18:06:16 +0530 |
| commit | 8d9c9b135b5c23de9811a8426257cbd2fa024a99 (patch) | |
| tree | b2d664f55b25019ce135981972bba3f50b505895 /Documentation/core-api/debug-objects.rst | |
| parent | d024a0a7879e6f37c0152aacf6d8e37b214a1738 (diff) | |
| download | linux-8d9c9b135b5c23de9811a8426257cbd2fa024a99.tar.gz linux-8d9c9b135b5c23de9811a8426257cbd2fa024a99.zip | |
KVM: riscv: Fix Spectre-v1 in vector register access
User-controlled register indices from the ONE_REG ioctl are used to
index into the vector register buffer (v0..v31). Sanitize the calculated
offset with array_index_nospec() to prevent speculative out-of-bounds
access.
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260715030818.75657-1-min_halo@163.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'Documentation/core-api/debug-objects.rst')
0 files changed, 0 insertions, 0 deletions
