diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-11-12 08:06:26 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-12 08:06:26 -0800 |
| commit | 5378d31380a6ebc0d25cfa02348f5f6061fba75e (patch) | |
| tree | cf2c698652e36defa5512c7961625bfba6bd9571 /tools/perf/scripts/python | |
| parent | e227b511582828c5a6513f70fc6a71211e5efbf0 (diff) | |
| parent | 51127238570bc9f03092a4f894cc595e33410431 (diff) | |
Merge branch 'net-psp-preserve-skb_ext_psp-across-packet-scrubbing'
Wei Wang says:
====================
net: psp: preserve SKB_EXT_PSP across packet scrubbing
When a virtual interface such as netkit is associated with a PSP device
in another network namespace via PSP_CMD_DEV_ASSOC, incoming PSP packets
decapsulated on the physical device lose their SKB_EXT_PSP extension
when scrubbed during redirection (e.g. skb_do_redirect() or
netkit_xmit() calling skb_scrub_packet()). As a result,
__psp_sk_rx_policy_check() rejects incoming PSP-encrypted TCP data
segments at the socket layer.
This gap slipped through the existing psp.py selftests because both
_data_basic_send() and _data_basic_send_netkit_psp_assoc() only sent a
unidirectional data stream from the test socket to psp_responder; the
returning pure TCP ACKs had SKB_EXT_PSP stripped by skb_scrub_packet(),
but were still accepted by __psp_sk_rx_policy_check() while peer_tx was
unset.
Patch 1 (originally from Jakub Sitnicki's BPF skb extension series [1])
introduces skb_ext_scrub() to selectively preserve SKB_EXT_PSP during
skb_scrub_packet().
Patch 2 updates the psp.py selftests to exercise bidirectional PSP data
transfer using psp_responder's "data echo" command in both direct and
netkit dev-assoc test cases.
Link: https://lore.kernel.org/netdev/20260910-bpf-meta-inside-skb-ext-v2-3-0b21e42180b0@cloudflare.com/ [1]
====================
Link: https://patch.msgid.link/20261106182007.374660-1-weiwan@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
