From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796238744; b=LnBKmVE+rtL8zhBPnPOBEBhzb/+1V561CmdL405gmWI0zlUdsJHXMUULPZHF3kfMNUs+ WBwpN34xQiVllYWsK037po0O7G+ik7T4VxDkxBSxGce5wTucxlJOdM9VNyk1TnNAMu3ai pSP3NFHgpa7RW3fwrMbR8ScqsetoujrkCWuaTGIllhvIaoEa1LNqw/XGqHQyVEnK7r9SL qnCpqDss95c4hZY7WX08F65B5GpmIlkWLZ5LfobOT4bRTz5iYt33jfeO5UWgcEBmewOvW l7VcUj1FENR6ut8oX8Xb6ZrcB2n9VRyfqG278dnKXX11AYirEojMBI+U7Wc5QeyRtUQ== 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=F8f+4rcHcjZugQvN4emINJh43N9+SQ35bdKsYL/abymnTRuUOxiWVa26QJ1ENoJe79pQ 8KkabI1Ep2/IqlROqvGfddi47Qo9UiDQ4NNDSRIC5Eq4elxJJejLkRDs2505t1eEJnHhQ VqC35/2ezLOISwNsb7X5yuRSY0NOfNys9SmpmmH/tAaomYgAa+4gZC66NOhUryLFNNkXe W/uU53ssKgJiyXYZ/ZD1R4g3qj5/XyBtzX5kZrLc52uHscOP+dS13Dvp9uzctCVsWscxa cfDuEsm9X+mbzAgap40rLPaAVFvJ+kqRm6Jnmy3gIlj+4Z2i6y/p8DPZrG0nKI5J/jw== 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.131 Received: from mail-yx2-f3.google.com (mail-yx2-f3.google.com [74.125.224.131]) (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 BB456606A32D for ; Wed, 2 Dec 2026 19:12:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BB456606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-yx2-f3.google.com with SMTP id 00721157ae682-8b536ef1456so14804937b3.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=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=Mn9W+9KyFxiBpzEfTH0rCaroYZZxahjrazS1Shbne7SKpgwirYgmQ76bAYXrkFvW88 rYKuUXZ419x8Qj+fY/m0rfmrWFxCnID0ZtBbRtMjN9Glu1ybEfY19/n3/AcpHfQGwbkE kgtLxS9VQcEsEcHvE3GJveZw0f3k4rCaU63pbxoOE/3vzs+0jLCy7Bb36DDAl/8VPr9l htQt0Bd68gY2/wSDDWmPRLowy5chw+60T7wSzykqkaiSehw2/OHZwDcGh1cZ9rvg/snB KcgmHZFBA2pbvd9FlxcZiGFv+L5a7mV7LKnveg/MXg7QWCXDzepBFd3axatTodRun2/Q PuUw== X-Forwarded-Encrypted: i=1; AL+hErESy+Br2cRpIHXC3pWQ3v8YzHn3PWdMOCo/sQKQfZHHWfpPLGP3VPo4K6cZqjrtdan6R8ygJsxiGOd9G0A=@vger.kernel.org X-Gm-Message-State: APuU4Z+GD/QUCsrOp+FxwnuLKpgxcSbXJbfM0g49glTgqhUmk8jlcbA+ Ua01rOnSUTElpAUICOh/0upgEhP35x+HZU3QjVIc4gx7Lz3Cx9kT90cy X-Gm-Gg: AZFdTZdKn/mu2sqe8I3gSOzNwacNhj8BnDIUYLFjCXXWYKDgQD4/R8UuigYprSEpsvW qsuNZTAh5mA8rDmwh+8/ELI0K0UYl2xd8x0E/5QdjvELauPzn2S+0giRLbtJyALtLoENEYuOKG7 H5pdt535wYZDjpJw/tH7bzvVlrX7oYdGrhZS6EMFuMOLd1SYMb2Uv124WYqKVWv3DWM+2aNlC6Q YbS6eLZfEYACi4epO589zUY3MtXh8khOA9Kxhm+IQWxRgjA5kuDOtyaPkbFWp6Yye7nAb8+/BHO tK1r26uCxL7ieCX9928nHyJBkH/Cwmu7dHspj+0llvpe16BoKszhB/1egdPIx1ws1VSpyO4aro3 R/dec2AEFwFRMBHM8J4fHRJ/vssSJnyy4UTChX7W+C8GR/9hMQ1ElvTNdJ11oGZkGiECdIL/tZo P4f712dvsUKgnS3fLfCElj6wtHDn9xrNyKlNupqtc6+yxhtHtpjPmuDit5tGUxu56C0RllcL1YV YD2GUi5rTraQI4SfbvDYH3Is4Sma0mJoHioGhiCGjy9Tl9UBNKelO0mM/NtyxDO5isVjLjz6BKS PJgabYzujdqV9BwF9rPNbRmKs3C97U1pyA== 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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