summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2022-03-30 18:05:33 +0300
committerSudeep Holla <sudeep.holla@arm.com>2022-04-28 20:22:50 +0300
commit3b0041f6e10e5bdbb646d98172be43e88734ed62 (patch)
treef1ed3e5b8bb6ed2a17256c858387d6996b20b413 /tools/perf/scripts
parent8009120e0354a67068e920eb10dce532391361d0 (diff)
downloadlinux-3b0041f6e10e5bdbb646d98172be43e88734ed62.tar.xz
firmware: arm_scmi: Validate BASE_DISCOVER_LIST_PROTOCOLS response
Do not blindly trust SCMI platform response about list of implemented protocols, instead validate the reported length of the list of protocols against the real payload size of the message reply. Link: https://lore.kernel.org/r/20220330150551.2573938-5-cristian.marussi@arm.com Fixes: b6f20ff8bd94 ("firmware: arm_scmi: add common infrastructure and support for base protocol") Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> [sudeep.holla: Added early break if loop_num_ret = 0 and simplified calc_list_sz calculation] Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions