Article View: linux.kernel.netdev
Article #25243[PATCH 0/22] pull request (net): ipsec 2026-12-01
From: Steffen Klassert
Date: Tue, 01 Dec 2026 12:41
Date: Tue, 01 Dec 2026 12:41
192 lines
16984 bytes
16984 bytes
1) xfrm: ipcomp: account full fragment pages in truesize
Charge the decompressed IPComp skb a page-rounded truesize, so
the socket memory accounting matches the pages actually attached.
2) xfrm: esp: reset outer TCP GSO metadata on espintcp input
Reset the GSO state inherited from the outer TCP stream on
ESP-in-TCP input, so a decrypted packet isn't segmented with
stale metadata and multi-segment records no longer crash.
3) xfrm: keep the mode module pinned until destroy_state returns
Hold an extra module reference across the state destroy callback,
so an rmmod racing the state GC can't free the module text while
the callback is still running.
4) xfrm: serialize SA activation with state deletion
Take the state lock for the final VOID-to-VALID transition, so a
hard expiry can't delete the state in between and leave it in
the per-CPU cache.
5) xfrm: keep old state references until migration deletion completes
Delete the old states before dropping their lookup references, so
a concurrent expiry can't free a state the migration still uses.
6) xfrm: hold migrated states through rollback
Keep a caller reference on the successor states and delete them
before releasing it, so a failed migration can't touch a state
that has already been reclaimed.
7) xfrm: check inner family via skb_dst for small_ipv6 DF clearing
Take the inner address family from the dst instead of skb->protocol,
so the outer DF bit is cleared for small IPv6 packets and the
tunnel doesn't drop them.
8) xfrm: account XFRMA_MARK in xfrm_sa_len()
Count the mark attribute in the SA message length, so the netlink
SA notifications are sized correctly.
9) xfrm: replay: Fix late packet handling with ESN crypto offload
Drop packets far ahead of the replay window when the ICV check
runs in hardware, so a late packet can't corrupt the offloaded
ESN state.
10) xfrm: fix IPv6 first-fragment protocol decode
Let the flow dissector walk past an IPv6 fragment header, so the
inbound policy lookup sees the real upper-layer protocol.
11) xfrm: fix selector matching for IPv6 atomic fragments
Restore the port and protocol selector fields for atomic IPv6
fragments, so such packets can match a policy.
12) xfrm: espintcp: read the socket error queue for MSG_ERRQUEUE
Read the error queue through the socket error path, so a queued
timestamp is reported instead of being consumed as an IKE message.
13) xfrm: iptfs: force a dst reference before queueing an skb
Take a dst reference while the packet is still under RCU, so the
deferred IPTFS output doesn't use a dst that may already be gone.
14) xfrm: espintcp: select receive path by skb protocol
Pick the receive path from the packet protocol instead of the
socket family, so an IPv4 packet on a v4-mapped socket isn't
parsed by the IPv6 path.
15) net: xfrm: interface: restore dst_orig on every xfrm interface
Restore the original route in both arms of the interface xmit
path, so a steered packet finds a policy and the metadata dst is
left untouched.
16) xfrm: iptfs: make room before copying a continuation in reassembly
Grow the skb head before copying a reassembly continuation, so a
larger continuation doesn't overrun the buffer and panic.
17) xfrm/compat: pass on the translated length of a socket policy
Pass the translated policy length to the 32-bit compat layer, so
the last template isn't dropped and an ESP-required policy doesn't
fall back to clear text.
18) xfrm: Give GC list nodes their own storage
Give the GC and hash list nodes separate storage, so adding a
state to the GC list can't corrupt the hash linkage that RCU
readers still follow.
19) xfrm: Serialize device state teardown
Let only one caller free the device state and hold a reference in
the flush, so the state GC and a device flush can't free the same
state.
20) xfrm: Wait for an RCU grace period before freeing device state
Wait for an RCU grace period after collecting the device states,
so the driver state isn't freed while readers are still using it.
21) Revert "xfrm: serialize state GC with device state flush"
Revert the GC and flush mutex, since the reference handling and
the single-free rule make it unnecessary and it can't cover the
lookup path.
22) xfrm: Serialize offload stats updates with x->lock
Serialize the offload stats refresh with the state lock, so the
counters aren't updated twice and a dump doesn't copy them while
they change.
Please pull or let me know if there are problems.
Thanks!
The following changes since commit 787268686c64be60023743b527645a907e38ccca:
ipmr, ip6mr: queue netlink route queries out of band (2026-11-03 22:30:55 +0100)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git tags/ipsec-2026-12-01
for you to fetch changes up to bb65a0da99bf4861dce01149ba64e875e47ae5a3:
xfrm: Serialize offload stats updates with x->lock (2026-11-30 11:36:34 +0100)
----------------------------------------------------------------
ipsec-2026-12-01
----------------------------------------------------------------
Andrii Tereshchenko (2):
xfrm: iptfs: make room before copying a continuation in reassembly
xfrm/compat: pass on the translated length of a socket policy
Baek Kyu, Kim (1):
xfrm: espintcp: read the socket error queue for MSG_ERRQUEUE
Cen Zhang (3):
xfrm: keep the mode module pinned until destroy_state returns
xfrm: keep old state references until migration deletion completes
xfrm: hold migrated states through rollback
Cosmin Ratiu (1):
xfrm: replay: Fix late packet handling with ESN crypto offload
Guoshuai Yang (1):
xfrm: esp: reset outer TCP GSO metadata on espintcp input
Jamal Hadi Salim (1):
net: xfrm: interface: restore dst_orig on every xfrm interface
Jianbo Liu (5):
xfrm: Give GC list nodes their own storage
xfrm: Serialize device state teardown
xfrm: Wait for an RCU grace period before freeing device state
Revert "xfrm: serialize state GC with device state flush"
xfrm: Serialize offload stats updates with x->lock
Jérémy Jean (2):
xfrm: fix IPv6 first-fragment protocol decode
xfrm: fix selector matching for IPv6 atomic fragments
Kyle Zeng (1):
xfrm: serialize SA activation with state deletion
Nguyen Ngoc Thang (1):
xfrm: iptfs: force a dst reference before queueing an skb
Sewook Seo (1):
xfrm: check inner family via skb_dst for small_ipv6 DF clearing
Yasuaki Torimaru (1):
xfrm: account XFRMA_MARK in xfrm_sa_len()
Zhiling Zou (1):
xfrm: ipcomp: account full fragment pages in truesize
Zihan Xi (1):
xfrm: espintcp: select receive path by skb protocol
include/net/esp.h | 51 +++++++++++++
include/net/ipv6.h | 1 +
include/net/xfrm.h | 26 ++++---
net/core/filter.c | 8 --
net/ipv4/esp4.c | 9 +++
net/ipv6/esp6.c | 9 +++
net/ipv6/exthdrs_core.c | 25 ++++---
net/xfrm/espintcp.c | 5 +-
net/xfrm/xfrm_compat.c | 18 ++++-
net/xfrm/xfrm_device.c | 4 +-
net/xfrm/xfrm_interface_bpf.c | 19 ++---
net/xfrm/xfrm_interface_core.c | 22 +++---
net/xfrm/xfrm_ipcomp.c | 2 +-
net/xfrm/xfrm_iptfs.c | 17 ++++-
net/xfrm/xfrm_output.c | 5 +-
net/xfrm/xfrm_policy.c | 61 +++++++++++----
net/xfrm/xfrm_replay.c | 14 +++-
net/xfrm/xfrm_state.c | 164 ++++++++++++++++++++++++++++++++---------
net/xfrm/xfrm_user.c | 50 +++++++++++--
19 files changed, 395 insertions(+), 115 deletions(-)
Technical Details
Message-ID:
<20261201124252.1163254-1-steffen.klassert@secunet.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375033-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375033-linux-kernel-netdev=dewy.ru From: steffen.klassert@secunet.com (Steffen Klassert) Newsgroups: linux.kernel.netdev Subject: [PATCH 0/22] pull request (net): ipsec 2026-12-01 Date: Tue, 1 Dec 2026 13:41:26 +0100 Organization: Usenet Network Message-ID: <20261201124252.1163254-1-steffen.klassert@secunet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1711417"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+qEsXtyuqLiGaGtpZ/2nZd2bVgA= sha256:Bhhfc0gzwn0HrDYuZOA39JSXQ90B91jJBriOBtw+PLQ= sha1:pTsCyJFxdVXIAv0gkOUW8iHvbCw= sha256:sHh5d0xEgBMHDvmWuCr2YL1lOLfUlBTd0071pl5J2DQ= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2C629117387; Tue, 1 Dec 2026 15:44:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=secunet.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bsZ8T1q_Sbjk; Tue, 1 Dec 2026 15:44:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375033-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=secunet.com X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 82D4C117382; Tue, 1 Dec 2026 15:44:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 8A5A924F5C; Tue, 1 Dec 2026 12:44:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796129043; b=FvNizLgYZoJ6nulL0qGoWIAAZHtASYtroE8OJCyyVw4nojS70d1G9Gdt0CIuo+81jW2F vgVPlhiGGo/nUIhLG+XtYM4PRlgxTgD8XSzXxKde3yvCjqvX5D3tpXMqatMUkRq+/tSVS w9jVN4Mww8LMgJ9NtzQ3pqlvcwTyPrki+ykAa2W2x2yQqzzq2go2MP+ygJNOMe9r894K/ bSsgF7dO6vn4lcDSYLYNeWK80rRUnmgxxDxPUTZkQ558TXmqwLoktIWM07j9qJCDTWXQ8 XC+NDLwvYCnl+/xcrhdE3DI0P9qvjeC+7+XXV/aPrTLHdcsxVkFl63x3IykIWqjdSMw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796129043; h=X-Original-To:Received:DMARC-Filter:Received:X-Virus-Scanned: Received:Received:DKIM-Filter:DKIM-Signature:Received:Received:From: To:CC:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding: X-ClientProxiedBy; bh=YzuLRA3JEIdnrwo2KH3MAQCPb9KT0rV+0HFq5+ocBSw=; b=lNyr/PK7qvkx6yf84X1fQTSlrKbdoZv33RizDrEDZkB/Lngqo7WF9QEkoVKRQLCUEBiY tAhigYPmCOn+QbszZJgKryUgSHM7Gpkp+q/YM5idUgc8XLtv5KmnJql1ywyqLmoyvdGK0 DQDuNeXceDvl47mEDoSTZfXEe8thgKqBI3vF4MQMlbU41bjK3xi+KNrP64NxABgLNDQgK oLW9SiWlDJEj++lNCK7FHoy285cY4IUV9l71AMZMkUS/Qfe0khuQWRaTSCZeSeMPEd40d f/TvhzqqShcVfV+oj4i8XtiqH6AMlniHSvkLpiQauJlcwPMbSO/9OgbVYCFFRck6mlg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=DMcgDQxz; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 049A2606A336; Tue, 1 Dec 2026 12:44:03 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=DMcgDQxz X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.96.220.36 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796129042; b=CpT308vOjI+TyRfzzySFECXDiLhAwyvrI9awooA9bvqXIv26kTV/OoT81isoLvMtNFkw lLfiaGmiLwJ4PlG+627OACpDqFYWgkhu3FGAc5xtbvBMGpF59rSEfGQ5tXgs6czRbfwBw /aaKBJ7FxkCDeCeOXtM4IIDwPWolFs+yux1B5K0giRCQri8RpE2CaU6esVNK9mBerAayw OlG9CGFBHctol9ryWQCQLB6VcE4iEb5UVYraUaChObMTpFZ37nHTj1LVk50GIWvKEPUBL nrPfWs4B+aKnn9QhvAXmIlEVDHlbShwwict/cZ3JUgc6doLjR2n4FnxRKnrnClIZoCQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796129042; h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter: DKIM-Signature:Received:Received:From:To:CC:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding: X-ClientProxiedBy; bh=YzuLRA3JEIdnrwo2KH3MAQCPb9KT0rV+0HFq5+ocBSw=; b=F9QMSUr8sa68DgjJp8+/o9VI/N1Z6RoVAJxIL//leOlvMsJqxxf/s3vDeWcDadQ8OQxB diMt6rYeqcmB+mq+6RW7nRnw08KA+m4iWkxJwTe8qwq1YXHdFXO0AWi32oHIzXif63yKP y9utjXfuRFKT2LOYRrpe1L2eUjkQAd081wpQUEOs2VzDPE7RCF+3XJuYFjKg18VTL+yOI UHQBdpRUaZGzTyTo8xK/3JpKrgj8pzPwAWGha1lDH7czMtiy6HOqLb+sxd5B3hvpLbbN4 9nTT+G+c3D+d3RZiqc7Pss4z7rvzk/thDfTSZTGNIlMeK51x3QiWYB+paTTrE/i0WaQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=DMcgDQxz; arc=none smtp.remote-ip=62.96.220.36 X-Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0B5E606A31A for <netdev@vger.kernel.org>; Tue, 1 Dec 2026 12:44:00 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0B5E606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com X-Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 34E1A207A4; Tue, 1 Dec 2026 13:43:58 +0100 (CET) X-Virus-Scanned: by secunet X-Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D0d1aiO_BNkN; Tue, 1 Dec 2026 13:43:57 +0100 (CET) X-Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 509C5204D9; Tue, 1 Dec 2026 13:43:57 +0100 (CET) X-DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 509C5204D9 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1796129037; bh=YzuLRA3JEIdnrwo2KH3MAQCPb9KT0rV+0HFq5+ocBSw=; h=From:To:CC:Subject:Date:From; b=DMcgDQxzK6vmyYsCg84M4Ec2ugYhNhekO/YBX4o9ZOu+jo0GGv4Kdf4MIc1N7zbr1 o1TWely3yooJBkJRiFiaDnM858KpxrwqdC8Qg9cA8lSMV9Lgb6MKgGUGquD4VzhJbY yVsVrTtzeMnHAUhlwq8ONsaKr56d930Ksf449zGjC4FuZzMwBAranIdREOzv+myzG/ 6esGFJpNQLCuYQ7+SASZe6MeSLxcfFfopyvLcTp6eHLcd00BlpUHnssjfvg77ctTZy OBJrDy+gkvImxqXeXB0LsyMJBJlJ/mn8jHQhJ9SCX6g3ESEmy431jWFDaDBVwQJjXB D8mMHqTZ8Ghqg== X-Received: from gauss4 (10.182.7.102) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Tue, 1 Dec 2026 13:43:56 +0100 X-Received: (nullmailer pid 1165750 invoked by uid 1000); Tue, 01 Dec 2026 12:43:55 -0000 X-CC: Herbert Xu <herbert@gondor.apana.org.au>, Steffen Klassert <steffen.klassert@secunet.com>, <netdev@vger.kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-ClientProxiedBy: EXCH-04.secunet.de (10.32.0.184) To EXCH-01.secunet.de (10.32.0.171)