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

From: Jérémy Jean

Date: Mon Nov 09 2026 - 16:40:01 EST


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

Patch 1 restores upper-layer protocol decoding for IPv6 first
fragments.

Patch 2 builds on Patch 1 and restores ports, ICMPv6 type and code,
and GRE keys for atomic fragments, while leaving them unset for real
fragments.

Changes in v4 after a review from Sashiko:
- Patch 1: unchanged.
- Patch 2: Use skb_header_pointer() and remove the XFRM pull to fix
local input decoding and avoid stale header pointers.

v1: https://lore.kernel.org/all/20261101230745.2043474-2-Jeremy.Jean@xxxxxxxxxxxxxxxxx/
v2: https://lore.kernel.org/all/20261103225842.3204446-2-Jeremy.Jean@xxxxxxxxxxxxxxxxx/
v3: https://lore.kernel.org/all/20261106202910.723098-2-Jeremy.Jean@xxxxxxxxxxxxxxxxx/

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 | 51 ++++++++++++++++++++++++++++++-----------
3 files changed, 51 insertions(+), 26 deletions(-)

--
2.47.3