Re: [PATCH v4 3/4] soc: qcom: smem: validate private item payloads
From: Konrad Dybcio
Date: Tue Oct 27 2026 - 09:17:10 EST
On 10/22/26 11:47 AM, 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.
>
> 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>
> ---
The commit message should probably mention that zero-length
payloads are now considered invalid (but I think there aren't
any valid ZLPs). I think we can also keep the WARN_ON() for the
bad padding_data
Konrad