[PATCH net v3 0/2] xfrm: fix IPv6 atomic fragment policy handling
From: Jérémy Jean
Date: Fri Nov 06 2026 - 15:31:37 EST
This series of two patches fixes two IPv6 atomic 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 selector fields for IPv6 atomic
fragments, while leaving them unset for real fragments.
Changes in v2 after a review from Sashiko:
- Patch 1: Leave ports unset for fragments with BPF flow dissectors.
- Patch 2: Include the atomic fragment selector fix.
Changes in v3 after a revew from Sashiko:
- Patch 1: unchanged.
- Patch 2: Safely detect atomic fragments.
v1: https://lore.kernel.org/all/20261101230745.2043474-2-Jeremy.Jean@xxxxxxxxxxxxxxxxx/
Sashiko on v1: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261101230745.2043474-2-Jeremy.Jean%40oss.cyber.gouv.fr
Sashiko on v2: https://sashiko.dev/#/patchset/20261103225842.3204446-2-Jeremy.Jean%40oss.cyber.gouv.fr
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 | 6 ++++-
net/xfrm/xfrm_policy.c | 52 ++++++++++++++++++++++++++++++-----------
3 files changed, 44 insertions(+), 15 deletions(-)
--
2.47.3