From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 478361F00896; Thu, 3 Dec 2026 18:24:30 +0000 (UTC) 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== Date: Thu, 3 Dec 2026 10:24:28 -0800 From: Eric Biggers To: Anggara Putra 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 Message-ID: <20261203182428.GA2267@sol> References: X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > --- > 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