Re: [PATCH v3 1/1] perf: RISC-V: Limit the number of counters returned from SBI

From: Palmer Dabbelt
Date: Sun Jun 25 2023 - 19:18:57 EST



On Fri, 05 May 2023 07:20:57 +0000, Viacheslav Mitrofanov wrote:
> Perf gets the number of supported counters from SBI. If it happens that
> the number of returned counters more than RISCV_MAX_COUNTERS the code
> trusts it. It does not lead to an immediate problem but can potentially
> lead to it. Prevent getting more than RISCV_MAX_COUNTERS from SBI.
>
>

Applied, thanks!

[1/1] perf: RISC-V: Limit the number of counters returned from SBI
https://git.kernel.org/palmer/c/ee95b88d71b9

Best regards,
--
Palmer Dabbelt <palmer@xxxxxxxxxxxx>