From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.96.220.36 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== 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== 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 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 ; Tue, 1 Dec 2026 12:44:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0B5E606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com 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 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 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) 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) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 509C5204D9 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== 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 Received: (nullmailer pid 1165750 invoked by uid 1000); Tue, 01 Dec 2026 12:43:55 -0000 From: Steffen Klassert To: David Miller , Jakub Kicinski CC: Herbert Xu , Steffen Klassert , Subject: [PATCH 0/22] pull request (net): ipsec 2026-12-01 Date: Tue, 1 Dec 2026 13:41:26 +0100 Message-ID: <20261201124252.1163254-1-steffen.klassert@secunet.com> X-Mailer: git-send-email 2.53.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: EXCH-04.secunet.de (10.32.0.184) To EXCH-01.secunet.de (10.32.0.171) 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(-)