Article View: linux.kernel.netdev
Article #8279Re: [PATCH RFC net-next v2 0/5] tls: perform TLS 1.3 KeyUpdate in the kernel
From: "Chuck Lever"
Date: Wed, 28 Oct 2026 15:01
Date: Wed, 28 Oct 2026 15:01
75 lines
12835 bytes
12835 bytes
On Wed, Oct 28, 2026, at 10:49 AM, Martin Belanger wrote: > On Wed, Oct 28, 2026 at 10:42 AM Hannes Reinecke <hare@suse.de> wrote: > > Thanks, Hannes. Two points to add. > > On 10/28/26 3:21 PM, Chuck Lever wrote: >> >> This applies to TLS libraries in user space as well as kernel users such >> >> as NVMe/TCP or sunrpc: >> >> >> >> - GnuTLS sends a KeyUpdate after 2^24 records when it runs its own >> >> record layer. With kTLS, the record layer is handled in the kernel >> and >> >> GnuTLS therefore never runs the check. OpenSSL never sends a >> KeyUpdate >> >> on its own. >> >> - NVMe/TCP and sunrpc don't have a mechanism to install a new key. A >> >> conforming peer that sends a KeyUpdate stalls their connection. >> > > > >> > The design intention of these consumers is that they are supposed to >> break >> > the connection and create a new session, rather than stall. If that is >> not >> > happening, that's a bug. KeyUpdate is complicated enough that backporting >> > to LTS is not really an option, so that bug needs to be addressed first, >> > IMHO. >> > > > > A reconnect is also a valid answer to the record limit: RFC 9846 section > 5.5 allows > closing the connection. The cost is the problem. Depending on the load and > link > speed, the 2^24 limit can be reached in less than 10 minutes in many cases. > Each > reconnect stops the I/O of the queue and needs a new handshake upcall, for > every > queue of every controller. A peer that sends KeyUpdate on its own causes > the same > reconnects. With this series, the connection stays up. I get that dropping the connection is bad; the current weak-ass implementation is meant to handle KeyUpdate until we have a proper spec-conformant implementation. My concern here is if the current design is malfunctioning in LTS kernels, the only mechanism we have is to fix it upstream and backport the fix. I don't believe stable@ would be happy absorbing this full series. Your commit message claims the connection stalls rather than getting replaced. If that's true, that needs to be fixed before this series gets merged. Can you confirm? I don't expect such a fix would be large, but the ordering matters. -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID:
<097a2d7a-af80-47b0-b800-238396e6e662@app.fastmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352899-linux-kernel-netdev=dewy.ruReferences:
<20261028-keyupdate-rfc-v2-0-eb5143b4c487@gmail.com> <76ccd502-f1d1-4135-b92e-d783f259a687@app.fastmail.com> <3544cb56-e43b-49ec-aa94-beafe061879b@suse.de> <CAPG1HMsnUDa=Q5O4fwZOU=Pd+m7ahzu574Cs+mWoB_9KUT5ASA@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352899-linux-kernel-netdev=dewy.ru
From: cel@kernel.org ("Chuck Lever")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH RFC net-next v2 0/5] tls: perform TLS 1.3 KeyUpdate in the kernel
Date: Wed, 28 Oct 2026 11:01:23 -0400
Organization: Usenet Network
Message-ID: <097a2d7a-af80-47b0-b800-238396e6e662@app.fastmail.com>
References: <20261028-keyupdate-rfc-v2-0-eb5143b4c487@gmail.com>
<76ccd502-f1d1-4135-b92e-d783f259a687@app.fastmail.com>
<3544cb56-e43b-49ec-aa94-beafe061879b@suse.de>
<CAPG1HMsnUDa=Q5O4fwZOU=Pd+m7ahzu574Cs+mWoB_9KUT5ASA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1796715"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4SZqQKlP1xiJ3yETKSGKEvk6p34= sha256:UR8zXZl8zxU8DJaF7XPQY2ak9ZBMiVBpDmHlFYlR7SM=
sha1:yxtT9gAu6dE8NqaqsWn9EBSVI9M= sha256:M6X//cAbMEo1WJwGqfbYebu1vFWwpZuUtcZNYmWhe0g=
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 D8A23125C38; Wed, 28 Oct 2026 18:11:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 QYFItb_8L6wU;
Wed, 28 Oct 2026 18:11:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-352899-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 48CE1125C33; Wed, 28 Oct 2026 18:11:11 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 2E52526E84; Wed, 28 Oct 2026 15:01:55 +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=1793199706;
b=Z3hpdiBMwsD+3Uf80CuR3AlVoyYimIVd0lQTZwuXXEMv7c9dXzICHGNVtdWyPvJAxD/v
KSrl/iBCsD9E4ITh/cZ1MbcKe5VebQex7axuHNNbkW52pSLIuge8DB+Q7KGpSi8TQSgn5
Fz9wc98HUcugEGXyfX7AvV1ei9IBoCyJH3oPfLk1iVy+tENqCPAQWmd8JG9pG/pGSNgeR
RwfjbnIx5nUjrLJRN0Vt4sBMPhB8PnjNav3gzXP5m71Z5Bi7Ncgkhn6kCdKyDcsYh17/x
QwyKJw00CJRIWh5jweTxyqXVYBDM8pmX4DrvOq9VFHiRwe9DYJOmuKAfIbsc4RKbxJA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793199706;
h=X-Original-To:Received:Received:DKIM-Signature:Received:Received:
X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:X-ThreadId:Date:
From:To:Cc:Message-Id:In-Reply-To:References:Subject:Content-Type:
Content-Transfer-Encoding;
bh=iv8Bt4PNiniH/Ck/gotMmnbuIcouH8T5AQxjqoDvLHY=;
b=gsQf/o2InIbn7H4vgvDCf8I9PrMO8MgQc58gng3DZQ6lN2/R1sh0q/XE1Hkm95yk7Gir
qU3+1V/1CaZkOcUef6dP0J1k1Iobhh0RPR3Av+jlXJIBNbJAiia9LB0rB3cNHKyOrvUIr
MZdAGeWqVOh0srI2XfEryN2WpnXNKY1dEUmZET0a3hOvhseEXuOk4SGWd4cSWWFajTy65
g3ba65uJJs9qqJbWAhxx59dJPO/rBvuUH0YYiNdxrti635yPBTSC2N0MkjuaQ0uovmXC4
POH0nPDIoXyjyswCfNlk+cr6vcGP+Z++GT2zX/L7I12A9CP6Ze6uwvPR9hY1W3Xu+Ag==
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=I9NMENC4;
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 B6D9E606A320;
Wed, 28 Oct 2026 15:01:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I9NMENC4
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=1793199705;
b=rh/6bPcmqUdAWM/bzNsOdwB4sGMecxdceReT6n6QOD6LgBK7zwOV8B0gHQX2BOEi3jBi
BjhXfRD79hvXWfNhgMFlvaqR7V0hEUsDS55WP/jnYLy59kGIyS3iPls0a4T7Nm8bF5J3Y
OM1CJM8qNtJnvAOXFOWfeNEYGcMgrWy9+IgiBaenMgECWTfQSvFKc4+PdM96YGwCEsHz+
PnsGm1BRMBCGoaZcEvCvmvKn7rZcKNrIwpK97y7qw9YyMBDOk1Zhe+0D77rppBvwiPtHh
kWtMi+GCNTCxvgB6JWCV+o30fda5JjuiBi4v7fqnRdd3auWqGdlEcoxgmmIQOEkbnYA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793199705;
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=iv8Bt4PNiniH/Ck/gotMmnbuIcouH8T5AQxjqoDvLHY=;
b=5XXczjpDzUrJGoJhwJeS5rK/V6//byoWIbzNBJw5UECuGsTcttDC/F4eXlBdfB3HueQX
sYjQNDQBOdKOmh5rWCZ1z27biv/hjFGAuB2z+iq5BQET2RHcNFBpF/BwlO8+3JlSes+AS
NXuFsFQO7f3ACqylx5Sl4g8aNZeq9aDRO5k6qUWydfSuHmUmEXRyqw7uDxqb93ozdzUx1
UlIDC+icGGRwPw0jWkl1JKbcDLb+nJ4asraD3TjsiCPqJMLczmzct6QLtXWmG7GMwz/8j
ZUEYayxlJ52Nn6DUqweB8ccGjGjSGEBEqNfM9hfgPFaxMXLcKFtwgulF6dAAky1hj0Q==
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=I9NMENC4;
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 9E21D606A32E;
Wed, 28 Oct 2026 15:01:45 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2C681F031E2;
Wed, 28 Oct 2026 15:01:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1793199705;
bh=iv8Bt4PNiniH/Ck/gotMmnbuIcouH8T5AQxjqoDvLHY=;
h=Date:From:To:Cc:In-Reply-To:References:Subject;
b=I9NMENC4QHj8Hp/zxXWZEW7S1Q5B6307GpE9jC1kyvbTMXZBBqjZvnEuhg9nhQF7F
oTrPuJht8MfUSWTLPQMZhXhRqsq8PyEJxJtFL6UKvLJiOeCzQH3xIO+zPlGj98swzN
tX9w7QF5eupBbCbfMZvR3U68DETFDMs0y3L60OiTLJLdA6dIKzH/t8J6SmnnqtRT/m
TxzFXdw1ZdmQlpXPDwnLdAIcskv+qkc++BPQny+nm15Pe/79q5PzXRRlLBdQd1jndP
2FS6U/B7LsRtKm64b1r1HQmXyv6CYe3jLam1XjBAVJ0Ax8peboKxG5q/bQR/maOEP+
omhCOr7gbyrHw==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
by mailfauth.phl.internal (Postfix) with ESMTP id E00F1F40066;
Wed, 28 Oct 2026 11:01:43 -0400 (EDT)
X-Received: from phl-imap-15 ([10.202.2.104])
by phl-compute-10.internal (MEProxy); Wed, 28 Oct 2026 11:01:43 -0400
X-ME-Sender: <xms:Vw7iao-ppO7ONFM2Y-RXQOhFAx1gmiBWlpZgjLE16S3av8SiR1tFJw>
<xme:Vw7iarh_1blI6OIc057K-pzkHR9IWNjd95871_Ld0x6Gflln5bvQ_S0GOKeq-2WBA
Zq38uXtUkc3XPcEHVpHkxS8b5CXl536d7_Lyoyna-3LaV5WztLovCvthw>
X-ME-Proxy-Cause: dmFkZTFHW0LzfJAQ3PuYMAMPTg1dBdg1MgkjCAkuUubpJCx1P7JA5mGeAT1UOP7m9/8b0f
N7XX+x9Mf3qUMsnP0qr1YSyVQPZ4CvSbzvC7ZS0ZKXkjlISC7JKc2LN5yxfmw3EEM5euhL
gEkMXX8rZWMCyg8wCTsAlIED2fdqjVPEnwWndbg49r2MPb/peyMV76jMNVSME3kHrfU4Xo
nGpABU7pgLMbFuEqhzAY6VYTCRtjg+OzUy6nSqfFLlrDMrPw+yJDDbfKsVHE5beUKu8vfc
7lVKq//Ffe9uYjpyVvzoZp0RPg/iYchl88Psk3UD3Fxafkn847VcXTJwhVhdOw0te9O5r2
6K2jC1UJk+7znKK1aoE8ILp/sV6KC/a8nruZpLphWh0yXGxcIWCuOmZgLhTdHYgj/DAajY
Nyr0USnC3AWYAst2VpEiG//3oe0Vlunl1aHqm+GCw1xz5cARHLKhDOvocAIJTiHTlNRKFf
iUSHF6py6PmXuv7tOOw2eDA8sfGE7EOhpn92guNJrvMvR55g3WXStl3pzj0WoZ6R5vsZHo
0cMhRdpK1QSGauQkNNL6iur+yxgFZlg0zheUu02ulufm5G4OGd0h2A6wVOwk3kauSxWYbU
mI7it/zmv4wrwfq+4QZtl0/oEuStJJGliFGncQeXoUW2jxd1i0LAQzIOsmxQ
X-ME-Proxy: <xmx:Vw7iavZwFa1tsNuRCG5loTb5yE7wZExXr-9lHTIWkiKXam83GiT3zw>
<xmx:Vw7iap_DdzKvvC8g-vwv7mxx4RyiRRYl4irJOHTPZI8KaISaFANKbg>
<xmx:Vw7iah_BTR2lu4ILjMpsb3GgvAx960218_bMW2wf7wdnBwoiQlMwqA>
<xmx:Vw7iaqkHgkKAJTyEtU_V3-U4haJWynBi3QmNPuGdqIduOGDDehBiHA>
<xmx:Vw7iaskpNxrOSzVIXPrllUnbUOI_acFdZLXF-7VDXSUcMfwdGRHgVj8Q>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
id B2E51782738; Wed, 28 Oct 2026 11:01:43 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
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-ThreadId: Ae7b_N49t5D-
X-Cc: "John Fastabend" <john.fastabend@gmail.com>,
"Jakub Kicinski" <kuba@kernel.org>, "Sabrina Dubroca" <sd@queasysnail.net>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@kernel.org>, "Paolo Abeni" <pabeni@redhat.com>,
"Simon Horman" <horms@kernel.org>, "Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>, "Shuah Khan" <shuah@kernel.org>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org,
"Hannes Reinecke" <hare@kernel.org>, kernel-tls-handshake@lists.linux.dev,
linux-nvme@lists.infradead.org,
"Alistair Francis" <alistair.francis@wdc.com>,
"Martin Belanger" <martin.belanger@dell.com>
X-In-Reply-To: <CAPG1HMsnUDa=Q5O4fwZOU=Pd+m7ahzu574Cs+mWoB_9KUT5ASA@mail.gmail.com>