Skip to content

pull request (net): ipsec 2025-07-23

Steffen Klassert netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8xfrm: state: initialize state_ptrs earlier in xfrm_state_findnet/xfrm/xfrm_state.c+2 -20 repliesApplied
2/8xfrm: state: use a consistent pcpu_id in xfrm_state_findnet/xfrm/xfrm_state.c+6 -130 repliesApplied
3/8xfrm: always initialize offload pathinclude/net/xfrm.h net/xfrm/xfrm_device.c net/xfrm/xfrm_state.c +1 more+4 -60 repliesApplied
4/8xfrm: Set transport header to fix UDP GRO handlingnet/ipv4/xfrm4_input.c net/ipv6/xfrm6_input.c+6 -00 repliesApplied
5/8xfrm: ipcomp: adjust transport header after decompressingnet/xfrm/xfrm_ipcomp.c+1 -10 repliesApplied
6/8xfrm: interface: fix use-after-free after changing collect_md xfrm interfacenet/xfrm/xfrm_interface_core.c+1 -60 repliesApplied
7/8xfrm: delete x->tunnel as we delete xinclude/net/xfrm.h net/ipv4/ipcomp.c net/ipv6/ipcomp6.c +3 more+13 -140 repliesApplied
8/8Revert "xfrm: destroy xfrm_state synchronously on net exit path"include/net/xfrm.h net/ipv6/xfrm6_tunnel.c net/key/af_key.c +2 more+15 -260 repliesApplied

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchHerbert XuFlorian Westphal
1/8R-b
2/8R-b
3/8
4/8
5/8A-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] pull request (net): ipsec 2025-07-23

1) Premption fixes for xfrm_state_find.
From Sabrina Dubroca.

2) Initialize offload path also for SW IPsec GRO. This fixes a performance regression on SW IPsec offload.
From Leon Romanovsky.

3) Fix IPsec UDP GRO for IKE packets.
From Tobias Brunner,

4) Fix transport header setting for IPcomp after decompressing. From Fernando Fernandez Mancera.

5) Fix use-after-free when xfrmi_changelink tries to change collect_md for a xfrm interface.
From Eyal Birger .

6) Delete the special IPcomp x->tunnel state along with the state x to avoid refcount problems.
From Sabrina Dubroca.

Please pull or let me know if there are problems.

Thanks!

The following changes since commit b56bbaf8c9ffe02468f6ba8757668e95dda7e62c:

Merge branch 'net-airoha-fix-ipv6-hw-acceleration' (2025-06-03 13:04:09 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git tags/ipsec-2025-07-23

for you to fetch changes up to 28712d6ed32028b0f2e0defe6681411496971ca3:

Merge branch 'ipsec: fix splat due to ipcomp fallback tunnel' (2025-07-14 08:59:48 +0200)

----------------------------------------------------------------
ipsec-2025-07-23

----------------------------------------------------------------
Eyal Birger (1):
xfrm: interface: fix use-after-free after changing collect_md xfrm interface

Fernando Fernandez Mancera (1):
xfrm: ipcomp: adjust transport header after decompressing

Leon Romanovsky (1):
xfrm: always initialize offload path

Sabrina Dubroca (4):
xfrm: state: initialize state_ptrs earlier in xfrm_state_find
xfrm: state: use a consistent pcpu_id in xfrm_state_find
xfrm: delete x->tunnel as we delete x
Revert "xfrm: destroy xfrm_state synchronously on net exit path"

Steffen Klassert (2):
Merge branch 'xfrm: fixes for xfrm_state_find under preemption' Merge branch 'ipsec: fix splat due to ipcomp fallback tunnel'

Tobias Brunner (1):
xfrm: Set transport header to fix UDP GRO handling

 include/net/xfrm.h             | 15 +++------
 net/ipv4/ipcomp.c              |  2 ++
 net/ipv4/xfrm4_input.c         |  3 ++
 net/ipv6/ipcomp6.c             |  2 ++
 net/ipv6/xfrm6_input.c         |  3 ++
 net/ipv6/xfrm6_tunnel.c        |  2 +-
 net/key/af_key.c               |  2 +-
 net/xfrm/xfrm_device.c         |  1 -
 net/xfrm/xfrm_interface_core.c |  7 +----
 net/xfrm/xfrm_ipcomp.c         |  3 +-
 net/xfrm/xfrm_state.c          | 69 ++++++++++++++++--------------------------
 net/xfrm/xfrm_user.c           |  3 +-
 12 files changed, 46 insertions(+), 66 deletions(-)