Re: [PATCH v5 3/4] soc: qcom: smem: validate private item payloads

From: Abel Vesa

Date: Wed Oct 28 2026 - 11:30:32 EST


On 26-10-28 10:33:50, Albert Esteve wrote:
> From: Sarannya S <sarannya.s@xxxxxxxxxxxxxxxx>
>
> Validate a matching entry's size and padding even when the caller does
> not request the length, and check that the payload stays inside the
> same region as the header.
>
> Zero-length payloads are now rejected as invalid.
>
> 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>
> Signed-off-by: Albert Esteve <aesteve@xxxxxxxxxx>

Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>