Skip to content

pull request (net): ipsec 2026-03-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 Latest20 patches 5 repliesApplied 20/20

Patches in v1 All 20 applied

#Subject and filesSizeRepliesApplied
1/20xfrm: add missing extack for XFRMA_SA_PCPU in add_acquire and allocspinet/xfrm/xfrm_user.c+4 -10 repliesApplied
2/20xfrm: fix the condition on x->pcpu_num in xfrm_sa_lennet/xfrm/xfrm_user.c+1 -10 repliesApplied
3/20xfrm: call xdo_dev_state_delete during state updatenet/xfrm/xfrm_state.c+1 -00 repliesApplied
4/20esp: fix skb leak with espintcp and async cryptonet/ipv4/esp4.c net/ipv6/esp6.c+12 -60 repliesApplied
5/20xfrm: iptfs: validate inner IPv4 header length in IPTFS payloadnet/xfrm/xfrm_iptfs.c+5 -00 repliesApplied
6/20xfrm: iptfs: fix skb_put() panic on non-linear skb during reassemblynet/xfrm/xfrm_iptfs.c+6 -00 repliesApplied
7/20xfrm: state: fix sparse warnings on xfrm_state_hold_rcunet/xfrm/xfrm_state.c+1 -10 repliesApplied
8/20xfrm: state: fix sparse warnings in xfrm_state_initnet/xfrm/xfrm_state.c+20 -120 repliesApplied
9/20xfrm: state: fix sparse warnings around XFRM_STATE_INSERTnet/xfrm/xfrm_state.c+19 -110 repliesApplied
10/20xfrm: state: add xfrm_state_deref_prot to state_by* walk under locknet/xfrm/xfrm_state.c+11 -110 repliesApplied
11/20xfrm: remove rcu/state_hold from xfrm_state_lookup_spi_protonet/xfrm/xfrm_state.c+2 -90 repliesApplied
12/20xfrm: state: silence sparse warnings during netns exitnet/xfrm/xfrm_state.c+10 -80 repliesApplied
13/20xfrm: policy: fix sparse warnings in xfrm_policy_{init,fini}net/xfrm/xfrm_policy.c+4 -40 repliesApplied
14/20xfrm: policy: silence sparse warning in xfrm_policy_unregister_afinfonet/xfrm/xfrm_policy.c+1 -10 repliesApplied
15/20xfrm: add rcu_access_pointer to silence sparse warning for xfrm_input_afinfonet/xfrm/xfrm_input.c+4 -10 repliesApplied
16/20xfrm: avoid RCU warnings around the per-netns netlink socketinclude/net/netns/xfrm.h net/xfrm/xfrm_user.c+18 -90 repliesApplied
17/20xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()net/xfrm/xfrm_nat_keepalive.c+1 -10 repliesApplied
18/20xfrm: prevent policy_hthresh.work from racing with netns teardownnet/xfrm/xfrm_policy.c+2 -00 repliesApplied
19/20af_key: validate families in pfkey_send_migrate()net/key/af_key.c+12 -70 repliesApplied
20/20xfrm: iptfs: only publish mode_data after clone setupnet/xfrm/xfrm_iptfs.c+3 -35 repliesApplied

Reviews trailers per patch

15 of 20 patches have a Reviewed-by or Acked-by.

PatchSimon HormanSabrina Dubroca
1/20R-b
2/20R-b
3/20R-b
4/20R-b
5/20
6/20
7/20R-b
8/20R-b
9/20R-b
10/20R-b
11/20R-b
12/20R-b
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20R-b
18/20
19/20
20/20

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/20] pull request (net): ipsec 2026-03-23

1) Add missing extack for XFRMA_SA_PCPU in add_acquire and allocspi. From Sabrina Dubroca.

2) Fix the condition on x->pcpu_num in xfrm_sa_len by using the proper check. From Sabrina Dubroca.

3) Call xdo_dev_state_delete during state update to properly cleanup the xdo device state. From Sabrina Dubroca.

4) Fix a potential skb leak in espintcp when async crypto is used. From Sabrina Dubroca.

5) Validate inner IPv4 header length in IPTFS payload to avoid parsing malformed packets. From Roshan Kumar.

6) Fix skb_put() panic on non-linear skb during IPTFS reassembly. From Fernando Fernandez Mancera.

7) Silence various sparse warnings related to RCU, state, and policy handling. From Sabrina Dubroca.

8) Fix work re-schedule race after cancel in xfrm_nat_keepalive_net_fini(). From Hyunwoo Kim.

9) Prevent policy_hthresh.work from racing with netns teardown by using a proper cleanup mechanism. From Minwoo Ra.

10) Validate that the family of the source and destination addresses match in pfkey_send_migrate(). From Eric Dumazet.

11) Only publish mode_data after the clone is setup in the IPTFS receive path. This prevents leaving x->mode_data pointing at freed memory on error. From Paul Moses.

Please pull or let me know if there are problems.

Thanks!

The following changes since commit 2f61f38a217462411fed950e843b82bc119884cf:

net: stmmac: fix timestamping configuration after suspend/resume (2026-02-24 17:46:15 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git tags/ipsec-2026-03-23

for you to fetch changes up to d849a2f7309fc0616e79d13b008b0a47e0458b6e:

xfrm: iptfs: only publish mode_data after clone setup (2026-03-17 11:43:14 +0100)

----------------------------------------------------------------
ipsec-2026-03-23

----------------------------------------------------------------
Eric Dumazet (1):
af_key: validate families in pfkey_send_migrate()

Fernando Fernandez Mancera (1):
xfrm: iptfs: fix skb_put() panic on non-linear skb during reassembly

Hyunwoo Kim (1):
xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()

Minwoo Ra (1):
xfrm: prevent policy_hthresh.work from racing with netns teardown

Paul Moses (1):
xfrm: iptfs: only publish mode_data after clone setup

Roshan Kumar (1):
xfrm: iptfs: validate inner IPv4 header length in IPTFS payload

Sabrina Dubroca (14):
xfrm: add missing extack for XFRMA_SA_PCPU in add_acquire and allocspi
xfrm: fix the condition on x->pcpu_num in xfrm_sa_len
xfrm: call xdo_dev_state_delete during state update
esp: fix skb leak with espintcp and async crypto
xfrm: state: fix sparse warnings on xfrm_state_hold_rcu
xfrm: state: fix sparse warnings in xfrm_state_init
xfrm: state: fix sparse warnings around XFRM_STATE_INSERT
xfrm: state: add xfrm_state_deref_prot to state_by* walk under lock
xfrm: remove rcu/state_hold from xfrm_state_lookup_spi_proto
xfrm: state: silence sparse warnings during netns exit
xfrm: policy: fix sparse warnings in xfrm_policy_{init,fini}
xfrm: policy: silence sparse warning in xfrm_policy_unregister_afinfo
xfrm: add rcu_access_pointer to silence sparse warning for xfrm_input_afinfo
xfrm: avoid RCU warnings around the per-netns netlink socket

Steffen Klassert (1):
Merge branch 'xfrm-fix-most-sparse-warnings'

 include/net/netns/xfrm.h      |   2 +-
 net/ipv4/esp4.c               |   9 ++--
 net/ipv6/esp6.c               |   9 ++--
 net/key/af_key.c              |  19 ++++---
 net/xfrm/xfrm_input.c         |   5 +-
 net/xfrm/xfrm_iptfs.c         |  17 +++++--
 net/xfrm/xfrm_nat_keepalive.c |   2 +-
 net/xfrm/xfrm_policy.c        |  12 +++--
 net/xfrm/xfrm_state.c         | 116 +++++++++++++++++++++++-------------------
 net/xfrm/xfrm_user.c          |  32 ++++++++----
 10 files changed, 137 insertions(+), 86 deletions(-)