]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: qcom: mdt_loader: Actually use the e_phoff
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Wed, 11 Jun 2025 02:58:30 +0000 (21:58 -0500)
committerBjorn Andersson <andersson@kernel.org>
Tue, 17 Jun 2025 03:19:53 +0000 (22:19 -0500)
commit47e339cac89143709e84a3b71ba8bd9b2fdd2368
tree0f9781c112267d84acbb9934d1c659188d194cb8
parentcd840362b0a7b3da59740c1380b18ce0ccf8c264
soc: qcom: mdt_loader: Actually use the e_phoff

Rather than relying/assuming that the tools generating the firmware
places the program headers immediately following the ELF header, use
e_phoff as intended to find the program headers.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250610-mdt-loader-validation-and-fixes-v2-3-f7073e9ab899@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/mdt_loader.c