Article View: linux.kernel.netdev
Article #25197Re: [PATCH net-next v6 0/6] tls: perform TLS 1.3 KeyUpdate in the kernel
From: Martin Belanger
Date: Tue, 01 Dec 2026 11:48
Date: Tue, 01 Dec 2026 11:48
24 lines
12605 bytes
12605 bytes
Hi Sabrina, I hope you are feeling better. When you have time, could you say whether the case in my reply above changes your view on KeyUpdate in kTLS? The series is not only for kernel consumers. User-space libraries benefit as well. A library above kTLS cannot count records precisely, because the kernel splits and merges the bytes it writes. It also cannot place a KeyUpdate at an exact point in the record stream. With the series, GnuTLS or OpenSSL can register the traffic secrets when they install the kTLS keys. The kernel then handles KeyUpdate in both directions, also for sendfile() and splice(). Without the secrets, nothing changes. If the direction is acceptable, I would like to post v7 before net-next closes for the 7.5 merge window. v7 drops TLS_TX_KEY_UPDATE and addresses the Sashiko findings on v6. If you still have doubts, I will wait for your review and not post v7. Thanks, Martin
Technical Details
Message-ID:
<2228d9a4-4c13-49e9-a29c-cc89e2734de0@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.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-374983-linux-kernel-netdev=dewy.ruReferences:
<20261105-keyupdate-rfc-v6-0-99b695f9eb4f@gmail.com> <au5JP__7P_PzwDUe@krikkit> <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-374983-linux-kernel-netdev=dewy.ru
From: martin.nvme.dev@gmail.com (Martin Belanger)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 0/6] tls: perform TLS 1.3 KeyUpdate in the
kernel
Date: Tue, 1 Dec 2026 06:48:05 -0500
Organization: Usenet Network
Message-ID: <2228d9a4-4c13-49e9-a29c-cc89e2734de0@gmail.com>
References: <20261105-keyupdate-rfc-v6-0-99b695f9eb4f@gmail.com>
<au5JP__7P_PzwDUe@krikkit> <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1700664"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iz3JQOMp7egQM5ZMYwzs+rl+NYw= sha256:kgbbDuBXLpymCWSI275e0Od0+GkseVPnCu6TVA4lFX8=
sha1:vdYVJCWLFpePJZqGccIXrQUYj4E= sha256:P2JgIN09R6Y/5V7d/Kmf2/5X+SlWq8xFk0l4zfKksc8=
Content-Language: en-US
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 C1422117350; Tue, 1 Dec 2026 14:48:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
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=gmail.com
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 x5ycS0yFtbzd;
Tue, 1 Dec 2026 14:48:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374983-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 6DB0611732A; Tue, 1 Dec 2026 14:48:11 +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 A6B472723F; Tue, 1 Dec 2026 11:48:09 +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=1796125688;
b=Qm+dp9DJh1Z2vHoSO/1LMqzOAkf4gENLVpYf7zHcSFrw53igT26F6A8DSYbRdlRSph8l
34o1gASRNvULM5GDFcfuY/zwc/git+JzAVw1seMZEpUYyamQnHEzLM9vcywkDqrDREMDT
mY4SmlG1RBP/4wcPcjGmKLJNaxuUW14zVhxbmkzzFjozUX/PVZINC6toPDFUXrZW9fTgL
1mWP/e6lU/uIWW2cu5Dzai9YskOl+JvDSdqs2BGmlu65vA7bD+IYoPXNcs1/Afx5pvVe8
xDqnbraLroA34WIXkzpZGaZ2gZ5w0BYf8IzUf5N6clgXO8hoSOTUUhR023vYSrmZXvA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796125688;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:User-Agent:Subject:From:To:Cc:References:
Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding;
bh=NbyVGHmp1Y/HYy90qOk1Q1gPIPKVLvcd2tskUd605iM=;
b=ONTQdTGVs49kSEYttz4jNFhRA2OkzAQ3h7XsEGk7IJd8gIvNObmIUEDC0pu2sS2oXnFD
5dstgyBH5JnsqCl3RbwcycCYsH2MMOfsYKd2Ua6uf7m5ddLMVNAD7DqarTfGEWcv2UO1f
mtivjf+3iFhV/7hUq8Vecte2UToQ3mPVZg+OSRs0lauXvdsbdPWquuIsMwpILvntOqjQd
SVtgdJ3mf2Zz6mrsC5NN0uPM69/MK/BhuLNGkORx81CaizbvI8gekhh2IV0Z8qksOWPYa
0nmKsNpXs8uvAKIvIqsRxjhCxiRVdMtcm4HRF8hJ2aUEizLmG4p3MOuLgJHRHbUUkzQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oohNB5Qw;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 A92CC606A332;
Tue, 1 Dec 2026 11:48:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oohNB5Qw
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.135
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796125687;
b=wKmg24E5z3Xrw6+RpIPXDDiYteSkXUiAeOmyUmHS7DRAG4BLktRmmM17fOWUPo+fBmgs
5HkjwX0Purog6saI81/vmBFzDzVGxu/qYHPOcGxE/FFIABe1T8OLOoqyEhEIAbNafd1/r
WOwQP8a25wfooY4MOloPZnUqroyk9PVHfAjsE4sycfqsjwfAjRRoyKlqJ74C2lCzgI7nB
kxgPsEs+QUmdbD8XVHiSOQjw5zwF+mcpE43P/XVi4nIkQSRZy7C2Wep8juOFyQzz4aysu
BEc6+e1ndruspCjAguirqvEFyFsMvPwd/jgZXft2wSyMJKhN7r4YA0QU/584kMHWJ4g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796125687;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:MIME-Version:User-Agent:Subject:From:To:Cc:References:
Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding;
bh=NbyVGHmp1Y/HYy90qOk1Q1gPIPKVLvcd2tskUd605iM=;
b=jgKoeG27U3hzXqM8Vr8x4yGzMCN7wRYfw2HcY5ye5dZqRSjYDJbBpof0orZ3adUOaA7+
+zu8a3HJvFyYSPflVdBj8Q6OEZjj3ufEZBdV9fmwhed1ynn6z5PTBr/2gEuIoxebzgUgs
uzm1EuI8mh1WWBIfno/BxpTi+VxWv/R67fD403iv2qXo9iNoWU/cI5Bpk/v0pk1hGlFtz
E0BsuWMTmgDCo1InqjvejKEigvt3gzJk72jI2hAL4OT0Bmwn3iRXH7mntp2sF86he0Jid
EyJqVUxJn5k6cbwuMeIp2RNcjhzrG+lYuRFOlrOEfn3jv7Emum6rhg1H6CBI5FtGY5A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oohNB5Qw;
arc=none smtp.remote-ip=74.125.224.135
X-Received: from mail-yx2-f7.google.com (mail-yx2-f7.google.com [74.125.224.135])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EF3E606A31A
for <netdev@vger.kernel.org>; Tue, 1 Dec 2026 11:48:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7EF3E606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yx2-f7.google.com with SMTP id 956f58d0204a3-67a3d39e406so4800490d50.1
for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 03:48:07 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796125686; x=1796730486; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:from:subject:user-agent:mime-version:date
:message-id:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=NbyVGHmp1Y/HYy90qOk1Q1gPIPKVLvcd2tskUd605iM=;
b=oohNB5QwKLDReXAtNg8hUJ8RRDp3RnJ5ML8bfSzA+eDE672rx3yZwzhcf5is+2sE+F
spSlNPlsxM0KVfn2ZvThNcfVQ5YVjgfHT+mxufoJm4cH589RVbBViOLtZXKsAuiY4AOo
rCfEms/f0wzFmHqpdw5C+w/AkzhuPeZLlIoDiS0Qs3Wi04jaZEfK11kyVLMcLWEXPAgT
KpEl8mxUYGbfto29xlK4W+saNYTbxFUtsUfIqKYs5OKRN/aCuUz9sEYAmT/5V6xrelrt
4oo7e4RLJAUoIRVNN4HUhiUxDSHpue12FEY3ABvh+nYQdtOUduYwmQgpFqOphfKs1lLO
6aWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796125686; x=1796730486;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:from:subject:user-agent:mime-version:date
:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=NbyVGHmp1Y/HYy90qOk1Q1gPIPKVLvcd2tskUd605iM=;
b=v173UZK1nIjn4in/Vwuq+pmzrB39uyjtCTb31D58bcH6sJlyOhVT9l0AXl9hpmTHdU
tic6xr++H2zsPb7ng3VXoAksSfIpXDVKyCLtrCXRlEktWZgq60oYiXOcL1uEp/BkPDmt
B3Ou4YHHnNuWN7H7pSW6dAXxye1BcNRZqUT69dIKB/UVwE0ByZKk/1MRCjqfu1aZgpse
/VTB4QNJxvJ/0V2mBCXpAf0KAVbXyGU/EvqAbo7kz7hTmIj6ERnliSL97y3SPL2cPj4q
sF+cPx8u6TpeDWh8PW2GLXLugyN8StxaEGDOK6oa1NpNBxRMI/OMrzzmu0pMLon+Ygna
jBgg==
X-Forwarded-Encrypted: i=1; AL+hErHcackg7Pzmp/W8PuoTP7dn93P5jq+9Gw3AvbuUJTLyXRk7t/0s2umdD1kVVLBADKOwy8twWB8=@vger.kernel.org
X-Gm-Message-State: APuU4Z+wgyYz/qx+4Cqwf1wbr8x+00HvRXyQ1e2WQNr2qMiELAfzIPn/
QWgGfhtC/aLbAeJ2gb+yeVMX2p5lgqiJI5fs6atExItR8HfwqcUI1E0+
X-Gm-Gg: AZFdTZegu2dPTgb5pDXLA/xvofDUoRTLUeYfiwvmAJzwe6vtuCvRw36113/CBXMN6Dg
ste3tn17KG4O3ZH2C3lLY0+VRSwSL+UH1iqHWV9BVOPk3g0xSvxbph+BZLhQV3Rm45Id89yQHUz
mgKcr88G4LChP/B4NN7FpssVmxNbYo4ioluheb/MubeuC7CYFyvAbSruNH1VBYsutUE5zUyfe3o
OiFWrF+7/iM6lh3jKBRWViRdG3mAsiAZw/vjHTo9BQF3D3nZplJ+Fuu4Xs9d2SWFPN93dJ1YEXd
PNKoMPYrSAzbSlPe23bIFzAwkouwsK0HLWo2aFWOr2gMh5pO0l1ltvS4ZhrvBuA58juMWEhcR8Q
f9yoFJJFcJu7KwmhRd+8k19at8kTxO59SsHCFGE2KVXQRAWPeL2zxXRktmuXINzRduxj5c0cylx
ny7mF8P8xePsvjvpBZOfRfp/WOyrLj65gA6RMe02cAhkny/oRGv7OnRuiNiJ5FzbuoUGcaB0oMr
tGKsVAG91BgDV9JK8YaM+ShYEooytWgDshbhiUDFhGnLKqx+ZXTBZnBaJom8gonXo0/x3ulvp7l
iQ8D46VlR3pNr8vjsLJYnuq/XEvZPc3pYA==
X-Received: by 2002:a05:690e:4393:b0:67d:c305:ca20 with SMTP id 956f58d0204a3-67df441f410mr12118865d50.45.1796125686626;
Tue, 01 Dec 2026 03:48:06 -0800 (PST)
X-Received: from [10.0.0.48] ([71.69.222.122])
by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df3378f59sm15845495d50.14.2026.12.01.03.48.05
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Tue, 01 Dec 2026 03:48:06 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
X-Cc: John Fastabend <john.fastabend@gmail.com>,
Jakub Kicinski <kuba@kernel.org>, "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>, Chuck Lever <cel@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>,
Daniel Pereira <danielmaraboo@gmail.com>
X-In-Reply-To: <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com>