Files
android_kernel_xiaomi_sm8450/drivers
Cristian Marussi e85df1db28 firmware: arm_scmi: Harden shared memory access in fetch_response
[ Upstream commit ad78b81a1077f7d956952cd8bdfe1e61504e3eb8 ]

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: 5c8a47a5a9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:23:09 +01:00
..
2022-05-09 09:04:56 +02:00
2023-01-24 07:20:00 +01:00
2021-11-18 14:03:51 +01:00
2022-04-13 21:00:55 +02:00
2023-01-14 10:16:24 +01:00
2022-08-25 11:38:14 +02:00