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

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Mon Mar 23 23:07:41 PDT 2026


Hello:

This patch was applied to riscv/linux.git (for-next)
by Anup Patel <anup at 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.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list