[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230428110256.711352-1-v.v.mitrofanov@yadro.com>
Date: Fri, 28 Apr 2023 11:02:55 +0000
From: Viacheslav Mitrofanov <v.v.mitrofanov@...ro.com>
To: unlisted-recipients:; (no To-header on input)
CC: <linux@...ro.com>,
Viacheslav Mitrofanov <v.v.mitrofanov@...ro.com>,
"Atish Patra" <atishp@...shpatra.org>,
Anup Patel <anup@...infault.org>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
<linux-riscv@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH 0/1] Limit the number of counter returned from SBI.
Perf relies on reliability of SBI. If sth goes wrong the code trusts it.
It happened due to some debug process that I passed more than
RISCV_MAX_COUNTERS to perf from SBI. At the first glance there were
bloating of kalloced variable pmu_ctr_list and counter mask recycle write.
May be there were some other effects. But anyway it is better to add
extra check.
Viacheslav Mitrofanov (1):
perf: RISC-V: Limit the number of counters returned from SBI.
drivers/perf/riscv_pmu_sbi.c | 5 +++++
1 file changed, 5 insertions(+)
--
2.37.2
Powered by blists - more mailing lists