From: Eric Biggers <ebiggers@kernel.org>
To: Anggara Putra <anggaraputra87.ap@gmail.com>
Cc: netdev@vger.kernel.org, edumazet@kernel.org,
ncardwell@google.com, kuniyu@google.com, davem@davemloft.net,
kuba@kernel.org, pabeni@redhat.com, willemb@google.com,
horms@kernel.org, linux-hardening@vger.kernel.org
Subject: Re: [PATCH net-next RESEND] net: tcp: Mark TCP-AO key derivation labels as nonstrings
Date: Thu, 3 Dec 2026 10:24:28 -0800 [thread overview]
Message-ID: <20261203182428.GA2267@sol> (raw)
In-Reply-To: <CALo22m26czjy-wANZ7eWuuOjuDH1P98QRE6obLuuzNxyOg8iyA@mail.gmail.com>
On Thu, Dec 03, 2026 at 11:50:32AM -0500, Anggara Putra wrote:
> The TCP-AO key derivation input contains the six bytes of the
> RFC 5926 label. Mark both fixed-width fields as __nonstring so GCC
> can distinguish them from unterminated C strings. The serialized
> input and its length stay the same for both address families.
>
> OpenAI Codex assisted with the patch, commit message, and local tests
> using the public KSPP compiler diagnostics.
>
> Fixes: 068f5a009556 ("net/tcp-ao: Use crypto library API instead of
> crypto_ahash")
> Link: https://github.com/KSPP/linux/issues/382
> Link: https://github.com/KSPP/linux/issues/383
> Signed-off-by: Anggara Putra <anggaraputra87.ap@gmail.com>
> ---
> The IPv4 and IPv6 TCP-AO objects matched their pre-patch x86-64 builds
> byte for byte. The connect, self-connect and key-management kselftests
> passed for both address families in QEMU.
This patch is corrupt and doesn't apply.
The commit message also doesn't say anything about what the consequences
of this issue were. It seems there were none, since
-Wunterminated-string-initialization isn't enabled yet? If so, this
probably shouldn't be marked as a bug fix.
- Eric
prev parent reply other threads:[~2026-12-03 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:50 [PATCH net-next RESEND] net: tcp: Mark TCP-AO key derivation labels as nonstrings Anggara Putra
2026-12-03 18:24 ` Eric Biggers [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=20261203182428.GA2267@sol \
--to=ebiggers@kernel.org \
--cc=anggaraputra87.ap@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-hardening@vger.kernel.org \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.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