Skip to content

pull request (net): ipsec 2026-07-10

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 Latest10 patches 0 repliesApplied 10/10

Patches in v1 All 10 applied

#Subject and filesSizeRepliesApplied
1/10xfrm: propagate -EINPROGRESS from validate_xmit_xfrm()net/core/dev.c net/xfrm/xfrm_device.c+10 -40 repliesApplied
2/10xfrm: fix stale skb->prev after async crypto steals a GSO segmentnet/xfrm/xfrm_device.c+8 -00 repliesApplied
3/10xfrm: nat_keepalive: avoid double free on send errornet/xfrm/xfrm_nat_keepalive.c+9 -60 repliesApplied
4/10xfrm: fix sk_dst_cache double-free in xfrm_user_policy()net/xfrm/xfrm_state.c+2 -20 repliesApplied
5/10xfrm: cache the offload ifindex for netlink dumpsinclude/net/xfrm.h net/xfrm/xfrm_device.c net/xfrm/xfrm_state.c +1 more+33 -90 repliesApplied
6/10xfrm: reject optional IPTFS templates in outbound policiesnet/xfrm/xfrm_user.c+1 -20 repliesApplied
7/10xfrm: clear mode callbacks after failed mode setupnet/xfrm/xfrm_state.c+6 -10 repliesApplied
8/10xfrm: iptfs: propagate SKBFL_SHARED_FRAG in iptfs_skb_add_frags()net/xfrm/xfrm_iptfs.c+1 -00 repliesApplied
9/10xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()net/ipv6/xfrm6_policy.c+1 -00 repliesApplied
10/10xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsertnet/xfrm/xfrm_policy.c+2 -20 repliesApplied

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalEyal Birger
1/10
2/10
3/10R-b
4/10
5/10
6/10
7/10
8/10
9/10
10/10R-b

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/10] pull request (net): ipsec 2026-07-10

1) xfrm: propagate -EINPROGRESS from validate_xmit_xfrm() Return -EINPROGRESS from xfrm_output_one when validate_xmit_xfrm requeues the packet asynchronously, so the caller doesn't treat it as a real error and free the skb.

2) xfrm: fix stale skb->prev after async crypto steals a GSO segment Re-derive skb->prev from the fragment list after async crypto splits a GSO skb, keeping the linked-list pointers validi.

3) xfrm: nat_keepalive: avoid double free on send error
Hold a state ref while the nat_keepalive timer is active and drop the timer before freeing the state, preventing a re-entered free on send error.

4) xfrm: fix sk_dst_cache double-free in xfrm_user_policy() Null the skb dst cache before freeing the policy so a later skb destructor doesn't double-free it.

5) xfrm: cache the offload ifindex for netlink dumps
Cache the device ifindex at state-add time and use it for netlink dumps instead of dereferencing dst->dev, which may have changed by the time the dump runs.

6) xfrm: reject optional IPTFS templates in outbound policies Reject outbound policies with an optional IPTFS template, IPTFS must always be used if configured.

7) xfrm: clear mode callbacks after failed mode setup
Clear the mode->init_flags and init_state callbacks on the error path after xfrm_init_mode fails, so a partially-initialised mode isn't reused in xfrm_state_construct.

8) xfrm: iptfs: propagate SKBFL_SHARED_FRAG in iptfs_skb_add_frags() Propagate SKBFL_SHARED_FRAG from the original skb to fragments allocated by iptfs_skb_add_frags, keeping shared-fragment accounting correct after IPTFS reassembly.

9) xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst() Clear dst->dev on the error path of xfrm6_fill_dst() so the caller doesn't release the netdev reference twice via dst_release.

10) xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsert Preallocate all inexact hash bins before existing entries are reinserted during xfrm_hash_rebuild, so reinsertion always hits an existing bin.

Please pull or let me know if there are problems.

Thanks!

The following changes since commit 805185b7c7a1069e407b6f7b3bc98e44d415f484:

Merge tag 'net-7.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2026-06-25 12:25:36 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git tags/ipsec-2026-07-10

for you to fetch changes up to f38f8cce2f7e79775b3db7e8a5eacda04ac908e4:

xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsert (2026-07-06 08:30:02 +0200)

----------------------------------------------------------------
ipsec-2026-07-10

----------------------------------------------------------------
Antony Antony (1):
xfrm: reject optional IPTFS templates in outbound policies

Cen Zhang (2):
xfrm: cache the offload ifindex for netlink dumps
xfrm: clear mode callbacks after failed mode setup

Chen YanJun (1):
xfrm: iptfs: propagate SKBFL_SHARED_FRAG in iptfs_skb_add_frags()

Petr Wozniak (2):
xfrm: propagate -EINPROGRESS from validate_xmit_xfrm()
xfrm: fix stale skb->prev after async crypto steals a GSO segment

Qianyu Luo (1):
xfrm: nat_keepalive: avoid double free on send error

Xiang Mei (Microsoft) (3):
xfrm: fix sk_dst_cache double-free in xfrm_user_policy()
xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()
xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsert

 include/net/xfrm.h            |  2 ++
 net/core/dev.c                | 10 ++++++++--
 net/ipv6/xfrm6_policy.c       |  1 +
 net/xfrm/xfrm_device.c        | 13 +++++++++++--
 net/xfrm/xfrm_iptfs.c         |  1 +
 net/xfrm/xfrm_nat_keepalive.c | 15 +++++++++------
 net/xfrm/xfrm_policy.c        |  4 ++--
 net/xfrm/xfrm_state.c         | 12 +++++++++---
 net/xfrm/xfrm_user.c          | 41 ++++++++++++++++++++++++++++++-----------
 9 files changed, 73 insertions(+), 26 deletions(-)