From: Krzysztof Kozlowski <krzk@kernel.org>
To: Sabrina Dubroca <sd@queasysnail.net>, Hui Peng <benquike@gmail.com>
Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfrm: reject sub-32-bit or unaligned alg_trunc_len in attach_auth_trunc()
Date: Tue, 22 Sep 2026 00:06:08 +0200 [thread overview]
Message-ID: <d118aa7d-b7a9-4e52-8b20-1a3d11eef00e@kernel.org> (raw)
In-Reply-To: <arFOgwhswr1MoKVm@krikkit>
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
prev parent reply other threads:[~2026-09-21 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-19 21:06 Hui Peng
2026-09-21 15:34 ` Sabrina Dubroca
2026-09-21 22:06 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d118aa7d-b7a9-4e52-8b20-1a3d11eef00e@kernel.org \
--to=krzk@kernel.org \
--cc=benquike@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®