Re: [PATCH] RISC-V: KVM: Fix out-of-bounds by 1

From: patchwork-bot+linux-riscv

Date: Tue Mar 24 2026 - 02:17:57 EST


Hello:

This patch was applied to riscv/linux.git (for-next)
by Anup Patel <anup@xxxxxxxxxxxxxx>:

On Sat, 28 Feb 2026 09:22:26 -0600 you wrote:
> The array kvpmu->pmc is defined as:
>
> struct kvm_pmc pmc[RISCV_KVM_MAX_COUNTERS];
>
> So, accessing it with index RISCV_KVM_MAX_COUNTERS would be
> out-of-bounds by 1.
>
> [...]

Here is the summary with links:
- RISC-V: KVM: Fix out-of-bounds by 1
https://git.kernel.org/riscv/c/5c1bb0787111

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html