From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796075509; b=c4LsgcbGN0UZE4uX9yWACju5ijQoevp0svDkCf/hOhajxfqKRVqryS1ZYeJgEs/6PT4h NpD+TrexIoKE5omiOlqDW3mBqyIJCjTl95Yp94udlff41C6/QCpS0Qd9Mtm8EtxeHpRa4 ZxYST6VxlZrJwoZPxCg7zLUk5Va7nDrTWvm2EO0Roi8kDfvlHdMBMMKSICJV+h8qOJFvV u+qlD4XuLmvgZNMCPwAlETJkEHTkGBIIXIpDs2C5WlBYk8R+4V5u0VQcW5NevmcABe2x+ RwL79toLcSxbKLhI2jZKGTLbz4i5V6GNavYEbR/IZpke4jQbqzxu8LmgHkbtlN1r9GQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796075509; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Spam-Status:X-Spam-Checker-Version; bh=fqOKfIdu1acP1Oac6fijCdQKfStLDvzkaMmX33YvRK4=; b=yLol7P5c212HnWs+JktzpqCVGTzOWf1C2dUdEySu013WTArOUq4hH038kdQTklT0HAxk 4iyPa9bs7vpLwVriTZ7TkyfjKa1OAVMAhzsJjHNNXtx1sl+TEn6Na3aGkUlDFIYEM7oH9 mi6LqwJQ/OsbPXI5otqADq2x056gRTY4Cq+lg4o+i02ui6wjkuRJMNb2Sz5LumN2nzNnY XyGC519Mu0B5Bp6WaHPmXLN3hh17bFzYBzQJERcTLzmHdtOqtXA0DAhfjscQQAEIbI4DS EibOqxTnER2f2d13YOTS4MyTI+I+2f1JjD/cQZA4o3MkxU0Qz8yS3dtXkiWJ7NusX6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=DDx+4mZc; arc=none smtp.remote-ip=217.70.190.124 Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE03F606A31A; Mon, 30 Nov 2026 21:51:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE03F606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=DDx+4mZc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org; s=2025; t=1796075506; bh=fqOKfIdu1acP1Oac6fijCdQKfStLDvzkaMmX33YvRK4=; h=From:To:Cc:Subject:Date:From; b=DDx+4mZcJXLK4usIswjsuQ4jwf91sap3DJlGf/15vN2zT9lN8RLIx9A65qTvwOpVr +Qn+o0RRie+rBqiJJBGMpj1y0G9IojSsPQukiBgo1bt+toSUI4HIObqkKTTBnqsaNN ZQjeakhkIITxflFyu5XE41XveS8g4EFXt1b+CHt38dPMfw3dfZpBWCfc0BeY9K5rpg TEX6AsBNXlrqtroYLa6KKXuVlzItOmC1zm6oo89hnrcBCtgWkZ2juE5tXI9TY//fUH 96an9rogRt+O4Yy8zOtMJiZsRkdQkEVLboLj+I1P8VPzS2wztf7GtpDu+hwFI531DW NLPVGbR1Rfegg== Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id 5CE716005E; Mon, 30 Nov 2026 22:51:45 +0100 (CET) From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: davem@davemloft.net, netdev@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, horms@kernel.org, fw@strlen.de, ja@ssi.bg Subject: [PATCH net,v2 RESEND 00/10] Netfilter fixes for net Date: Mon, 30 Nov 2026 22:51:31 +0100 Message-ID: <20261130215141.1009148-1-pablo@netfilter.org> X-Mailer: git-send-email 2.47.3 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-Transfer-Encoding: 8bit v2: - add nft_synproxy to address SYN and ACK packets only patch. - drop patches that need more work: + flowtable hardware offload cleanup (3 patches) + use ESTABLISHED state for TCP reject. + AH conntrack defrag issue needs another round too. -o- Hi, The following patchset contains Netfilter fixes for net: 1) Allocate all ct extensions if ct helper extension is used, this is needed because ct extension reallocation is possible while expectations are already sitting in the expectation list. From Jaeyeong Lee. 2) Restrict xt_IDLETIMER to init_netns. This xtables extensions exposes a global sysfs interface. Follow ups are possible to restore this feature if someone proves to be using this extension from netns. From Zhiling Zou. 3) Prevent an unbound recursion in the synproxy transmit path. This is similar to a recent fix to address a similar recursion in the reject transmit path. Patch from Fernando F. Mancera. 4) On conntrack module removal, wait for RCU quiescent state to address possible use-after-free. From Chengfeng Ye. 5) Updates nft_synproxy to address SYN and ACK packets only, just like ip{6}t_SYNPROXY does, otherwise hook re-entering is possible. From Fernando F. Mancera 6) Restrict maximum number of chain of master conntracks to 8. This is to address a recursion in the conntrack destroy path leading to stack overflow. From Florian Westphal. 7) Skip recycled unconfirmed conntracks seen from /proc/net/nf_conntrack due to TYPESAFE_RCU, otherwise access to ct extension of this new unconfirmed conntrack results in a crash. from Yiran Qiu. 8) Detach ct template in conntrack bridge when packet is invalid, otherwise ct template is exposed to follow up hooks in the pipeline. From Luxiao Xu. 9) In synproxy, fix incorrect handshake ACK sent to the backend carries a TSecr uncovered since commit 3ba075278c11 ("tcp: be less liberal in TSEcr received while in SYN_RECV state"). This bug has been reported in production. Patch from Florian Westphal. 10) Disable hook for dormant table only if transition to dormant state took place in this transaction. From Ma Xinmen. Please, pull these changes from: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-30 Thanks. ---------------------------------------------------------------- The following changes since commit e1055cbfd6eb578417f3ce983cf44462e8465267: Merge tag 'linux-can-fixes-for-7.4-20261124' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (2026-11-26 15:47:14 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-30 for you to fetch changes up to ee5c04c7d9d5cefd08ca7eb6e9bf434fecf44f92: netfilter: nf_tables: only disable tables on a dormant transition (2026-11-30 21:59:26 +0100) ---------------------------------------------------------------- netfilter pull request 26-11-30 ---------------------------------------------------------------- Chengfeng Ye (1): netfilter: conntrack: wait for RCU readers before freeing the hash Fernando Fernandez Mancera (1): netfilter: synproxy: prevent unbounded recursion in transmit path Florian Westphal (2): netfilter: conntrack: limit master chain depth netfilter: synproxy: fix double tsoff application in server ACK TSecr Jaeyeong Lee (1): netfilter: conntrack: prevent helper extension relocation Luxiao Xu (1): netfilter: bridge: detach conntrack template on invalid IP frames Ma Xinmeng (1): netfilter: nf_tables: only disable tables on a dormant transition Nguyen Ngoc Thang (1): netfilter: nft_synproxy: only handle pure SYN and ACK packets Yiran Qiu (1): netfilter: conntrack: skip unconfirmed entries in /proc/net/nf_conntrack Zhiling Zou (1): netfilter: xt_IDLETIMER: restrict to init_net include/net/netfilter/nf_conntrack_helper.h | 15 +++++++++++ net/bridge/netfilter/nf_conntrack_bridge.c | 16 +++++++----- net/netfilter/nf_conntrack_core.c | 1 + net/netfilter/nf_conntrack_expect.c | 15 ++++++++--- net/netfilter/nf_conntrack_extend.c | 31 +++++++++++++++-------- net/netfilter/nf_conntrack_netlink.c | 36 ++++++++++++++++++-------- net/netfilter/nf_conntrack_standalone.c | 3 +++ net/netfilter/nf_synproxy_core.c | 39 ++++++++++++++++++++++++++--- net/netfilter/nf_tables_api.c | 2 +- net/netfilter/nft_synproxy.c | 8 +++--- net/netfilter/xt_IDLETIMER.c | 7 ++++++ 11 files changed, 135 insertions(+), 38 deletions(-)