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

Palmer Dabbelt palmer at rivosinc.com
Sun Jun 25 16:17:53 PDT 2023


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 at rivosinc.com>




More information about the linux-arm-kernel mailing list