linux-stable/drivers/soc
Bjorn Andersson a2deb1a18b soc: qcom: mdt_loader: Detect truncated read of segments
[ Upstream commit 0648c55e3a ]

Given that no validation of how much data the firmware loader read in
for a given segment truncated segment files would best case result in a
hash verification failure, without any indication of what went wrong.

Improve this by validating that the firmware loader did return the
amount of data requested.

Fixes: 445c2410a4 ("soc: qcom: mdt_loader: Use request_firmware_into_buf()")
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20210107232526.716989-1-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:57:29 +02:00
..
actions
amlogic
atmel drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] 2021-02-03 23:22:21 +01:00
bcm
dove
fsl soc/fsl: qbman: fix conflicting alignment attributes 2021-04-16 11:57:50 +02:00
imx soc: imx: gpc: fix power up sequencing 2020-04-24 08:01:18 +02:00
lantiq
mediatek soc: mediatek: Check if power domains can be powered on at boot time 2020-12-29 13:46:50 +01:00
qcom soc: qcom: mdt_loader: Detect truncated read of segments 2021-05-22 10:57:29 +02:00
renesas
rockchip soc: rockchip: Set the proper PWM for rk3288 2019-06-15 11:54:55 +02:00
samsung
sunxi
tegra soc/tegra: fuse: Fix index bug in get_process_id 2020-12-29 13:46:48 +01:00
ti drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe 2020-12-29 13:46:54 +01:00
ux500
versatile
zte
Kconfig
Makefile