From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.138 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796238744; b=IHjsSyrdI0bkn1LetxyXg4lvmp89cnZOZ90AZsFj4kFMcXCauHJeofFskkXfSnENprft lbKkeQvt4XlYDUrS9ZrR1lVz4xDBBxzOckB/r5Y3hjVCBVndwxA5HKqHzygDukNYMh135 A6yXkp2em8npHayWRHfgAFMkgUHZfqzVreV1dfBCKkktaigj0z7Ib9bu1VxsMkzLS0ACC lW9ZExbTKJAtOxlcuJ29TpQhAYH1dVmDL+m4STY1KxmuSxS/yrO9GoD3ML0r1MzUQdY98 6AX+9osv3WAO0hJ5QVg/aANV8WMcnNzeu6/SSJW3otFYRVceia+mjEfWk765uTdIE9A== 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=plETLi0+urqbPbPmZe/pnUP1QKBjil3C6SmvjR/LcQa92hvhjOZQ5KUxMdKvdd0gIF/a UyY0GX0/omQsrIxnvEOeXxOr9BOb6MGCIose2Nfs2fzqO5yslwTQrOqNJ7jkpZlcNOwaj QamUKM9H5X87G5MVImL40E5aV6YLCkQDxg3RTzP2bvDs+0dhDb+ekM7xntnYjicLsFR8x 4GoGPkIh3G27vTzWRspJzr/Ak/x8jU2bIK+saA6VpWnn9JpYeceBe9mnKoj2/EHe6Vna7 Uknr+ynoeRbIPZgdGEF/kZ7h+VuiwaLUqfBBDBBP/HDU29OsygwI/GvyKfL4lb+cQzg== 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.138 Received: from mail-yx2-f10.google.com (mail-yx2-f10.google.com [74.125.224.138]) (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 C6F89606A338 for ; Wed, 2 Dec 2026 19:12:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C6F89606A338 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-f10.google.com with SMTP id 00721157ae682-8b2fc584e77so24982797b3.1 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=pKIDPT7c4G6nQOxU92Xkjku8KmgdEab29Yz6tkmVu4SICJBF+cK6IvgdY+meFrlQSM eVMCw51N1hCY0Nx0H/7FWDrhtKjO/b2q11tTP3oj8+aJhv08+Xqfaj3a3L/GHlhciCZh gwYjYVV9wR3bjCwKuHdjt+K8yxqh/Mraujd0MWs6XSDCWDl4wEhp49gr8HxqyzQqP9eB YUvE7WfRNKfOgLp8gq4l2+esZT5gK7K+p+44WDEl4orpGkdmadRbi/2CY6yEjmSe7h3/ mjIAtCOVru13G56Oi9Oe7tdm0s8KAXl+2VKC4bQiGqaCQdmG+HKovRNGYsLuON6X9RsU eEFQ== X-Forwarded-Encrypted: i=1; AL+hErGdRviTyxWpZNO6MPbiVc0IG9HuewwKqEccn/YMDvz94LVN27PqHcw8N83ssyeKqk4nTmgrhlnP9EA=@vger.kernel.org X-Gm-Message-State: APuU4Z/gHMH8PdleVOl4OvRlLpZXW+xNZOsq/60CnEXMulkASU1IWA+O W69mpIQ+TtGPqc4NRUdEYTg/xCRnHtUqMMV9NyWVxT201bTkbUqYBR2V X-Gm-Gg: AZFdTZfqPlOyLkPyN09KmUkzMgO0kVdlurPNq+eriW69hTBe8vG+W0lI6HdtFB9B9eO I/nic3eBr3gH4KVuyRDOTHtYaPgyXt6mT1YT80cSvGxuM8DnVi+Y0sPlmSTnK8Zk0yLFb5CjJtG 4zDwq39O/tRvC1y/Kh8kzATJI7TOdUQ4jeitH9QebygqhYvtee2pCKIUdZlJcUjTXCr39HeVu1P 9uSRhPeNAovHc44kTDbktKl7v6x2sT2Zyqbxw+MzN8cxJJawkFYwk3VVd1TwTDUY/Ua4Qef7dim W0Pk29xZ+4VXP8LBNZEQZxlYVOIkpZ3D0Jis8rgXqG7hZhttVLgwzzy3Mhir4a/t6zel96s0Hl3 S8y0WZK3I2fg2ec2h3JEhCcvobMccEC4KzqMVt0Z639LIw8SGyG8xAgX2enDj9F278y98sTqSj6 rxlTo8KyEZAH/yYmei+CcoQKuaiOLL1gA5zRcXrwwVouUfF/lc1dyqOKuv+wO/mVym3v0EEP4xC dVXCLq3ideN7ae29+RqBsfMdgqXLtLQBE4+yXtroP5FN+aIiQd2UKOo7FrUVjhBKqPFWZ2nZoLH ntLRCsUhNLqzWzbeNio+0QHIjFWaaV9qUw== 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-doc@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