diff options
| author | Sudeep Holla <sudeep.holla@kernel.org> | 2026-10-28 13:05:00 +0000 |
|---|---|---|
| committer | Sudeep Holla <sudeep.holla@kernel.org> | 2026-10-28 13:57:11 +0000 |
| commit | 3baf579ba76613f65b03f43a2f2642340e5fb717 (patch) | |
| tree | d230b708799fbe4137236eec2ddf47140c9eab46 /tools/perf/scripts/python | |
| parent | 7f73b4cb4b3afff60577e5ddc532fd026b55d4e5 (diff) | |
firmware: arm_scmi: imx: Track copied syslog words
The MISC syslog iterator records the number of returned words plus
firmware-reported remaining words in the caller's size output.
The debugfs consumer uses that value to dump its fixed-size buffer. A
malformed or inconsistent response can therefore make it read beyond
the copied data and allocation.
Return the accumulated number of words copied into the caller's buffer
instead. The generic iterator bounds this count to the initial buffer
capacity before processing each response.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/bug/linux-67e325a9-473e-450a-a2a0-bf4c0c720624
Fixes: 4fa62e80c7db ("firmware: arm_scmi: imx: Support getting syslog of MISC protocol")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20261028130502.2999676-1-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
