diff options
| author | 2026-02-27 13:46:16 +0000 | |
|---|---|---|
| committer | 2026-03-06 11:20:30 +0530 | |
| commit | 5c1bb07871119eae6434c640e5e645a74d54a222 (patch) | |
| tree | bba8cb146225175caa4bdfea9dcf53445a0ea1b9 /include/linux/soc/apple/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | RISC-V: KVM: Fix null pointer dereference in kvm_riscv_vcpu_aia_rmw_topei() (diff) | |
RISC-V: KVM: fix off-by-one array access in SBI PMU
The indexed array only has RISCV_KVM_MAX_COUNTERS elements.
The out-of-bound access could have been performed by a guest,
but it could only access another guest accessible data.
Fixes: 8f0153ecd3bf ("RISC-V: KVM: Add skeleton support for perf")
Signed-off-by: Radim Krčmář <radim.krcmar@oss.qualcomm.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260227134617.23378-1-radim.krcmar@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/linux/soc/apple/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
