🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25942

Re: [PATCH net-next v6 0/6] tls: perform TLS 1.3 KeyUpdate in the kernel

#25942
From: Martin Belanger
Date: Wed, 02 Dec 2026 19:12
32 lines
13134 bytes
Hi Chuck,

On 12/2/26 13:51, Chuck Lever wrote:
> Do you have a long-term plan for KeyUpdate for hardware offload?

Not yet. Today the device path supports only TLS 1.2
(tls_set_device_offload() rejects other versions), so a TLS 1.3
socket always uses the software path. KeyUpdate in hardware needs TLS
1.3 offload first. This does not affect the proposal: it works on the
software path today.

The proposal keeps the door open. net/handshake does not depend on
the record layer: it derives the next key and asks kTLS to install it
at a record boundary. For a device, kTLS would pass that key to the
driver instead of calling tls_set_sw_offload(). This needs a new
driver operation. I have not looked at what the NICs support.

> The only concern is about dealing with mismatched tlshd and kernel
> versions with regard to KeyUpdate support.

The prototype handles both cases:

- New tlshd, old kernel: tlshd checks the DONE policy of the kernel.
  If the new attributes are missing, it does not send the secrets.
- Old tlshd, new kernel: DONE has no secrets. net/handshake does not
  register with kTLS, and the socket behaves as today.

I will coordinate the attribute numbers with you. Attribute 4 stays
reserved for your DONE_TAG.

Martin
Technical Details
Message-ID: <2e7566b3-6b8e-40fa-99f3-033d7b276207@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376018-linux-kernel-netdev=dewy.ru
References: <20261105-keyupdate-rfc-v6-0-99b695f9eb4f@gmail.com> <au5JP__7P_PzwDUe@krikkit> <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com> <aw6-EhjhIh5TuHIt@krikkit> <f198d112-d8b1-455c-932a-e191b441a2ec@gmail.com> <9afa5b2f-e3b4-42cc-9486-605547d8f0d9@app.fastmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376018-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: Wed, 2 Dec 2026 14:12:21 -0500
Organization: Usenet Network
Message-ID: <2e7566b3-6b8e-40fa-99f3-033d7b276207@gmail.com>
References: <20261105-keyupdate-rfc-v6-0-99b695f9eb4f@gmail.com>
 <au5JP__7P_PzwDUe@krikkit> <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com>
 <aw6-EhjhIh5TuHIt@krikkit> <f198d112-d8b1-455c-932a-e191b441a2ec@gmail.com>
 <9afa5b2f-e3b4-42cc-9486-605547d8f0d9@app.fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2038581"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UGBSDVwqN9qGlh7al3TkPxWY8Ls= sha256:KegfUvpjCORqLEHvxTl51450CyOSUB1UrwkvZi+VUpA=
	sha1:eHcH1HCUroBvbHbcIXC5ub3lcio= sha256:CfkLGFQ5o5bQUJvA+aZrEnDaVB5G1FCtKXjmMW/9FEU=
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 203B5117706; Wed,  2 Dec 2026 22:12:46 +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 ad20Z4IE-AsF;
	Wed,  2 Dec 2026 22:12:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376018-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 CD34E1176F7; Wed,  2 Dec 2026 22:12:33 +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 2DBF2217A4; Wed,  2 Dec 2026 19:12:26 +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=1796238745;
	b=0RJYFsOmuyONZI3Anj5nLbwb9QlS8kJ+KFF1MaBwudc6a4UY6+b3UqJEPjfnQtA7hkL1
	 c6kKiHNtCAoUK4yl0P8IoYCpA7LD5dMIclb0sWEbX3rSHnmCC3zEnoHgSwTJI1tScyMqp
	 QKhdxlioTAmtboHyq92bWpkp6lXKNefkw1T2bV94vP94qyUmy71rrJ+FTMwHRRijKrEA3
	 ImwvSvQ5omZAZrHM3mby97Ewc08+bmSaWJVxR2A3/6uNzhpT57ipE3f2s2nPPrgX9NKvF
	 opidkELfRPKAPKtHKf/tp0ZmT9kwwm5274Pd+eWZBBbfh+oDigMWhOdx/x1z6EBQdHg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796238745;
	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:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=uOPyX7xm5sFDJLwGQLGjOjWs+RQFDAIrCd5l4GVQfYs=;
	b=Ny1E44qLQBR2BCaAxpMOaLbpDf4mCFltU+0fr14Rglf3YIgVjoqhXBUTj06SOAvl76ft
	 PPctlgRYblc8i4PhskqhAiYXY9UipfWpjfEOoF+TbQOzwCkUXMQ1Xm0eP5+MPiJ8SdTUX
	 iC4z4RTUv2aRI7zQImVhSjJhXPyjHUUi3VRsr5c8gxdr6lH7oGRZtkBbFzABnaEJCjP2F
	 saOPmmXR7SuxixDj4PQDPKOYaZWok0jr3gVi3qonRw5pbTvpK0Cv/h46KziZc0PqZTfGs
	 bCEPbYbUQV+Nn6Ye32lB8HCV1o93///oXkEGbYdfaCFJnjRielRLC5h991BC0BSgt1w==
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=oUir6t8q;
	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 E80F2606A68C;
	Wed,  2 Dec 2026 19:12:24 +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=oUir6t8q
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=1796238744;
	b=tuag2IlgUSNBD9r1+qNKJdJZ7+qdU5OIJbBeQh1nZGfMtLh7txVTymevFo03bQLbJzgD
	 L9zgSVrSwqtxuUxgt1oCMC+/wQTL6m0TqcYea5uvK3CX2Yw7W9fNbW/ugWL7uMtdkF7De
	 OxD1mxmWQEaz5UoHl7857Ov275CuO5octl2d2Ajc/BxY/uNlb/o0ZtxuhozFMjgBqeJQ6
	 n49FSoDI9ezliQaC7WNOwNO732uhsDb+h2qS3Haq/TNY/ZCURubOHvKpRtC2ODeujaD7D
	 yvxyQjBoWd1olt66fRYEwouoh/PAtRitLaYdFZ1ZfukhUTZ6hgpXdeZ+eoKp4hjhFqg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796238744;
	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:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=uOPyX7xm5sFDJLwGQLGjOjWs+RQFDAIrCd5l4GVQfYs=;
	b=QtiQoVuQ6OaEQWt1IgRDBrtC+4/x8vLAVet5IyCfOyEmv80mOqWnQjONlxIHUQGXv4Aj
	 kK1/Vf9ChiwJ85A9ldqfPeqkIF+Mb6TTcl7e+kS91ab3hc/8dM/VwgSxrYt1yYwr9PSRM
	 hycacoWFE+1TW9GVgYSxFEnf5oeOS/lNZAopOBoM4Fjc6LeTdFxShILib7Emf8A7MoavN
	 BOp30/hG0cZ8bDX3bAhLo0bN2l8SL6KrCB1XFXYlA1COGxvSkRXSwDGsPPx2fS14GPQt+
	 pHF9Wkr4Q+K2103nC/5vGox/1TEtyzbWTbplhYOo8SesD8WRKu0DXP97/eKBqU7VgsQ==
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=oUir6t8q;
	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 C072F606A680
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 19:12:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C072F606A680
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-67a1a96329cso4681198d50.1
        for <netdev@vger.kernel.org>; Wed, 02 Dec 2026 11:12:23 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1796238743; x=1796843543; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=uOPyX7xm5sFDJLwGQLGjOjWs+RQFDAIrCd5l4GVQfYs=;
        b=oUir6t8qFQcu3FhLFkgbH+nYrX2Gdp/4A+otJpYTT9wNLf27CdABB3ti+fc/jEHBKn
         /jFbMCGWeR4Ol8GgyMzhO0FNiuGWiFCHN339ohMiUPSqXlHqkj8Jd1XvUDj0PUId6XEb
         TYQksoMq8SgWFHZRxwLqnpz8UX8ZONvgg/W0pt4D6QRQquLdZ2Nxni0Y7i0gfKegLx3F
         rx2Hu9SuB+BMbJKEZWf6sNc3Y946mRABXtGLcKsOfxtQoRsl7jNztF8V9TclU7rwwV6R
         whD8eHKAIa4XF3j0QY1/3EAAPNmOh7Wx3874DO/gc5f3WMnT+ac2orXiMgX0rEs51C4j
         ONQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796238743; x=1796843543;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to: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=uOPyX7xm5sFDJLwGQLGjOjWs+RQFDAIrCd5l4GVQfYs=;
        b=orfVzYkYLg6jE2ByGaN3sSbsHWs/7Jo87aBD1VpF34m55ecoGjGlgb+KgQd9BxnM0q
         eYpWyZjusJEmfs0I3B9nz+ijlxxsg2oFgs0B71DMbxbmkgRk8P0HHf6riieiMAmuYsAQ
         bs7E6kjqXx+JJ0LBWrxATD/tWrhzcNrHD9Y9be4qMhlv/I70AhQwpOvDCV7FU/XqdkWe
         iv0T0vF4X7wnUS+aSiDF47cJPNELiBIxxrDGC4zWLYNb6hhIV0HaCwN55L5asDZMGRxh
         mehIzlIeQFENIdoLfytc1IptoR9T19bMxmj5aRyUXAp/y/CbU7EwwgItbkMcQeMs3VVc
         KSFQ==
X-Forwarded-Encrypted: i=1; AL+hErEtr5Jl3jkCB1X+gKDnBYxDj40q6zWD6VWLuv+IH0PfvrMKhDj+idqt8NTXQxHa8hTx2moyfOI=@vger.kernel.org
X-Gm-Message-State: APuU4Z+8AqXQ3fLjBK6OFUqJWQp9e5EGjCgh5/M4HCxKKH5gWHapV1PC
	q9k+6zvsMqgecHhZ1/0UaZs4bvBSsp1NKpQY6VU+HMGTmfbzqAXzdChd
X-Gm-Gg: AZFdTZcsuojuS521mk0VXQxKNtYkktqHolnmm4KRN4+ZrMtBqSXbHkqLzHvC7OoceeR
	pgkYmrc/zOUACqA+nq/2dvAxwF8+tzGXkIL0VTHVZPdjHy28FbyBaSqni+MIlQlbMK3enMfyB7F
	bvY6lXcUKWlQpeTQDeHwAApCfVx+nAk+9pr0r5HgdNIqqFc9lMQZMNgKYDKwdX4KH4nAC/QX3qb
	zJX2Wf9mKzDWrLuaL83NqD77y3/otc2VdqsWbBIq5qOl/Y7g1miEx9R/srKSlgNpTBNk7zNK7cn
	XoYz9g584rRRIG+pdGEYg8PQSG/Q2oPo3g2K/yVP1ns5gF5ZYzIAsIZpSs+00l11KZTybKfvBrn
	u9nIdl5Nltf7SBzJgMxAhNJpdx+QI190zwEHJvxoCBwivAhk07IjGYcmLH+kncf1Qm+dZGwAzGC
	pHC9fHHq5yK3VQX/OsqgQz0+uinPvT+IhjUPxo2vO2aHZGVdEhEPkE51mvUky5b4eOlblVk5aVY
	n++8dFxfD1r4sAtQbQshJoMlZgEJecAIUEXT49M3BggSbhgmAgIB9zvetxJlG+3V5GAwUCU2CLV
	lk+x6MSC9fqCg5awllK+/4nuZ25vcM+a8Q==
X-Received: by 2002:a05:690c:9b13:b0:8b3:47fd:a021 with SMTP id 00721157ae682-8b5204dd365mr176033867b3.75.1796238742775;
        Wed, 02 Dec 2026 11:12:22 -0800 (PST)
X-Received: from [10.0.0.48] ([71.69.222.122])
        by smtp.gmail.com with ESMTPSA id 00721157ae682-8b5201ba5absm163240967b3.4.2026.12.02.11.12.21
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Wed, 02 Dec 2026 11:12:22 -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>, 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: <9afa5b2f-e3b4-42cc-9486-605547d8f0d9@app.fastmail.com>