Re: [PATCH net-next v4] keys, dns: Drop unused NUL terminator from upayload->data
From: Simon Horman
Date: Mon Aug 10 2026 - 06:11:45 EST
On Thu, Aug 06, 2026 at 10:04:54PM +0200, Thorsten Blum wrote:
> upayload->data includes an extra NUL terminator even though it is never
> used as a C string. In-tree users access only the first
> upayload->datalen bytes.
>
> Remove the redundant NUL terminator and allocate one byte less for
> upayload->data in dns_resolver_preparse().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> Changes in v4:
> - Drop patch 2/2 from the series and submit 1/2 as a standalone patch
> - Reword subject and patch description
> - v3: https://lore.kernel.org/r/20260427114422.313356-3-thorsten.blum@xxxxxxxxx/
Separating this patch out makes sense to me.
And the updated patch description looks good.
Thanks.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>