linux_dsm_epyc7002/drivers/soc/qcom
Bjorn Andersson d97cb43657 soc: qcom: mdt_loader: Detect truncated read of segments
[ Upstream commit 0648c55e3a21ccd816e99b6600d6199fbf39d23a ]

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-14 09:50:16 +02:00
..
apr.c soc: qcom: apr: Fixup the error displayed on lookup failure 2020-09-15 16:12:59 +00:00
cmd-db.c soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs 2020-04-19 23:06:29 -07:00
cpr.c PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
Kconfig PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
kryo-l2-accessors.c soc: qcom: Separate kryo l2 accessors from PMU driver 2020-07-10 17:08:55 -07:00
llcc-qcom.c soc: qcom: llcc: use devm_platform_ioremap_resource_byname() 2020-09-17 04:24:49 +00:00
Makefile PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
mdt_loader.c soc: qcom: mdt_loader: Detect truncated read of segments 2021-05-14 09:50:16 +02:00
ocmem.c soc: qcom: ocmem: don't return NULL in of_get_ocmem 2021-03-04 11:37:27 +01:00
pdr_interface.c soc: qcom: pdr: Fix error return code in pdr_register_listener 2021-05-14 09:50:15 +02:00
pdr_internal.h soc: qcom: pdr: Fixup array type of get_domain_list_resp message 2020-09-14 23:53:29 +00:00
qcom_aoss.c soc: qcom: aoss: Add SM8250 compatible 2020-05-11 17:17:23 -07:00
qcom_gsbi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 409 2019-06-05 17:37:14 +02:00
qcom-geni-se.c soc: qcom: geni: shield geni_icc_get() for ACPI boot 2021-04-28 13:40:01 +02:00
qmi_encdec.c soc: qcom: Introduce QMI encoder/decoder 2017-12-20 15:38:34 -06:00
qmi_interface.c soc: qcom: qmi: Return EPROBE_DEFER if no address family 2019-12-10 22:44:34 -08:00
rmtfs_mem.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
rpmh-internal.h soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh.c soc: qcom: rpmh: Update rpmh_invalidate function to return void 2020-06-22 14:23:46 -07:00
rpmhpd.c soc: qcom: rpmhpd: Add SM8250 power domains 2020-04-20 23:31:48 -07:00
rpmpd.c soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module 2020-04-14 15:39:56 -07:00
smd-rpm.c soc: qcom: smd-rpm: Fix kerneldoc 2020-07-29 13:39:43 -07:00
smem_state.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
smem.c soc: qcom: smem: Update max processor count 2019-08-21 15:58:01 -07:00
smp2p.c soc: qcom: smp2p: Safely acquire spinlock without IRQs 2020-12-30 11:54:22 +01:00
smsm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
socinfo.c soc: qcom: socinfo: Fix an off by one in qcom_show_pmic_model() 2021-03-04 11:37:24 +01:00
trace-rpmh.h drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE 2018-07-21 13:32:31 -05:00
wcnss_ctrl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00