Re: [PATCH v5 2/4] soc: qcom: smem: validate private entry list walks
From: Abel Vesa
Date: Wed Oct 28 2026 - 11:35:18 EST
On 26-10-28 10:33:49, Albert Esteve wrote:
> From: Sarannya S <sarannya.s@xxxxxxxxxxxxxxxx>
>
> When walking private entries, use the uncached/cached free offsets as
> the list bounds, require room for a header before dereferencing, and
> reject a next pointer that does not advance.
>
> Skip the cached list when the cached free offset is at the partition
> end.
>
> Signed-off-by: Sarannya S <sarannya.s@xxxxxxxxxxxxxxxx>
> Signed-off-by: Pranav Mahesh Phansalkar <pranav.phansalkar@xxxxxxxxxxxxxxxx>
> Signed-off-by: Sudeepgoud Patil <sudeep.patil@xxxxxxxxxxxxxxxx>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
> Signed-off-by: Albert Esteve <aesteve@xxxxxxxxxx>
Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>