🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21031

[PATCH net-next 00/15] Netfilter updates for net-next

#21031
From: Pablo Neira Ayuso
Date: Mon, 23 Nov 2026 13:54
110 lines
12783 bytes
Hi,

The following batch contains Netfilter updates for net-next. This is
composed of four groups:

1) Patch 1 addresses a race in the nf_conntrack_buckets sysctl handler,
   that has been reported by LLM. From Fernando F. Mancera.

2) Patches from 2 to 7: This is a conntrack hardening series to address
   LLM reports of the issues related to skbuff mangling while a ct is
   already present, leading to mismatch protocol numbers, ie. ct becomes
   stale since it does not represent this skbuff. This is unlikely to
   happen in a real world. From Florian Westphal.

3) Patch 8 updates nft_synproxy to address SYN and ACK packets only, just
   like ip{6}t_SYNPROXY does. From Fernando F. Mancera.

4) Patch 9 validate hook priority so nft_ct template is narrowed down
   to be used where it makes sense. From Florian Westphal.

5) The ipset hash types conversion to rhashtable, including a new
   rhashtable helper function to flush and destroy the hashtable.
   This is a rework that aims at fixing the existing resize races in
   the ipset hash type, which has triggered a myriad of LLM patches
   addressing the symptoms but not the core issue. This large so
   we prefer net-next for these series. Series from Florian Westphal,
   plus one patch for rhashtable to add a flush and destroy helper
   function by Herbert Xu.

You can pull these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master

Thanks!

1) 

Please, pull these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-26-11-23

Thanks.

----------------------------------------------------------------

The following changes since commit 994089a3fa3882f27f4bed9fc5815ee7df502e88:

  Merge tag 'nf-next-26-11-16' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next (2026-11-17 12:05:37 +0100)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-26-11-23

for you to fetch changes up to 80b89c83c8672becbc94ff7ad92ad5ef01d48fab:

  netfilter: ipset: re-add forceadd support (2026-11-23 14:03:47 +0100)

----------------------------------------------------------------
netfilter pull request 26-11-23

----------------------------------------------------------------
Fernando Fernandez Mancera (1):
      netfilter: conntrack: prevent nf_conntrack_buckets race condition

Florian Westphal (12):
      netfilter: conntrack: validate skb->_nfct and packet headers
      netfilter: conntrack: refactor helper call logic in nf_confirm()
      netfilter: conntrack: verify L4 protocol before calling helper
      netfilter: conntrack: replace open-coded helper invocation
      netfilter: conntrack: harden helper invocation with tuple revalidation
      netfilter: nft_ct: validate timeout object protocol
      netfilter: nft_ct: validate hook and priority for ct zone set
      netfilter: ipset: add rhashtable boilerplate stubs
      netfilter: ipset: replace internal hash table with rhashtable
      netfilter: ipset: also report mem size for cidr storage to userspace
      netfilter: ipset: re-add IP_SET_HASH_WITH_MULTI support
      netfilter: ipset: re-add forceadd support

Herbert Xu (1):
      rhashtable: Add rhashtable_flush_and_free helper

Nguyen Ngoc Thang (1):
      netfilter: nft_synproxy: only handle pure SYN and ACK packets

 include/linux/rhashtable.h                   |   40 +-
 include/net/netfilter/nf_conntrack_helper.h  |    2 +
 include/net/netfilter/nf_tables.h            |    4 +
 lib/rhashtable.c                             |  186 ++-
 net/netfilter/ipset/ip_set_hash_gen.h        | 2176 ++++++++++++++------------
 net/netfilter/ipset/ip_set_hash_ip.c         |    6 +-
 net/netfilter/ipset/ip_set_hash_ipmac.c      |    6 +-
 net/netfilter/ipset/ip_set_hash_ipmark.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_ipport.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_ipportip.c   |    6 +-
 net/netfilter/ipset/ip_set_hash_ipportnet.c  |    6 +-
 net/netfilter/ipset/ip_set_hash_mac.c        |    3 +-
 net/netfilter/ipset/ip_set_hash_net.c        |    6 +-
 net/netfilter/ipset/ip_set_hash_netiface.c   |   74 +-
 net/netfilter/ipset/ip_set_hash_netnet.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_netport.c    |    6 +-
 net/netfilter/ipset/ip_set_hash_netportnet.c |    6 +-
 net/netfilter/nf_conntrack_core.c            |  119 +-
 net/netfilter/nf_conntrack_ovs.c             |   53 +-
 net/netfilter/nf_conntrack_proto.c           |  173 +-
 net/netfilter/nf_conntrack_standalone.c      |   18 +-
 net/netfilter/nf_tables_api.c                |   48 +-
 net/netfilter/nft_ct.c                       |   87 +-
 net/netfilter/nft_synproxy.c                 |    8 +-
 24 files changed, 1850 insertions(+), 1201 deletions(-)
Technical Details
Message-ID: <20261123135442.3940372-1-pablo@netfilter.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369423-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369423-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 00/15] Netfilter updates for net-next
Date: Mon, 23 Nov 2026 14:54:27 +0100
Organization: Usenet Network
Message-ID: <20261123135442.3940372-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3893415"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7KPCnoGLqSOW/LoYEmXb9wTx9Jk= sha256:2AFoO4r1+g0qGZvuMF3zexDUPUygI+7zQ0mqoTAxops=
	sha1:aUabyA+k04rFkP6vVac9LmM+85s= sha256:klLB5ISzgoUunitsMUes/Iy5+YzpDmH1fGxcE8PuJb4=
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 DDA86125DB9; Mon, 23 Nov 2026 16:56:00 +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=netfilter.org
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 m2BZjJbQMfs4;
	Mon, 23 Nov 2026 16:55:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369423-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4E784125DB7; Mon, 23 Nov 2026 16:55:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id C17033370A; Mon, 23 Nov 2026 13:54:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1795442098;
	b=Nyj1+8ij7CVxdqSElk4BZ06YuCCburakUcHr+ROB6v9H/71F9L/teG0p1XYmP+RGKRfZ
	 Rupyv+5HRPXkVmlYr79ZHmpJzga8MiU8XLA7CsU1nH6XjUc/FaCMMFD9bhPZFGRv5m0pS
	 QgRLbjFkWsecbDAifU/iHSODmqSZ5+C5GfwW2nKoqcriEk2YzE7EMycdCS+T4C1U43swm
	 qcdj5ar1/Edq4xgyErcCLHL1bVx3oQrq/xzTHO3HKOjCw/mxg6f/T7jG1fkrHm0EctS/o
	 MPRB6aZ+IgMRqak6RfT/skJ0TsvQwvzaLU+En0JorKJGeYYIHTqbm2hnmaoCzTk3Ncw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795442098;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: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-Transfer-Encoding;
	bh=Ru2s9mES9ylKZgw0DoHp5PGWV2CKsSwTOut/bwZ7m20=;
	b=yzJKc0oA/tlJi5wKwbkoNfqkkmJPN0VHuZSvzSVw92N2XFFz5B70Dz3TYCpTi9ESJJXx
	 3J7W3WZnUhN1NsEKuIM8ADIJFi2X1VPxb+nZc3neOayxySeyv+VUFxGRvWyC7s0NhtYrl
	 QEFmoOU42mkRZGAWjvA86IbSah+AAZefLVB4VZ5m6d3l7Pb5G3zE9ks/D9Wlm5oDtChgC
	 gHkxA/BrckJQ3S8liSTabFKU+568ig0Cv/bcv9gKzTVowk20gkdya8QLNKxgDZAKH3be3
	 Vi1aBYmm+RiR4lS6nITMNpLERK8LfXun9q11ZUDCNNO8S0v9tv5kgZrsR2geyVmGh2Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=f5HHLWGv;
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	arc=fail 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 323FD606A33D;
	Mon, 23 Nov 2026 13:54:58 +0000 (UTC)
X-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=f5HHLWGv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795442097;
	b=Z1DPI8kbPBqBM5Y85BUGl3fl+T/68sSXhApmI8JJZnuya7YQWy7HR5kSJvk3AaJ+gdmF
	 iZz2UaqowU0b7e3gK6IoQlFMWAKdZiXdE0mgTqiS88vIxHD0NGyIxMllJJVsvW0fZp8YL
	 gWFmXc6tPXFmyjCO9iGwRp7A12km37c1YJG/zdQhX63kiLbl85ufBi4h9fjZRQ3HF4TXe
	 M5i8qxpIRNK3cEqVBs8qCt/xQKLBtDWg7e+WE8g/HJlv+tNTvq8t7LLPUaXdMGYIphyTM
	 qNAEzjE2my9caiz7otjQjSVARs/+TlAxXNCPvwMkOP0JA6wO396smSL/DxT6gKZiFEQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795442097;
	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=Ru2s9mES9ylKZgw0DoHp5PGWV2CKsSwTOut/bwZ7m20=;
	b=rBCu7JJPagiO7+bSLymmp6XxCW4p7IL2S+qN67GRsS3Vk/ZIMwbN/b7gQj0N3o1wKwHW
	 GIsLkaIT91/qp50gXB2EuPR64xSnGveeA+xV4bJqT0JF4SfQDSSBCP9R77cGiR3mIu37R
	 6CMp/QbI+zIN2qeC5U9lGdEQp6tkm1OIjp56PUmPloJquuv3/bFxuUbAEPs8xw6/0l8Gz
	 PwSLFaw3AcFjBd90yF4LY5BATyz8R/gm9Y0iOvUand3wwWPlwTxpCOED8YcCtPpft/5CP
	 uQnNjKhi312jM/lJjoTaupkrCEiM8oitOcjw01mPoT/srLcYYSoN/X1gTShgIQCy+uQ==
X-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=f5HHLWGv;
	arc=none smtp.remote-ip=217.70.190.124
X-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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED306606A31E;
	Mon, 23 Nov 2026 13:54:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ED306606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1795442087;
	bh=Ru2s9mES9ylKZgw0DoHp5PGWV2CKsSwTOut/bwZ7m20=;
	h=From:To:Cc:Subject:Date:From;
	b=f5HHLWGvhniEjKXVJAzS6bocXzi+yYO3PdQYPP/cKgDn5CUzeIMA3Uq0V2EGNetiX
	 QaN/+OpcvrycTsyvyuCFGNjERpW+SYcBuCJOVkV91jPIdenxC0nzJB4czk3t8s7XDt
	 ynPpnNlkdCDkl0hFE7US9iXwWs9XWdzlHhJqZBdGSd8rlMS/Ng3hNz58va0MVxd8+R
	 2aowsTyzT1RacXP1+R/YsJKpjy+/8niIizxQfEgmhHoGdfKfxS2b1dikMa0A5UIso5
	 jypr7uFfl4V3Ip8vVSdm0N9Mnp4TsSKN8XZu+T5YTGgFbVYIlef+FZUAS4EFwclGb3
	 q5/Vj2W6xW56g==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id BAE1F602B9;
	Mon, 23 Nov 2026 14:54:46 +0100 (CET)
X-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
X-Mailer: git-send-email 2.47.3
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