summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@kernel.org>2026-10-28 13:05:01 +0000
committerSudeep Holla <sudeep.holla@kernel.org>2026-10-28 13:57:54 +0000
commit4e3652a0ac715ba7387b072b72eaff76e761aaf9 (patch)
treee311b72db8dba89fe8abf452a4c0a88dbac15251 /tools/perf/scripts/python
parent3baf579ba76613f65b03f43a2f2642340e5fb717 (diff)
firmware: arm_scmi: imx: Validate MISC control response size
scmi_imx_misc_ctrl_get() uses @num to report the number of values returned by firmware, but it did not retain the caller's value as the capacity of @val. A response with more values than the caller allocated was copied into @val unchecked. For example, the MQS regmap callback supplies storage for one value. Retain the input capacity and reject responses exceeding it before copying, then update @num only after a successful copy. Document the in/out @num contract of the exported helper. Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/bug/linux-6897b44a-57fb-4964-95f8-447d0ce526e4 Fixes: 61c9f03e22fc ("firmware: arm_scmi: Add initial support for i.MX MISC protocol") Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20261028130502.2999676-2-sudeep.holla@kernel.org Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions