Re: [PATCH] xfrm: reject sub-32-bit or unaligned alg_trunc_len in attach_auth_trunc()
From: Krzysztof Kozlowski
Date: Mon Sep 21 2026 - 18:06:55 EST
On 21/09/2026 17:34, Sabrina Dubroca wrote:
> I'm really confused here.
>
> 2026-09-19, 21:06:23 +0000, Hui Peng wrote:
>> In attach_auth_trunc(), userspace supplies `ualg->alg_trunc_len` (in
>> bits) via XFRMA_ALG_AUTH_TRUNC, and attach_auth_trunc() only checks that
>> `ualg->alg_trunc_len <= algo->uinfo.auth.icv_fullbits`.
>>
>> However, ESP and AH convert `alg_trunc_len` to bytes via `esp_authsize =
>> ALIGN(x->aalg->alg_trunc_len, 8) >> 3` or `ah_authsize =
>> x->aalg->alg_trunc_len >> 3`, and pass `authsize` to
>
> Did your LLM make this up? My kernel sources don't have any of this.
>
Don't waste your time. This is AI slop agent posting (one of 500 more of
postings where agent does not care about replies).
Best regards,
Krzysztof