🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16859

[PATCH net,v2 00/11] IPVS fixes for net

#16859
From: Pablo Neira Ayuso
Date: Mon, 16 Nov 2026 00:43
105 lines
11923 bytes
v2: keeping back previous 1, 2, 7 and 15 as discussed with Julian.

-o-

Hi,

The following patchset contains IPVS fixes for net:
 
1)  Rework connection refcounting so the pending and running timer
    hold a reference. This fixes a use-after-free race between
    connection deletion and a concurrent timer callback, from
    Julian Anastasov.
 
2)  Expire controlled connection chains iteratively instead of
    recursively to avoid kernel stack exhaustion, from Zihan Xi.
 
3)  Reject zero and configured FTP control ports as data ports in
    the FTP helper, from Zihan Xi.
 
4)  Skip conntrack templates in ip_vs_ftp_out() to fix a UAF in the
    expectation list after the CT rule is removed, from Theodor
    Arsenij Larionov Trichkine.
 
5)  Update conn flags, seqs and related fields in the backup server
    under cp->lock, from Julian Anastasov.
 
6)  Read conn flags and seqs atomically in the master when building
    sync messages, from Julian Anastasov.
 
7) Fix a race that can leave a destination in the overload state
   forever. Also make the LBLC/LBLCR schedulers honor the overload
   state for cached destinations, from Julian Anastasov.

8) Validate cport and IP_VS_CONN_F_NO_CPORT in received sync records.
   This rejects templates and connections that incoming lookups
   cannot match, from Axel Mierczuk.
 
9) Skip cport 0 connections in ip_vs_conn_out_get(), using the same
   rule as __ip_vs_conn_in_get(). Also from Axel.
 
10) Do not create connections from packets with client or virtual
    port 0, which could create a duplicate connection for every
    packet, from Julian Anastasov.
 
11) Wait for an RCU grace period before reusing a destination from
    dest_trash, and before restarting its estimator, from Darong Lu.
 
Please, pull these changes from:

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

Thanks.

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

The following changes since commit d1bb235aa409a4e5aeba6c748d953d948625b1e9:

  netfilter: nat: zero newrange before filling it in (2026-11-05 13:31:11 +0100)

are available in the Git repository at:

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

for you to fetch changes up to 5367e14e92bbb0779612d36cce7c6e95d3bc5e68:

  ipvs: wait grace period before reusing destinations (2026-11-16 01:40:31 +0100)

----------------------------------------------------------------
netfilter pull request 26-11-16

----------------------------------------------------------------
Axel Mierczuk (2):
      ipvs: validate cport in received sync records
      ipvs: skip cport 0 connections in ip_vs_conn_out_get()

Darong Lu (1):
      ipvs: wait grace period before reusing destinations

Julian Anastasov (5):
      ipvs: fix problems during connection deletion
      ipvs: update flags and seqs in backup server under lock
      ipvs: read flags and seqs in master atomically
      ipvs: honor the overload state and do not enter it forever
      ipvs: do not create conns from packets with port 0

Theodor Arsenij Larionov Trichkine (1):
      ipvs: ftp: skip conntrack templates in ip_vs_ftp_out

Zihan Xi (2):
      ipvs: avoid stack overflow from recursive connection expiration
      ipvs: reject FTP control ports as data ports

 include/net/ip_vs.h                   |   7 +-
 net/netfilter/ipvs/ip_vs_conn.c       | 131 ++++++++++++++++++-------------
 net/netfilter/ipvs/ip_vs_core.c       |   3 +-
 net/netfilter/ipvs/ip_vs_ctl.c        | 140 +++++++++++++++++++++++++---------
 net/netfilter/ipvs/ip_vs_ftp.c        |  20 ++++-
 net/netfilter/ipvs/ip_vs_lblc.c       |   8 +-
 net/netfilter/ipvs/ip_vs_lblcr.c      |  13 ++--
 net/netfilter/ipvs/ip_vs_proto_sctp.c |   7 ++
 net/netfilter/ipvs/ip_vs_proto_tcp.c  |   7 ++
 net/netfilter/ipvs/ip_vs_proto_udp.c  |   6 ++
 net/netfilter/ipvs/ip_vs_sync.c       |  53 +++++++++++--
 11 files changed, 289 insertions(+), 106 deletions(-)
Technical Details
Message-ID: <20261116004404.2821183-1-pablo@netfilter.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363948-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363948-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net,v2 00/11] IPVS fixes for net
Date: Mon, 16 Nov 2026 01:43:53 +0100
Organization: Usenet Network
Message-ID: <20261116004404.2821183-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1944623"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4XdWFLig226+L82HklvrvIAmSFw= sha256:K0mwC8PmG+zAkzGPFTcaTk0oomP0NblopJ92cbWsEA4=
	sha1:iGP6gGZFXrWZwQ+5rc1C6sqgwsg= sha256:QqRJLo5FdYDf+n2WlAvv1hkLtJImeSlXcGhBnN3hwSM=
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 04847114ACC; Mon, 16 Nov 2026 03:44:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] 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 tSy1q7q8QR3N;
	Mon, 16 Nov 2026 03:44:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-363948-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id CF146114A1F; Mon, 16 Nov 2026 03:44:21 +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 C22CD294FB; Mon, 16 Nov 2026 00:44:17 +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=1794789854;
	b=dn7IsGqDi1XxrFOHJEaRtTecCZ04Xjm9DD8wONNG4ploycW6wgi4DBxqGHINogMQCKPW
	 RtgvsxMnt7/3WcnMu+9hAQWNOkxmZOgdQLWeQlZLHf0tcLtvZmOAcJY8f+0SxLsuOmcjt
	 TaNQXPIsOl0A4ywiE5rscYNTY2yRDOfwzibJVI8+IYia6fdSLRw0+0h2n9IGMlpZ7Xjj/
	 3UYH6b5omPt5AcKrzbc4CrrkfIBglH/m9UV2FQNcaWXfmaj6wyvygOgG7Enb1TQbm5GLU
	 6bS7+16u6k8AIAJ9PwWo8GMNBpz2056mlKEzJFTxIbTckVtMETnll9q3xU2VbTbq1Zw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794789854;
	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=K/2OJ4+lphTlUg2pVXCiDwDlPx39y0pPkGf1hDNxxQA=;
	b=sfsty/Gze31Dup5YVm2b5TgkWy6b9j/E8kyQaK8Vs6q34TOiXf5j44le+QIQTtrf4BLK
	 tCJ/3HiXOGeahd24z+xUCoUGC5zC6fYi0fROcidXzY9z7kMm8/u18ml5b2Y1fAV7FwQdp
	 hCDIdN9oaKrzCqOPnnFFtDbUgCRP/tsBSKGzX4i8fS7JsXvRE+W3V8yztOUZcKw+Bmdb2
	 m08UOXtLlXKCiksPmcZ1k7aqid1ZPjDy/xqa8UaibmPPaJqcDpljwWOPIY71rlPU0ak5E
	 kICbZNLjLHOlTCVejmWAOF8UR9nl+wBsfYTrw9O55t9E2uN2ZTvo2/b3r3Xz63QdCJw==
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="Uk2D/Njp";
	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 D4F11606A886;
	Mon, 16 Nov 2026 00:44:14 +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=Uk2D/Njp
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=1794789854;
	b=mpqx0GY1gaiQjClPWDAIUABXZznjk49V5mJ2P1wyD+dkj5NuNZGt87osqt02e+GzIeje
	 0Fc8fD5XgnhIaPusJm5rVv1kvCD+i/RMhOcqckcj941n2liufJZPgRmOmEvw6BNKhHbuL
	 TAGaijLHD05uFzeZGkJbvsL3UmhORVmHwM56FGodLInMzQ00MXwbXARfD/g7Fj0pE4nrt
	 J03jj5lU1hRzaQ5ZJRBFasvBNNzw+6wyZRitgnAmT4N4LSiMedGnDrNWENTCXbTrOwaXk
	 CDthRSfD8vqlajAcNTLKdk9idOXf1/Nm8GPLiVgFro9jxbin+NEKnbmiuU4drHV785g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794789854;
	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=K/2OJ4+lphTlUg2pVXCiDwDlPx39y0pPkGf1hDNxxQA=;
	b=Nuua5SvhCCNzUN74WJx909/pMuZkqbFx8nCH0Jy36z1Y7gU2cLf2lPEnJV/UfGrKP8Gp
	 /+jp3FWphVUIjrzzxW88JqSeiXIx6B617QCj60T8ghldZa76RN461xsndxVbGS04VlGP7
	 JZmvFD6RaBzj5Ne5mpOkon0/6lw+YKUGPpk8eOyrptDa+voq2Q1LbBEy487VAdzkZ5bBg
	 S2zyg8bJ55up0HffEZcthp/iUKf+N7vT6SJW8iGbBcIF7RAAwWNWn0JxW29aTDkdgVkMK
	 LERxaz5Lyg/I8gFcuAUAdUCoD7J39sUYybRAxtYJJRaSdl2slz3ZkYSuAfmiVCyZZNw==
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="Uk2D/Njp";
	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))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89882606A323;
	Mon, 16 Nov 2026 00:44:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 89882606A323
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=1794789851;
	bh=K/2OJ4+lphTlUg2pVXCiDwDlPx39y0pPkGf1hDNxxQA=;
	h=From:To:Cc:Subject:Date:From;
	b=Uk2D/NjpJsEMkQtnReUkrIqddmgqNvSR3Bma+2p2GXCFxwrUtuQgLnFW/9aMDM++D
	 57bdxYWz6pA1u1xsyJ1p+N9rKyI0EuD5DvuUtbpV4wIGJcGLjFG2mDwwh0LGVcMQDq
	 nVft+snHD2uiT0fWFvaJOPZqsbddovm53Obq99juvIOXlLf5QKR+WrKB4WAzEAm7+y
	 KHrWYOvm7q3um8jmUfEkyqG/My5cvvxCQMbhYkuldtIWkGSR1HJzk2IqfWW/g6lQiB
	 t8zo63SJWZ35a7VM5U5cSqdIkLuUFkYBbA74UeMYBEqZqBqoa7uYtvg5oKSH++fsAB
	 7AaxFNTtuKgzw==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id A8E616005B;
	Mon, 16 Nov 2026 01:44:10 +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