Article View: linux.kernel.netdev
Article #8260Re: [PATCH RFC net-next v2 0/5] tls: perform TLS 1.3 KeyUpdate in the kernel
From: "Chuck Lever"
Date: Wed, 28 Oct 2026 14:21
Date: Wed, 28 Oct 2026 14:21
44 lines
11617 bytes
11617 bytes
On Wed, Oct 28, 2026, at 9:52 AM, Martin Belanger via B4 Relay wrote: > kTLS does not currently handle TLS 1.3 KeyUpdate. It never sends a > KeyUpdate. And when it receives one, it blocks the socket until the > application installs the next key. kTLS also does not enforce the key > usage limit on transmit. No argument here. > 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. The argument that was made that put tlshd in user space is that we do not want the kernel to handle something that the libraries are already good at (IOW, mechanisms that have been soaked in commodity usage by many consumers). Is that rationale different for handling TLS KeyUpdate? I see that the series adds back the HKDF functionality to the kernel. That seems like an indication that KeyUpdate should be handled via an upcall. Are there policy decisions that need to be made during KeyUpdate (like, has the peer's certificate expired, or has it been put on a revocation list in the meantime) ? -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID:
<76ccd502-f1d1-4135-b92e-d783f259a687@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-352882-linux-kernel-netdev=dewy.ruReferences:
<20261028-keyupdate-rfc-v2-0-eb5143b4c487@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-352882-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 10:21:38 -0400
Organization: Usenet Network
Message-ID: <76ccd502-f1d1-4135-b92e-d783f259a687@app.fastmail.com>
References: <20261028-keyupdate-rfc-v2-0-eb5143b4c487@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1787308"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:09tx6WBV9nj30lRVsW3Qhj87jKk= sha256:NirA/x9V9vviKwz9ZeCcq6U/bHXR7GloTCQAWvadUCo=
sha1:45i35ao/EhW0AnvRtO/CVQWsMeM= sha256:ypo0caZyPsNOJ6dQ+a10wL1xtetNceB85zOtm5YIg5k=
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 D1BA8125C33; Wed, 28 Oct 2026 17:27:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
tests=[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 e_u4JjU6FR_M;
Wed, 28 Oct 2026 17:27:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352882-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 1AF2C125C32; Wed, 28 Oct 2026 17:26:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id AB92E604F3C; Wed, 28 Oct 2026 14:22:05 +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=1793197322;
b=GZwN9oooCTHMBh1Uzc7FAaG+7ltBLGtpeQOEHZqYXACPwD+qeu3JqlAlDK1cl/1203Ei
GSIejm1aCsag+RvDHt6e1uNO6YulVumOwLrnZA40FzyapqvZ1LhoMYiygRZIjLzy0WvUy
ldcp8tMKAi3jeQPYFVLmz597u8ZhxvflJAAoW9cfDvTGHS6FkzLEZptYWgnpXPwSovswc
5Ca1pChR0oDQIL6S+olVxlfUkSpfaaK89Lr15jjQ3ru9gVddoty5rmVLuykVwSrVnHMED
4Y7gIQ9EBcPL+8iLUalJgnZD1fR6Pp4iRmi7RswzigkHdSiYVmOOmB0hqSeNWn3LAOg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793197322;
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=2DFl8D5AbpYniLCVgRy/mQv0p9Nen7WB6MhNchHMoOY=;
b=FKEQ/QLrDs3yFOgOs8zUUeA+yr4P/OnaWyK3Uf2PPqkYlZJda+a8vHL6rKhCVKpsVE4P
MDdb0iBUbe1Y5ePEtSSlGy9JRUlVJvVL57WftdFR0M8RqQt7FcKPyZrgCeTjXhwIYRm4n
gSZyEWHkbsSSiaQAi9SJKZZ75xrpA/PORRkg8O3G8x+YBljdjY65V1e1fZhMWoFbI0Rrj
a/NLnrAojKCVbcdL0pYaIrUglCX1H4jWVU034J4bq+1uRXa8Z/F81F5wtvb2gCoiwoihj
hsoPJq8Ystc6gbCN2sWXOp0EHZBa1sL07CLG5vfc7Czq8lW/yAjEHwykAD5fdNOjg2w==
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=GV39Z3BM;
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 3C014606A32F;
Wed, 28 Oct 2026 14:22:02 +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=GV39Z3BM
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=1793197321;
b=OgHlZFZYAHqgGCtsqbQlrxmiG+ZTKnlbcau3C1takspmBw28LvUydkOG0yT1UU+n5cLO
6KRkKkXgmJe/iBttNL7pdIW0khILEXSCXAqGQHK9b8HUm42+cLrBr/psRVw4ZPKijLBI3
rcKNbcIbWIIoTy+omcvY3eIFyYNsRaDuBaCvQbGggtBrvs7yk/fytJmZ0Yow2CDMWZYdP
CPohfCPnIpmkm3BNPtNGR5X8MU5T6pXqaU544GMKBAxYKz5JieECxfer0HYgYcdjWrffm
WgV+imsCZsbPITx+BAsguwFgC5Ysy12CDFQ8oYFnKqmgPWBctlFMrCquZsJs1BgrI1w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793197321;
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=2DFl8D5AbpYniLCVgRy/mQv0p9Nen7WB6MhNchHMoOY=;
b=yGgfxB9ODqIwtXPwpl0yh3kLpGq6Z3SlNYHnluSEhFPaecdH0gDZddxPpgDaGW2FOxel
N66caKjTi9FBFLP24HD5hv+a4Dg9slBMUrdBapgOtM67OOVun/Z5gaVI+jhtqJn+eI3BX
PuvFRIUpcN7kTqd5UXDWCa3ugF27HLZTJdxNZEahCdRTIumzlAurdKVVfpa2FoK+azfnC
p9CaT7DAu3OEbhkaNZB0aLKAObXTTMrRVYKiUn/IskkbgJ3Gf7bbZTdrXlyKqiHMWZ+XT
LqTe0ikMPBF4D3FE+PwHwpMJhcztehDFBFLAHBRBdf72vsslTBQxhPvdL1KwH94BLnw==
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=GV39Z3BM;
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 1A75E606A31D;
Wed, 28 Oct 2026 14:22:00 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EA071F01828;
Wed, 28 Oct 2026 14:21:59 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1793197320;
bh=2DFl8D5AbpYniLCVgRy/mQv0p9Nen7WB6MhNchHMoOY=;
h=Date:From:To:Cc:In-Reply-To:References:Subject;
b=GV39Z3BMq8guOH1JNEh5l5Ykd0J5SIsg2ewcgDSRWu+Futb2/mbkTZyplVKkgIy7S
denrPoKvlnuvGNbYRIa3C1LmYhjR9Toh312qygfMtacXZCv9ZioO3kmFDFGNSeDzFY
21gJQLrzZpGgOHU1eBnMoBfgw2UhAmMxlmbbJAdYn+ehZwezDpmbqqaxng3cAWHjR7
kO3dUSJM3+nP0n23H/3IE81cCJjblZjitfUyEKfWzR2Hv/zzsZs3lSZb0gE25LZIzH
mKHEDfI8y2wMeYD+i4rul3lqLYJmQT21fKUI3R8RwbXn8qqvsZcnAXsblNvOpSDqBc
GDDz4IduI64fQ==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
by mailfauth.phl.internal (Postfix) with ESMTP id 642FEF40067;
Wed, 28 Oct 2026 10:21:59 -0400 (EDT)
X-Received: from phl-imap-15 ([10.202.2.104])
by phl-compute-10.internal (MEProxy); Wed, 28 Oct 2026 10:21:59 -0400
X-ME-Sender: <xms:BwXiatPXCbP-mp8vFfVEJMQs85u7B0HKspOfkV-WWhxo1jlFOGDYSQ>
<xme:BwXiaqxKK99o0iUCmiK9H7aiVLnrpQPFHvKbPB6TGwcRRN5Mq7A6bdKSgKSK-m7Me
D2FEMI-lc3OlmHDzit-D2MJXv0ueoVMlI6u5qtVFzn3qyRO5Q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ailuser.phl.internal (Postfix, from userid 501)
id 32AC3782738; Wed, 28 Oct 2026 10:21:59 -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: 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: <20261028-keyupdate-rfc-v2-0-eb5143b4c487@gmail.com>