[PATCH net v5 0/2] xfrm: fix IPv6 atomic fragment policy handling

From: Jérémy Jean

Date: Wed Nov 11 2026 - 18:36:24 EST


This series fixes two IPv6 fragment issues in XFRM session decoding.

Patch 1 restores upper-layer protocol decoding for first fragments.
Patch 2 restores ports, ICMPv6 type and code, and GRE keys for atomic
fragments, while leaving them unset for real fragments.

Changes in v5 after a review from Sashiko:
- Patch 1: unchanged.
- Patch 2: use the IPv6 walk offset for transport headers before
skb->data, preserve flow-dissector offsets otherwise.

Jérémy Jean (2):
xfrm: fix IPv6 first-fragment protocol decode
xfrm: fix selector matching for IPv6 atomic fragments

include/net/ipv6.h | 1 +
net/ipv6/exthdrs_core.c | 25 ++++++++++---------
net/xfrm/xfrm_policy.c | 54 ++++++++++++++++++++++++++++++-----------
3 files changed, 54 insertions(+), 26 deletions(-)