summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAtish Patra <atishp@meta.com>2026-08-07 19:24:30 -0600
committerPaul Walmsley <pjw@kernel.org>2026-08-07 19:24:30 -0600
commite24a1418e90beac2ef4384bc9b0b5a10f19b806e (patch)
tree29c9eedc2dd21a2b0ddf7037267684b77a84a300 /tools/perf/scripts/python
parent7e14e42edfaa872cd56deda6951c8cd56a2678d4 (diff)
RISC-V: perf: fix resource cleanup on driver probe failure
Sashiko pointed out various UAF and memory leak issues around pmu_sbi_device_probe() error paths. If the probe fails, here are list of cleanups needed. a. Already registered pmu must be freed b. per cpu IRQ must be released c. pmu_ctr_list data structure must be freed d. cpu hotplug state must be cleaned up only if added. Fix the resource cleanup by reorganizing the code around probe failure. Reported-by: Sashiko AI <sashiko-bot@kernel.org> Reviewed-by: Charlie Jenkins <thecharlesjenkins@gmail.com> Signed-off-by: Atish Patra <atishp@meta.com> Link: https://patch.msgid.link/20260807-counter_delegation-v9-1-58658104e487@meta.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions