linux-stable/drivers/remoteproc
Bjorn Andersson 1ce0d1d365 remoteproc: qcom_q6v5_mss: Validate p_filesz in ELF loader
[ Upstream commit 3d2ee78906 ]

Analog to the issue in the common mdt_loader code the MSS ELF loader
does not validate that p_filesz bytes will fit in the memory region and
that the loaded segments are not truncated. Fix this in the same way
as proposed for the mdt_loader.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Fixes: 135b9e8d1c ("remoteproc: qcom_q6v5_mss: Validate modem blob firmware size before load")
Link: https://lore.kernel.org/r/20210312232002.3466791-1-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:13:01 +02:00
..
da8xx_remoteproc.c
imx_rproc.c
ingenic_rproc.c
Kconfig remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem 2020-10-13 18:34:38 -05:00
keystone_remoteproc.c
Makefile remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem 2020-10-13 18:34:38 -05:00
mtk_common.h remoteproc/mediatek: acknowledge watchdog IRQ after handled 2021-03-04 11:38:14 +01:00
mtk_scp.c remoteproc/mediatek: Fix kernel test robot warning 2021-03-07 12:34:15 +01:00
mtk_scp_ipi.c remoteproc/mediatek: Add support for mt8192 SCP 2020-09-25 23:37:42 -05:00
omap_remoteproc.c
omap_remoteproc.h
qcom_common.c
qcom_common.h
qcom_pil_info.c remoteproc: qcom: pil_info: avoid 64-bit division 2021-04-14 08:42:05 +02:00
qcom_pil_info.h
qcom_q6v5.c
qcom_q6v5.h
qcom_q6v5_adsp.c remoteproc: qcom: Fix potential NULL dereference in adsp_init_mmio() 2020-12-30 11:53:48 +01:00
qcom_q6v5_mss.c remoteproc: qcom_q6v5_mss: Validate p_filesz in ELF loader 2021-05-19 10:13:01 +02:00
qcom_q6v5_pas.c remoteproc: qcom: pas: fix error handling in adsp_pds_enable 2020-12-30 11:53:48 +01:00
qcom_q6v5_wcss.c
qcom_sysmon.c remoteproc: sysmon: Ensure remote notification ordering 2020-12-30 11:54:28 +01:00
qcom_wcnss.c
qcom_wcnss.h
qcom_wcnss_iris.c
remoteproc_cdev.c
remoteproc_core.c dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
remoteproc_coredump.c remoteproc: Change default dump configuration to "disabled" 2020-10-13 19:20:54 -05:00
remoteproc_debugfs.c remoteproc: Change default dump configuration to "disabled" 2020-10-13 19:20:54 -05:00
remoteproc_elf_helpers.h
remoteproc_elf_loader.c
remoteproc_internal.h
remoteproc_sysfs.c remoteproc: Add recovery configuration to the sysfs interface 2020-10-13 19:22:51 -05:00
remoteproc_virtio.c dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
st_remoteproc.c
st_slim_rproc.c
stm32_rproc.c remoteproc: stm32: Fix pointer assignement 2020-09-15 03:45:57 +00:00
ti_k3_dsp_remoteproc.c remoteproc: k3-dsp: Fix return value check in k3_dsp_rproc_of_get_memories() 2020-12-30 11:53:48 +01:00
ti_k3_r5_remoteproc.c remoteproc: k3-r5: Add loading support for on-chip SRAM regions 2020-10-13 18:34:40 -05:00
ti_sci_proc.h
wkup_m3_rproc.c