[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5d7a3b97-d840-4863-91a0-32c1d8e7532f@linaro.org>
Date: Thu, 1 Feb 2024 15:50:13 +0100
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Auditya Bhattaram <quic_audityab@...cinc.com>, andersson@...nel.org
Cc: linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] soc: qcom: mdt_loader: Add Upperbounds check for program
header access
On 31.01.2024 10:42, Auditya Bhattaram wrote:
> hash_index is evaluated by looping phdrs till QCOM_MDT_TYPE_HASH
> is found. Add an upperbound check to phdrs to access within elf size.
>
> Signed-off-by: Auditya Bhattaram <quic_audityab@...cinc.com>
> ---
Could you print an error when this happens? There's a lot of EINVALs
in the MDT loader codepaths, but you never know which one fired..
Konrad
Powered by blists - more mailing lists