summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/qcom_scm.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2022-12-22 18:38:20 +0000
committerSudeep Holla <sudeep.holla@arm.com>2023-01-03 16:50:30 +0000
commitad78b81a1077f7d956952cd8bdfe1e61504e3eb8 (patch)
treed6cf40271b31f7f50ed876c4317a13df64f769cb /drivers/firmware/qcom_scm.c
parentf6ca5059dc0d6608dc46070f48e396d611f240d6 (diff)
downloadlinux-ad78b81a1077f7d956952cd8bdfe1e61504e3eb8.tar.bz2
firmware: arm_scmi: Harden shared memory access in fetch_response
A misbheaving SCMI platform firmware could reply with out-of-spec messages, shorter than the mimimum size comprising a header and a status field. Harden shmem_fetch_response to properly truncate such a bad messages. Fixes: 5c8a47a5a91d ("firmware: arm_scmi: Make scmi core independent of the transport type") Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Link: https://lore.kernel.org/r/20221222183823.518856-3-cristian.marussi@arm.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/qcom_scm.c')
0 files changed, 0 insertions, 0 deletions