Home
last modified time | relevance | path

Searched hist:ad78b81a1077f7d956952cd8bdfe1e61504e3eb8 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/firmware/arm_scmi/
H A Dshmem.cdiff ad78b81a1077f7d956952cd8bdfe1e61504e3eb8 Thu Dec 22 12:38:20 CST 2022 Cristian Marussi <cristian.marussi@arm.com> 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>