android_kernel_motorola_sm6375/drivers/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bjorn Andersson 64faf7d643 soc: qcom: mdt_loader: Deal with zero e_shentsize
commit 25daf9af0ac1bf12490b723b5efaf8dcc85980bc upstream.

Firmware that doesn't provide section headers leave both e_shentsize and
e_shnum 0, which obvious isn't compatible with the newly introduced
stricter checks.

Make the section-related checks conditional on either of these values
being non-zero.

Fixes: 9f9967fed9d0 ("soc: qcom: mdt_loader: Ensure we don't read past the ELF header")
Reported-by: Val Packett <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Reported-by: Neil Armstrong <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Bjorn Andersson <[email protected]>
Fixes: 9f35ab0e53cc ("soc: qcom: mdt_loader: Fix error return values in mdt_header_valid()")
Tested-by: Neil Armstrong <[email protected]> # on SM8650-QRD
Reviewed-by: Dmitry Baryshkov <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/20250730-mdt-loader-shentsize-zero-v1-1-04f43186229c@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <[email protected]>
Cc: Yongqin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-10-02 13:34:30 +02:00
..
actions
amlogic
aspeed soc: aspeed: lpc-snoop: Don't disable channels that aren't enabled 2025-08-28 16:21:15 +02:00
atmel
bcm
dove
fsl soc: fsl: qbman: Use raw spinlock for cgr_lock 2024-04-13 12:51:27 +02:00
gemini
imx
ixp4xx
lantiq
mediatek
qcom soc: qcom: mdt_loader: Deal with zero e_shentsize 2025-10-02 13:34:30 +02:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-03-01 13:13:34 +01:00
rockchip
samsung
sunxi
tegra soc/tegra: pmc: Ensure power-domains are in a known state 2025-08-28 16:21:31 +02:00
ti soc: ti: wkup_m3_ipc: Send NULL dummy message instead of pointer message 2024-07-05 09:08:28 +02:00
ux500
versatile soc: versatile: realview: fix soc_dev leak during device remove 2024-11-08 16:20:34 +01:00
xilinx
zte
Kconfig
Makefile