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

Martin Belanger martin.nvme.dev at gmail.com
Wed Dec 2 11:12:21 PST 2026


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



More information about the Linux-nvme mailing list