🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26550

Re: [PATCH net-next RESEND] net: tcp: Mark TCP-AO key derivation labels as nonstrings

#26550
From: Eric Biggers
Date: Thu, 03 Dec 2026 18:24
28 lines
8934 bytes
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
Technical Details
Message-ID: <20261203182428.GA2267@sol>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376821-linux-kernel-netdev=dewy.ru
References: <CALo22m26czjy-wANZ7eWuuOjuDH1P98QRE6obLuuzNxyOg8iyA@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376821-linux-kernel-netdev=dewy.ru
From: ebiggers@kernel.org (Eric Biggers)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <20261203182428.GA2267@sol>
References: <CALo22m26czjy-wANZ7eWuuOjuDH1P98QRE6obLuuzNxyOg8iyA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2564479"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PTcji2k73CUfHpYBUR1jkYSwRs0= sha256:LaDdpk7otgGcYexIwHLX8N3RY4pNMGSuHtwdxZMrcUg=
	sha1:mlc0wPTJ3XYxXC4C1kI2/XRODEU= sha256:BjJSTFfq9JCyEcuoRqPhuQn/sn8A2E4JF7gJ5dF2zQU=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 770CA117A0F; Thu,  3 Dec 2026 21:24:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ybcL0wGPRngn;
	Thu,  3 Dec 2026 21:24:41 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376821-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3E28D117A0B; Thu,  3 Dec 2026 21:24:33 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id C63CD2780F; Thu,  3 Dec 2026 18:24:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796322271;
	b=RznIK9MvADfM1fbNXQR7906o78EKZcOMPcDy4Znty0AuaM+hSTi1A+hwN4R/F8CBiTGH
	 hMLkd6bzHsrRcFKqdbK+Nz4WcHb9qzGj5SCdvf7NHDbigym/K/fs/sanjhNoGwY+6wINX
	 wbKwiQGGmXSeSTEI7NRbsLznkMz2Qqf5R9Q3+Gufue7ojUUMMqGcY68Sem2Sg5sRKpXT2
	 EjjQCbwj16fs43rl607xuJxGqcOfeiT9mx3S2Xi8quPV6PwUK+3ari01AMfzofBgCOJZh
	 xj2GlTKdRg3W8QIVl7WTVvfjCZmtII/nivc3Anv34C7KCmkNzitJrFyGq54icGC/RuQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796322271;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=A/WVQR/QgAEZlUd4LVJ+woM20gLURrL/zNQAdYmCLGE=;
	b=kNWvRiP8rQYisOUNsYlqWwf6FVBWIDB8OmkAQF3OX9/4sGU1AjnbvpnbSJ4KPaZGxxHA
	 QdWSy2iymjvwGV4yvSUyIQD98+egkUTOF1e7448Gl/klUpVz0HtOHYRn8ZH73q22AFptt
	 9k5N77HGO3WXINtcxHlx+PAEYA/uqnjoLpWohbq0JGev4oCPhYbEv5Hb6/6BAyK4G3zg6
	 aEbTpErkUfMiUg+6HzvRQPndqUWLtYO7IZ7HhdXte8OaJd+bKHAneGMCWOpwkNCp6OJI/
	 pkRLQhuN9eHXFjovORnlCVBpcmbRyOd4mnU+kfyK6bQYJUvRpxQVR0b9XqbwOWrTbrw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="iI/zG4BQ";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D7AB606A334;
	Thu,  3 Dec 2026 18:24:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iI/zG4BQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796322270;
	b=xUz1rwYamAmXdWcCj5TbqKdygY+MeTOTQ/43OYAFcC/+LpzDQaDZbYYVJXkY8KXz66HX
	 Cvcx/jVsMtRpQi6+2aoEOGNV2SWIrHDQ9pTJVQpyz6N751257Zjq/HQxRUoX3iLAwHckM
	 dzp3kRzKZRKLwhHthNKjTOYQBceytNU2vWid1iorSzNpOUS0tss2oypwA59yXl00tVYVf
	 +Uro5wPP7x2x2Cde8oTFqVm2nXJf4OAynIQdW61yPE+oJmBJDzzhIBeiU0jj0UZa75TsM
	 GCQHmlq+TqyIYuoYaNMlaVI8ygzIB13NmtDhdJUEhKBijM86IOewQCEI+VwguSmx7Mg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796322270;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=A/WVQR/QgAEZlUd4LVJ+woM20gLURrL/zNQAdYmCLGE=;
	b=Zm2NgJiqzlXyoB9UvF8VaKl1yjA0zFeAeZXNf57lujhKnxZ7lRfY9Itkh4xU6oFfT78z
	 Xpi8evhPY/LUnJ8fm4wYxOxEYHmq5MH/LJdFe+P1mo3X4CD0vSAWY3s0+V6QP15Z/D3cW
	 676B66UQ43tUDZ4jJ7jfUZ3SsS7YNCLfv+0CaqdMxVFpkHMHcgzsT+47iMBrYdkLToG22
	 Ia+xg2vc2D5LxfOfEmIkW7j9HvQA8/Hp/Acdt1/rfXBRXO/eOeV6o98wnqFTW5hn/G/1c
	 DrePr9J5XMrVCsk3XrDDqXFOfFQYvJElxcG3Om7IBfHROfL04OFN3r8v0o8ET5HsHVw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="iI/zG4BQ";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA672606A322;
	Thu,  3 Dec 2026 18:24:30 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 478361F00896;
	Thu,  3 Dec 2026 18:24:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796322270;
	bh=A/WVQR/QgAEZlUd4LVJ+woM20gLURrL/zNQAdYmCLGE=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=iI/zG4BQ9KvYKAkeSz8JbdBB6yD0PvnjkFTTz4yt9Vsl+fTmZn6hQ6Rt1DrI6sKML
	 5f6GAXKRDG5T8SEFerMV9WxBPX0ZPviNIJyXuJfgQRP8PiD4IYkPSLDZ20OCp8e+gR
	 0FpIyUI0uJmQGcLFFfxCrRTCsq1imkPJB/0KDGJZA0+20g6dUUz3Ui+hi91+gHHr8q
	 AYYSm6dI85QVUyKeedM6E1LtbTAEhY6kMzjhI/j5C0BeyyFkhkUo48HlN/ubkdltLE
	 qu1fBFb15mjqaFvqv8g+U7knIaBSRbMkFpqgSJCFSNdOB9BYVMJtrNJKTnmZJ2LFdq
	 mk3oK/FfQwOeg==
X-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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <CALo22m26czjy-wANZ7eWuuOjuDH1P98QRE6obLuuzNxyOg8iyA@mail.gmail.com>