From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F808606A335 for ; Wed, 2 Dec 2026 19:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=t9OyazNn; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=otMiXr3p DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=uOPyX7xm5sFDJLwGQLGjOjWs+RQFDAIrCd5l4GVQfYs=; b=t9OyazNnsj1/As ABqVbJRNcENmbjv9z7hPmZve6IkE13Oy3qTTfWC2dZgy/GDa1/gseqnfARDRYWphTpJrbo1KwCL0U +ZNjfLBZ6WJiIRO4c9bJUhzP77oFYAIxCspCN3PVmMfPcE60BF4MJkXLezX6O/2zt/SdjRbAUmmY9 qGf8rHbNbxBupX7CWqr2NJJyMgJf3pTw/Rk5sFpCcy0hObniDdZiUXFiBhYWe12HmIqsdGM8L+hwL N9tGIedovj13/z44WOj6TmJ1UMNlpqemBKBOO7hEVclbgMHY+thUXv+yQ+U4fgiuTCjk7oPINznIG YHqLmLns4IZWLuJT3SEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYpkh-0000000CbUZ-3RFG; Wed, 02 Dec 2026 19:12:27 +0000 Received: from mail-yx2-x01.google.com ([2607:f8b0:4864:41::1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYpke-0000000CbTV-1Fh1 for linux-nvme@lists.infradead.org; Wed, 02 Dec 2026 19:12:26 +0000 Received: by mail-yx2-x01.google.com with SMTP id 00721157ae682-8b536ef1456so14804947b3.0 for ; Wed, 02 Dec 2026 11:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796238743; x=1796843543; darn=lists.infradead.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=otMiXr3pgzAkvIA3PGaBOLVz6wNz9P8gum8gOahn5Y7yJNTs06JFHFF1BXdayr+XvG N5JtCY6ASdFt+HeAMvPyTll5nwhQ/XLEhF63dh1bvatvsrnAhuIMpvfYR7Oz/2uS7QeM T2lT3smZn5KVvfYCyj1GlgjiSw6qH/dph2ev/oUI1Anw+9I2TmU8EKgqX9veZSimh/ec tJzBMuEquWMSXmPHLE/ZRTCQHk7es+/1EnFYJoO8kmJCXScKgCu6TsvRzXrJaJLfI+TP VgaEJ7eQXFOaXQecJjRvOaRboFRByQdG2RVLUaEXNRd2PcFD90GeDqR80XleCNz8lpNu OfaQ== 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=uOPyX7xm5sFDJLwGQL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4UChjmUvcBm5/yUX9mo+cgtiuWSy0pheutoiOtsaPWZh0Oa7U1bvv R5L1OOvD+Ms7Wjzj4GMYFzjBVm442kUSPVflTnTaugu5w5wpPz2VsMh8rRm0YFvtt4uD1JlJxaO Q1KemSoBQi0x+5phZZu9ohDYJTLvG82aMA== 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) 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) Message-ID: <2e7566b3-6b8e-40fa-99f3-033d7b276207@gmail.com> Date: Wed, 2 Dec 2026 14:12:21 -0500 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 0/6] tls: perform TLS 1.3 KeyUpdate in the kernel To: Chuck Lever , Sabrina Dubroca Cc: John Fastabend , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Jonathan Corbet , Shuah Khan , Randy Dunlap , Shuah Khan , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Hannes Reinecke , kernel-tls-handshake@lists.linux.dev, linux-nvme@lists.infradead.org, Alistair Francis , Martin Belanger , Daniel Pereira References: <20261105-keyupdate-rfc-v6-0-99b695f9eb4f@gmail.com> <7f9b7ab9-9728-42be-a5c1-9e8e62c23ab9@gmail.com> <9afa5b2f-e3b4-42cc-9486-605547d8f0d9@app.fastmail.com> Content-Language: en-US From: Martin Belanger In-Reply-To: <9afa5b2f-e3b4-42cc-9486-605547d8f0d9@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_111225_276188_8810467F X-CRM114-Status: GOOD ( 14.79 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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