summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorXixin Liu <liuxixin@kylinos.cn>2026-07-28 08:50:00 +0800
committerSudeep Holla <sudeep.holla@kernel.org>2026-09-01 11:44:59 +0100
commit70f4b78d560e592cbf3325b162424737d032fc1d (patch)
tree481896d7e29b28af7889f6fd1b5ed2756576291d /tools/perf/scripts/python/bin/stackcollapse-record
parent32471d84a487c7fd74532bc96be56f8028cf4a3f (diff)
downloadlinux-next-70f4b78d560e592cbf3325b162424737d032fc1d.tar.gz
linux-next-70f4b78d560e592cbf3325b162424737d032fc1d.zip
clk: scpi: bound-check DVFS index in scpi_dvfs_recalc_rate
dvfs_get_idx() may return an out-of-range index if the SCP firmware is buggy or returns a stale value. Only negative indexes were rejected, so a large index walked past info->opps and could treat garbage as a clock rate (KASAN OOB / wrong frequency to consumers). The missing upper bound dates back to the original SCPI clock driver. Treat indexes >= opp count as invalid and return 0, same as idx < 0. Fixes: cd52c2a4b5c4 ("clk: add support for clocks provided by SCP(System Control Processor)") Signed-off-by: Xixin Liu <liuxixin@kylinos.cn> Link: https://patch.msgid.link/04f9ab766e07.v2.1785200642.git.liuxixin@kylinos.cn Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions