News: 0001579251

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux Ready To Upstream Support For Google's PSP Encryption For TCP Connections

([Linux Networking] 3 Hours Ago PSP Encryption For TCP Connections)


Not to be confused with AMD's Platform Security Processor (PSP), but Google's PSP Security Protocol (PSP) for encryption in-transit for TCP network connections is now ready for the mainline kernel. This initial PSP encryption support for network connections is set to arrive with the upcoming [1]Linux 6.18 kernel.

After going through thirteen rounds of review, this Google PSP Security Protocol support for encrypting data in transit with TCP connections is expected to be merged for the Linux 6.18 kernel. This kernel code has been successfully tested with PSP-capable CX7 NICs.

Google's PSP shares some concepts with IPsec ESP and is an encryption encapsulation layer on top of IP for large-scale data center needs. Google already has been using the PSP Security Protocol within their data centers while back in 2022 they open-sourced the architecture specification.

Over IPsec, Google engineered PSP for greater simplicity, better functionality, and improved scalability. More background information on PSP can be found from [2]this documentation patch . There is also the official Google PSP architecture [3]specification (PDF).

Daniel Zahka wrote on the merge request now queued into net-next:

"This is v13 of the PSP RFC posted by Jakub Kicinski one year ago. General developments since v1 include a fork of packetdrill with support for PSP added, as well as some test cases, and an implementation of PSP key exchange and connection upgrade integrated into the fbthrift RPC library.

...

The protocol can work in multiple modes including tunneling. But I'm mostly interested in using it as TLS replacement because of its superior offload characteristics. So this patch does three things:

- it adds "core" PSP code

PSP is offload-centric, and requires some additional care and feeding, so first chunk of the code exposes device info. This part can be reused by PSP implementations in xfrm, tunneling etc.

- TCP integration TLS style

Reuse some of the existing concepts from TLS offload, such as attaching crypto state to a socket, marking skbs as "decrypted", egress validation. PSP does not prescribe key exchange protocols. To use PSP as a more efficient TLS offload we intend to perform a TLS handshake ("inline" in the same TCP connection) and negotiate switching to PSP based on capabilities of both endpoints. This is also why I'm not including a software implementation. Nobody would use it in production, software TLS is faster, it has larger crypto records.

- mlx5 implementation"

With the initial patches, only the NVIDIA-Mellanox MLX5 network driver is adapted to make use of PSP.

With [4]this merge hitting the net-next networking subsystem tree this week, this initial PSP encryption support is expected to be submitted as part of the upcoming Linux 6.18 merge window.



[1] https://www.phoronix.com/search/Linux+6.18

[2] https://lore.kernel.org/all/20250911014735.118695-2-daniel.zahka@gmail.com/

[3] https://github.com/google/psp/blob/main/doc/PSP_Arch_Spec.pdf

[4] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=64d2616972b77506731fa0122d3c48cb04dbe21b



Danny3

THIS IS PLEDGE WEEK FOR THE FORTUNE PROGRAM

If you like the fortune program, why not support it now with your
contribution of a pithy fortunes, clean or obscene? We cannot continue
without your support. Less than 14% of all fortune users are contributors.
That means that 86% of you are getting a free ride. We can't go on like
this much longer. Federal cutbacks mean less money for fortunes, and unless
user contributions increase to make up the difference, the fortune program
will have to shut down between midnight and 8 a.m. Don't let this happen.
Mail your fortunes right now to "fortune". Just type in your favorite pithy
saying. Do it now before you forget. Our target is 300 new fortunes by the
end of the week. Don't miss out. All fortunes will be acknowledged. If you
contribute 30 fortunes or more, you will receive a free subscription to "The
Fortune Hunter", our monthly program guide. If you contribute 50 or more,
you will receive a free "Fortune Hunter" coffee mug ....