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

patchwork-bot+linux-riscv
2026-03-24T06:07:58Z

Hello:

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

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.