Netdev List
 help / color / mirror / Atom feed
* [PATCH net,v2 00/11] IPVS fixes for net
@ 2026-11-16  0:43 Pablo Neira Ayuso
  2026-11-16  0:43 ` [PATCH net 01/11] ipvs: fix problems during connection deletion Pablo Neira Ayuso
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Pablo Neira Ayuso @ 2026-11-16  0:43 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, horms, fw, ja

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(-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-16  0:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  0:43 [PATCH net,v2 00/11] IPVS fixes for net Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 01/11] ipvs: fix problems during connection deletion Pablo Neira Ayuso
2026-11-16  0:47   ` netdev-bot+sinfo
2026-11-16  0:48     ` Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 02/11] ipvs: avoid stack overflow from recursive connection expiration Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 03/11] ipvs: reject FTP control ports as data ports Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 04/11] ipvs: ftp: skip conntrack templates in ip_vs_ftp_out Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 05/11] ipvs: update flags and seqs in backup server under lock Pablo Neira Ayuso
2026-11-16  0:43 ` [PATCH net 06/11] ipvs: read flags and seqs in master atomically Pablo Neira Ayuso
2026-11-16  0:44 ` [PATCH net 07/11] ipvs: honor the overload state and do not enter it forever Pablo Neira Ayuso
2026-11-16  0:44 ` [PATCH net 08/11] ipvs: validate cport in received sync records Pablo Neira Ayuso
2026-11-16  0:44 ` [PATCH net 09/11] ipvs: skip cport 0 connections in ip_vs_conn_out_get() Pablo Neira Ayuso
2026-11-16  0:44 ` [PATCH net 10/11] ipvs: do not create conns from packets with port 0 Pablo Neira Ayuso
2026-11-16  0:44 ` [PATCH net 11/11] ipvs: wait grace period before reusing destinations Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox