🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10531

Re: [PATCH net,v2 00/15] Netfilter/IPVS fixes for net

#10531
From: Pablo Neira Ayuso
Date: Tue, 03 Nov 2026 17:06
167 lines
14800 bytes
Hi,

On Tue, Nov 03, 2026 at 03:02:52PM +0100, Pablo Neira Ayuso wrote:
> v2: remove kdoc update in nf_conntrack_expect.
>     anything else, just like v1.

There is an issue with patch 6/15 which needs a bit more work.

I will resubmit v3 without 6/15. IPVS patch 2/15 might also need a
second spin.

Preparing v3 here...

> -o-
> 
> Hi,
> 
> The following batch contains Netfilter/IPVS fixes for net, this batch
> addresses LLM findings, several of these fixes has been reproduced by
> syzbot:
>  
> 1) Add recursion count to nf_reject infrastructure to prevent stack
>    overflow, from Fernando F. Mancera.
>  
> 2) Address a infinite loop in RCU list traversal with the TWOS IPVS
>    scheduler, from Darong Lu and Julian Anastasov.
>  
> 3) Use kfree_rcu() to release IPVS parent application to fix UaF,
>    from Chengfeng Ye.
>  
> 4) Fix UaF in IPVS netns removal path due to releasing per-net protocol
>    data too early, from Chengfeng Ye.
>  
> 5) Fix unbounded growth of stale, unmatchable IPVS connection entries,
>    from Julian Anastasov.
>  
> 6) Restrict maximum master conntrack chain depth in ctnetlink,
>    from Florian Westphal.
>  
> 7) Preserve recursion count on nfqueue reinjection, from Zihan Xi.
>  
> 8) Restore GRE timeout in the flowtable, otherwise, WARN_ON_ONCE()
>    is reachable, from Michail Andreas Michalopoulos.
>  
> 9) Check non-null gc transaction in nft_rbtree before queuing it for
>    processing, from Xingyuan Mo.
>  
> 10) Replace WARN_ON_ONCE() by DEBUG_NET_WARN_ON_ONCE() in
>     nf_conntrack_bridge which is reachable if the protocol of the tag
>     of a frame differs from the vlan_protocol of the bridge.
>     From Laveesh Bansal.
> 
> 11) Check x_tables target name is non-null before accessing it when
>     building a new table, from Fernando F. Mancera.
>  
> 12) Fix out-of-bound memory read in nf_conntrack_sip, from
>     Joas Antonio Dos Santos.
>  
> 13) Fix a memleak in nf_tables hardware offload when double deleting
>     the same rule, in the same batch.
>  
> 14) Use a mutex in xt_recent netns exit path instead of spinlock,
>     since proc unregistration might sleep. From Cen Zhang.
>  
> 15) Zero the nf_nat_range2 struct before filling it up, to avoid
>     using stale uninitialized stack data to configure NAT with
>     an esoteric NAT flags combination. From Florian Westphal.
> 
> Please, pull these changes from:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-03
> 
> Thanks.
> 
> ----------------------------------------------------------------
> 
> The following changes since commit cb284914e749388eef402938bdb3115fe1f6d337:
> 
>   net: ipa: Fix double free of the interrupt structure on config error (2026-10-30 19:04:37 -0700)
> 
> are available in the Git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-03
> 
> for you to fetch changes up to 3d234337bbb1e32fab38e4e30da72edc5ddc241f:
> 
>   netfilter: nat: zero newrange before filling it in (2026-11-03 14:50:15 +0100)
> 
> ----------------------------------------------------------------
> netfilter pull request 26-11-03
> 
> ----------------------------------------------------------------
> Cen Zhang (Microsoft) (1):
>       netfilter: xt_recent: do not call remove_proc_entry() under recent_lock
> 
> Chengfeng Ye (2):
>       ipvs: Defer application parent freeing until after RCU readers
>       ipvs: fix protocol data lifetime during namespace teardown
> 
> Darong Lu (1):
>       ipvs: wait grace period while reusing dest from trash
> 
> Fernando Fernandez Mancera (2):
>       netfilter: nft_reject: prevent unbounded recursion in output hooks
>       netfilter: x_tables: check target name before accessing verdict
> 
> Florian Westphal (2):
>       netfilter: nf_conntrack: limit expectation master chain depth
>       netfilter: nat: zero newrange before filling it in
> 
> Joas Antonio dos Santos (1):
>       netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()
> 
> Julian Anastasov (1):
>       ipvs: do not create conns from packets with port 0
> 
> Laveesh Bansal (1):
>       netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag()
> 
> Michail Andreas Michalopoulos (1):
>       netfilter: flowtable: extend ct timeout of offloaded GRE flows
> 
> Pablo Neira Ayuso (1):
>       netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload
> 
> Xingyuan Mo (1):
>       netfilter: nft_set_rbtree: check catchall_sync return before queue_done
> 
> Zihan Xi (1):
>       netfilter: nf_dup: preserve guard across NFQUEUE reinjection
> 
>  include/linux/netdevice_xmit.h              |   4 +-
>  include/net/ip_vs.h                         |   4 +-
>  include/net/netfilter/nf_conntrack_helper.h |  15 ++++
>  include/net/netfilter/nf_dup_netdev.h       |  35 ---------
>  include/net/netfilter/nf_queue.h            |   1 +
>  include/net/netfilter/nf_recursion.h        |  42 +++++++++++
>  net/bridge/netfilter/nf_conntrack_bridge.c  |   2 +-
>  net/ipv4/netfilter/arp_tables.c             |   5 +-
>  net/ipv4/netfilter/ip_tables.c              |   5 +-
>  net/ipv4/netfilter/nf_reject_ipv4.c         |  12 +++
>  net/ipv6/netfilter/ip6_tables.c             |   5 +-
>  net/ipv6/netfilter/nf_reject_ipv6.c         |  13 ++++
>  net/netfilter/ipvs/ip_vs_app.c              |   2 +-
>  net/netfilter/ipvs/ip_vs_core.c             |  15 ++--
>  net/netfilter/ipvs/ip_vs_ctl.c              | 109 ++++++++++++++++++++++------
>  net/netfilter/ipvs/ip_vs_proto_sctp.c       |   5 ++
>  net/netfilter/ipvs/ip_vs_proto_tcp.c        |   5 ++
>  net/netfilter/ipvs/ip_vs_proto_udp.c        |   4 +
>  net/netfilter/nf_conntrack_expect.c         |   3 +
>  net/netfilter/nf_conntrack_netlink.c        |  36 ++++++---
>  net/netfilter/nf_conntrack_sip.c            |   4 +-
>  net/netfilter/nf_dup_netdev.c               |   1 +
>  net/netfilter/nf_flow_table_core.c          |   1 +
>  net/netfilter/nf_nat_masquerade.c           |   4 +-
>  net/netfilter/nf_queue.c                    |   1 +
>  net/netfilter/nf_tables_api.c               |  21 +++---
>  net/netfilter/nf_tables_offload.c           |   3 +
>  net/netfilter/nfnetlink_queue.c             |  17 ++++-
>  net/netfilter/nft_fwd_netdev.c              |   1 +
>  net/netfilter/nft_set_rbtree.c              |   3 +-
>  net/netfilter/xt_NETMAP.c                   |   4 +-
>  net/netfilter/xt_recent.c                   |   7 +-
>  32 files changed, 279 insertions(+), 110 deletions(-)
>  create mode 100644 include/net/netfilter/nf_recursion.h
> 
Technical Details
Message-ID: <auoUhCBDxquEG1ij@chamomile>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355848-linux-kernel-netdev=dewy.ru
References: <20261103140308.591690-1-pablo@netfilter.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355848-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net,v2 00/15] Netfilter/IPVS fixes for net
Date: Tue, 3 Nov 2026 18:06:12 +0100
Organization: Usenet Network
Message-ID: <auoUhCBDxquEG1ij@chamomile>
References: <20261103140308.591690-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3216864"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oT/3cItQ1dgfBIMAbF3+nE0zdJU= sha256:+zGwe2RlfEnctKzOD9uuHbXidZWX5aOuIy1egjDlwKs=
	sha1:uYbx0hs/O9AC3VRJX6XgvdxILSY= sha256:cvL8u3kdhojtXsiD2f5S/c4GUV5AIMjJd8hNfV7j8wI=
Content-Disposition: inline
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 8D65C112960; Tue,  3 Nov 2026 20:09:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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]
	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 P-XpNgUhx0cc;
	Tue,  3 Nov 2026 20:09:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355848-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 755D111295E; Tue,  3 Nov 2026 20:08:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 80EF8606923; Tue,  3 Nov 2026 17:06:22 +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=1793725580;
	b=VxjvkQsbqlXtigQ/QZa6jEDLW92bSKPRuWqLuJqo3Ukuu9Se/v8r/+MX7552UCG2H2Do
	 EDvB9cyzt/2hnZB+ZHXTbprEp4yGAzYG02QZhjlqgbVgu/znUIZoqqYtr/3fifc79ztZ5
	 ZJuM7URlTJpgoDUaahwvzjX6QlP6V9prhxCFBOKevrzwZjV4b7kRo7IdXDnpWBGOhjTY9
	 y/KUTIY34jDTNT7LL1WilmQcA9aqI9YjQ/y/uszWZ72lCB55I0KLEIqZiz23D5sTfmGfH
	 kvnf/RyfZOh4qePGQwCT4rrVPC3urs0FcKVimkhqco+MNJTkZaBCJJ+TVv4Tgefbs6g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793725580;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=VxDUGgqpmuwjhaz2tpt1jbM+g+Mh/icM7bqfI0dRVZs=;
	b=eGbhxbqyPzQcNPZQwooGzCov6xTtCveVdHfYiexwiQ8DNFOcEZ+OEvi2v6JpthVjyOjR
	 wwEJkMKo2TlBsLxuIuhk2JyBiLJO+gk/Xr7J4n56G59oTOMyfHKkHBvH06IHOZjbhy8pq
	 WpAXQZjkcU9q0Vu7y5UMwjuhj/hGhuAkRTqFLxRT3Ko+wN22NKueHUqrdTltXDgG9rHbJ
	 +l/6ji/u7LZc2R3UAEDVvkfvepLbDlhJVE4K5EMfthPqKIDEqlDNOW4s5PYZkWtoZCxp2
	 XZPKQThJIMfUaBGUoXnZQdO/nMrdnkxkJC0009/nuCnZeVlQhzGwxkElpWLHEFJls4Q==
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=OAmxmets;
	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 428C8606A333;
	Tue,  3 Nov 2026 17:06:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=OAmxmets
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=1793725579;
	b=uSKTF0T/GepljffADRSAA9+0m06kpmitCVLhMbM48Ni9ZmGab8i0XXLzOTd5SP13Edlm
	 dnEp592OPvrtmvdTljLEyoDN6vIpu5fERnUn621dM7TzgD47jZuJIQlzlMBO5QDPvLqk5
	 40Uwva72B8i0JeRHLPs624KgaG7UTqve3zSklkVInnASPM7PggxNA0NB/cqpgasX5BrX1
	 JFUjB3tqSMajSMBBcDPa9VUU4+ow5fngPGICH/ACkeKUfDZJUBviJdT2KMpGQ1bs561lx
	 H523BQ2M1QinW+pwAv6loQSUhRL/myQHu5Spy+Toeyr+I1PYE1e/wYopAPNzG3DqxIQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793725579;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Spam-Status:X-Spam-Checker-Version;
	bh=VxDUGgqpmuwjhaz2tpt1jbM+g+Mh/icM7bqfI0dRVZs=;
	b=tAUIQYIuTrBhaama19q6kBhaWYu5sDPEvW5DGcgXBB2cDrCaTq+qwVpPq5jb+8wyBZ8K
	 w2DzWl7JvvhdqjYzDpLyV1Hx7SV1sS5vjqFwulAWcqg1nuAqonLWo21xFJJLQ03ocy0pR
	 /G50so3gwTUoQjWgeu4mzvksHQTct29cE5yBT+ikFw/UicZDBmArvpip4wFZj49GEea9W
	 pZSre6FsoYHbrQ6MPE6RQw+FEmRpq9Y4G5jaEDRO8C5fCec08m6FNregmjwpjFxUvj6mC
	 2xdtrLYcHWR7/r8ecFauOATYqI8PVeIovasj3NKbGqmcu8nsQfxmVZjFkfEq/BKNKZw==
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=OAmxmets;
	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 UTF8SMTPS id 411DA606A338;
	Tue,  3 Nov 2026 17:06:18 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 411DA606A338
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=1793725574;
	bh=VxDUGgqpmuwjhaz2tpt1jbM+g+Mh/icM7bqfI0dRVZs=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=OAmxmetshGAIYBJRfy/d2LH+ONOWvjhHICwDHoGwVBfQ/x8b8lvC8bpImqvejym/y
	 PFMKBc4mRoO0slfNHxtGcq0N0Zb/OqcUFgt5flv0GxMiv0JgKV9KOOC9+Hej5rcXEA
	 14HsGz0goua3VOasIO5cQTtXtU6ZH3vWwwbr7zzHUXU8lWlhFRkV+xtoXXbB/KaZL+
	 GpVoo2vT1BjYsbRivSV4s2wfHPkTCWoZ8v3F9OGIKK1F+n4b8AcOB50P4FE/qWj24w
	 eg4nk+lLiH84QiI+eugbh2Uls9UItjmyM4522zk6y+1J6TqIggiN1aI++SIPN3i2WH
	 SuqQgI6eGuCWQ==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id A7B6F6005C;
	Tue,  3 Nov 2026 18:06:14 +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-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-In-Reply-To: <20261103140308.591690-1-pablo@netfilter.org>