All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next,v2 00/15] Netfilter updates for net-next
@ 2026-11-23 13:57 Pablo Neira Ayuso
  2026-11-23 13:57 ` [PATCH net-next 01/15] netfilter: conntrack: prevent nf_conntrack_buckets race condition Pablo Neira Ayuso
                   ` (15 more replies)
  0 siblings, 16 replies; 42+ messages in thread
From: Pablo Neira Ayuso @ 2026-11-23 13:57 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, horms, fw, ja

v2: address cover letter errata.

-o-

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.

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

^ permalink raw reply	[flat|nested] 42+ messages in thread
* [PATCH net-next 00/15] Netfilter updates for net-next
@ 2026-11-23 13:54 Pablo Neira Ayuso
  2026-11-23 13:54 ` [PATCH net-next 01/15] netfilter: conntrack: prevent nf_conntrack_buckets race condition Pablo Neira Ayuso
  0 siblings, 1 reply; 42+ messages in thread
From: Pablo Neira Ayuso @ 2026-11-23 13:54 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, horms, fw, ja

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

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

end of thread, other threads:[~2026-11-26 13:36 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 13:57 [PATCH net-next,v2 00/15] Netfilter updates for net-next Pablo Neira Ayuso
2026-11-23 13:57 ` [PATCH net-next 01/15] netfilter: conntrack: prevent nf_conntrack_buckets race condition Pablo Neira Ayuso
2026-11-23 14:02   ` netdev-bot+sinfo
2026-11-23 14:17     ` Pablo Neira Ayuso
2026-11-23 13:57 ` [PATCH net-next 02/15] netfilter: conntrack: validate skb->_nfct and packet headers Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 03/15] netfilter: conntrack: refactor helper call logic in nf_confirm() Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 04/15] netfilter: conntrack: verify L4 protocol before calling helper Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 05/15] netfilter: conntrack: replace open-coded helper invocation Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 06/15] netfilter: conntrack: harden helper invocation with tuple revalidation Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 07/15] netfilter: nft_ct: validate timeout object protocol Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 08/15] netfilter: nft_synproxy: only handle pure SYN and ACK packets Pablo Neira Ayuso
2026-11-23 13:57 ` [PATCH net-next 09/15] netfilter: nft_ct: validate hook and priority for ct zone set Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 10/15] rhashtable: Add rhashtable_flush_and_free helper Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 11/15] netfilter: ipset: add rhashtable boilerplate stubs Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 12/15] netfilter: ipset: replace internal hash table with rhashtable Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 13/15] netfilter: ipset: also report mem size for cidr storage to userspace Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 14/15] netfilter: ipset: re-add IP_SET_HASH_WITH_MULTI support Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-23 13:57 ` [PATCH net-next 15/15] netfilter: ipset: re-add forceadd support Pablo Neira Ayuso
2026-11-24 14:39   ` netdev-bot+sashiko
2026-11-24 12:27 ` [PATCH net-next,v2 00/15] Netfilter updates for net-next Paolo Abeni
2026-11-24 12:36   ` Florian Westphal
2026-11-24 13:47     ` Paolo Abeni
2026-11-24 16:04       ` Florian Westphal
2026-11-24 13:33   ` Pablo Neira Ayuso
2026-11-24 13:43     ` Paolo Abeni
2026-11-26 10:46       ` Pablo Neira Ayuso
2026-11-26 10:58         ` Florian Westphal
2026-11-26 11:10           ` Pablo Neira Ayuso
2026-11-26 13:36         ` Paolo Abeni
  -- strict thread matches above, loose matches on Subject: below --
2026-11-23 13:54 [PATCH net-next " Pablo Neira Ayuso
2026-11-23 13:54 ` [PATCH net-next 01/15] netfilter: conntrack: prevent nf_conntrack_buckets race condition Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.