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=1796064808; b=1xZlX0HIId1wWi6/WVywcTGQ3wFJjMpccF9/cU2oI/EvWehT3zmZ1yaXoXGkVq1bQbZE 3rMX5tp9ufQKLSDe2J14HvnrOlcsVBmSTAF+JVc/6UJg3HtcWvxpCQSchMG6I9EMH7ZQV ReX4RhxSa11xSH6Uj1lKTWPTPEKt4jwNTyvc+ZjWi3eRVw80zCCi3b2o7tNUEoM857uVr XsAxq9qd5CcvBPm/Z8qJ08IaId+AnP4IEcDCC9Lb74PXXaFHSstze/EknG2SHH2gvY+6d NYFDDOGhrfMhYwxLEOVo40zpKB3tQtNaxL1ZBjx2NcOCZPPc6BPsuUpld3gtR8gV6eA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796064808; h=Received:DKIM-Signature:Received:Received:X-ME-Sender: X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To: References:Subject:Content-Type:Content-Transfer-Encoding; bh=AI+Ehc23yw5GzqryMNY4doDeDnYzUij+h8lSjVLFWS8=; b=NutLm1rSuzRciWYJAf3vxC81EpoUSCiVtRDCkWdfDE5dVGnefn0PnOipwy6ZQ1xcJLFs VPiyXyT9WserDo/jFuw5YhlmvItuF9zoERFP6t9em1tyoc097FI0NZlrtxEB1hzTWC6V/ U9Zc9EoiA+atImdZ4NX1C+/RJqxwCgbqI00jSU4DkfOrHetGnYjKppLvTC8YRYjl4Nssb Bw1C2Kr16i5i3g1u3mmMt+20/oR6zUxFJNvxBjfx3WwI+TttqaEx5MOB9VHy8y0N0w+77 IkwjOAlXtZejzebz3trF29YduWjHMHMrD478yE2AuzbaHctvNejQI9CIAVib5eWDXtQ== 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=XKSP0oQm; 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 4A795606A31C for ; Mon, 30 Nov 2026 18:53:28 +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=XKSP0oQm Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62F291F0089A for ; Mon, 30 Nov 2026 18:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796064807; bh=AI+Ehc23yw5GzqryMNY4doDeDnYzUij+h8lSjVLFWS8=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=XKSP0oQmAJmkNbKb7rg0pTKatuWJh73/nDczdS3kqGjXxZhpqOIKI96t16qvJrBkY HZ1WsDS6PYFPb/9kQ32Z1lNNSHUNX+p29cWjr5Br1SNbdDm6164GrrwSy0cEnTT5FC B3BcHFN3tTrbKhdmrC7MO6GF1MHt7QKWRf1X8OuPI2tOjYY2eC8zU+1AcHSc8Cxhby BlRJ5jk8tzJot6weiji2x9s8WnenxwwxCdTHprOmTqnYmllyiCThkujiOTM/CBrYrS 3i70tUjyfbi3LD8xuOcCcy18HgsgWQGAWuqHDTd0UV3vdslG8CUm6KS/CDndvPxtaF RvNbkmUhsPvDg== Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfauth.phl.internal (Postfix) with ESMTP id 40252F40067; Mon, 30 Nov 2026 13:53:26 -0500 (EST) Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-10.internal (MEProxy); Mon, 30 Nov 2026 13:53:26 -0500 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTFzm+biQJvxxAHG0q+v3TtqHu7AsC0fs+wE91/NgK7Ol91Bgs1E2Fmupp/3XJrZhf 5dd15fQdo21QRMXYnbmAXKNwT7YSvgnYWNShYw+zHVRnlFxdBAtHykBtuS/71nUb1VpcMP bN1ZWQODJi079f8fXzcKNAf2EP4ctHKLsgpl0rBlftn4bSuBb1AEkgHvIJLJCX0bhoAaYc 0xyWE1ZbATm/VLYRTFJZRDCx8JlbjFXG4F63N6a1uug4vtPE4MHepEdJg35AVgFdu3stmx yblJ3j3F5yEAh9Y/qYhWDE3vYnsS/er+jSDBc1PffOoSiHJps3hT0suJbTo64fAB4FklLT I6NcGL29uyHiGyWPET33WgAoc1bowcu0DmPeTOGGXdXZVGY/P+T0ar9t2Zi5FYpScjYVgR TO62QFmi9LD142Ghqan8Cb6Ukzz0NHJhSAThdjSkqG6ZsL4ETczn9LY+SCFADOjGgIqw/n BA3Kk2DMSIGWEsqeSpQfNhqp6SxNFcEME+nvDm1CtYwNV0ns87rSrKg5CcfM2rgrx3srlz GwXB1uBhINFBbu5/loySuTGQuVM6rWk7TEhbNnpNcLyn+B4o/IEnZ+b/PGpFkdKzq/Rct9 S7dz2LpEuVqXhOT5rSoXnw8od2M0JtESS3xIQbxHwBjSNrJtqyryAfy65Snw X-ME-Proxy: Feedback-ID: ifa6e4810:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 2AA79780070; Mon, 30 Nov 2026 13:53:26 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Mailing-List: kernel-tls-handshake@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: ApQaGAg__HSN Date: Mon, 30 Nov 2026 13:53:06 -0500 From: "Chuck Lever" To: "Martin Belanger" , kernel-tls-handshake@lists.linux.dev Cc: "Wilfred Mallawa" Message-Id: In-Reply-To: <20261130-tx-payload-len-fallback-v1-1-b52dcfb18f15@gmail.com> References: <20261130-tx-payload-len-fallback-v1-1-b52dcfb18f15@gmail.com> Subject: Re: [PATCH] tlshd: allow kernels without TLS_TX_MAX_PAYLOAD_LEN Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, Nov 30, 2026, at 6:32 AM, Martin Belanger via B4 Relay wrote: > From: Martin Belanger > > configure detects TLS_TX_MAX_PAYLOAD_LEN in the installed kernel > headers. A kernel older than 6.19 rejects the option with > ENOPROTOOPT, and tlshd then fails every handshake. Distributions > often ship newer headers than the running kernel. > > Ignore ENOPROTOOPT when the peer did not negotiate a record size > limit below 2^14 bytes. The kernel then sends records of at most > 2^14 bytes, which the peer accepts. If the peer asked for smaller > records, the error stays fatal. > > Fixes: c1610edc2f08 ("tlshd: support setting the record size limit") > Link: https://github.com/linux-nfs/ktls-utils/issues/63 > Signed-off-by: Martin Belanger Hi Martin - While we're waiting for review from others on the mailing list, I've opened https://github.com/linux-nfs/ktls-utils/pull/65 -- Chuck Lever