mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] psp: fix transport mode with ipv6 extension headers
@ 2026-10-22 22:30 Todd Freed
  2026-10-22 22:30 ` [PATCH net v2 1/2] psp: fix transport mode encap " Todd Freed
  2026-10-22 22:30 ` [PATCH net v2 2/2] selftests: drv-net: psp: test ipv6 tcp socket with " Todd Freed
  0 siblings, 2 replies; 3+ messages in thread
From: Todd Freed @ 2026-10-22 22:30 UTC (permalink / raw)
  To: netdev, toddfreed
  Cc: Daniel Zahka, Jakub Kicinski, Willem de Bruijn, David S. Miller,
	Eric Dumazet, Paolo Abeni, Simon Horman, Andrew Lunn, Shuah Khan,
	Raed Salem, Rahul Rameshbabu, Cosmin Ratiu, linux-kernel,
	linux-kselftest, Björn Töpel

While working on adding support for socket-less psp associations, I
noticed that this case was not being handled correctly. It will be more
relevant with that series, because it adds udp support, for which the
psp nexthdr will be taken from the inner packet.

Since the tx association encodes intent to send encrypted packets, but
because of other configuration (socket options, routes) the packets are
sent unencrypted, sending this change as a fix.

The first patch adds the requisite code to walk the ipv6 extension
headers chain, and stamp the last one to UDP instead of the fixed hdr.
The second patch adds selftests for this case.

Note that no test case is added for ipv6 fragment headers. As far as
I can tell it's not possible to tx fragments from an ipv6 tcp socket.

v2:
 - walk the extension headers instead of dropping (Daniel)
 - reject fragment headers (Bjorn, Daniel)
 - reject routing headers
 - psp_dev_rcv() handle the rx case as well

v1:
 - https://lore.kernel.org/netdev/20261021210200.788191-1-toddfreed@meta.com

Todd Freed (2):
  psp: fix transport mode encap with ipv6 extension headers
  selftests: drv-net: psp: test ipv6 tcp socket with extension headers

 net/psp/psp_main.c                         |  78 ++++++++++--
 tools/testing/selftests/drivers/net/config |   1 +
 tools/testing/selftests/drivers/net/psp.py | 138 ++++++++++++++++++++-
 3 files changed, 207 insertions(+), 10 deletions(-)

-- 
2.53.0-Meta

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-22 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 22:30 [PATCH net v2 0/2] psp: fix transport mode with ipv6 extension headers Todd Freed
2026-10-22 22:30 ` [PATCH net v2 1/2] psp: fix transport mode encap " Todd Freed
2026-10-22 22:30 ` [PATCH net v2 2/2] selftests: drv-net: psp: test ipv6 tcp socket with " Todd Freed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®