Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 4 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11netfilter: synproxy: fix reset of ct seqadj when reopening a connectioninclude/net/netfilter/nf_conntrack_seqadj.h net/netfilter/nf_conntrack_seqadj.c net/netfilter/nf_synproxy_core.c+20 -24 repliesApplied
2/11netfilter: conntrack: fix nf_conntrack_expect_max default value in documentationDocumentation/networking/nf_conntrack-sysctl.rst+1 -10 repliesApplied
3/11netfilter: osf: remove unreachable break in nf_osf_ttl()net/netfilter/nfnetlink_osf.c+0 -10 repliesApplied
4/11netfilter: fix several typos in commentsnet/ipv4/netfilter/arp_tables.c net/netfilter/ipset/ip_set_core.c net/netfilter/ipvs/ip_vs_sync.c +1 more+4 -40 repliesApplied
5/11netfilter: conntrack: Untangle insert_failed counter from othersnet/netfilter/nf_conntrack_core.c+0 -20 repliesApplied
6/11netfilter: conntrack: Untangle drop and invalid countersnet/netfilter/nf_conntrack_core.c+2 -10 repliesApplied
7/11net/sched: act_ct: set net pointer before publishing flowtablenet/sched/act_ct.c+1 -10 repliesApplied
8/11netfilter: flowtable: check namespace before iterating flowsnet/netfilter/nf_flow_table_core.c+7 -100 repliesApplied
9/11netfilter: nfnetlink: Fix for interrupted hook dumpsinclude/net/netns/netfilter.h net/netfilter/core.c net/netfilter/nf_nat_core.c +1 more+73 -320 repliesApplied
10/11netfilter: ctnetlink: fix inverted IPv6 address match in dump filternet/netfilter/nf_conntrack_netlink.c+4 -40 repliesApplied
11/11netfilter: conntrack: make filtering by zone discoverableDocumentation/netlink/specs/conntrack.yaml include/uapi/linux/netfilter/nfnetlink_conntrack.h net/netfilter/nf_conntrack_netlink.c +1 more+117 -460 repliesApplied

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchXuanqiang Luo
1/11
2/11
3/11
4/11
5/11
6/11
7/11R-b
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 00/11] Netfilter updates for net-next

Hi,

The following patchset contains Netfilter updates for net-next. The fixes included in this batch are deemed to handle correctness issues present in the Netfilter tree:

1) TCP sequence tracking is not reset inconditionally by synproxy when recycling an entry, sashiko reports the zero offset case skips it. Add a new function to inconditionally reset TCP sequence tracking. From Fernando F. Mancera.

2) Update documentation to reflect that the default maximum number of expectations (nf_conntrack_expect_max) is nf_conntrack_buckets / 64. From Shaojie Sun.

3) Remove useless break; after return in nft_osf, from Linkui Xiao.

4) Fix typos in comments in the netfilter tree, from Hemanth Selam.

5) Remove a few conntrack error stats duplicated updates, from Phil Sutter.

6) Do not bump invalid and drop conntrack error stats when packet is dropped, this is another duplicate. also From Phil.

7) Set on netns pointer before registering the flowtable, this is a requirement by the next patch, not fixing an existing issue. From Qingfang Deng.

8) Remove unnecessary workqueue work flush for all of the existing netns when device is gone. Also from Qingfang Deng.

9) Rework-fix nfnetlink_hook to correctly deal with large netlink dumps. Use sequence numbers to detect interference with hook updates while netlink dump is ongoing. From Phil Sutter.

10) Fix ctnetlink dump filtering by the IPv6 address, this has only work correctly for IPv4 this far, from Piotr Kubik.

11) ctnetlink filtering by zone is supported, but the ctnetlink dump filtering infrastructure was never updated to include a flag from userspace, update it to fill this gap. From Ilya Maximets.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-26-09-28

Thanks.

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

The following changes since commit 014d795c73837ea2339a4ea8e8f82c6e959b845d:

idpf: fix kernel-doc parameter descriptions (2026-09-25 18:26:50 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-26-09-28

for you to fetch changes up to 46da6029bf468ce3c426cb8b4abf96976ed9d4c8:

netfilter: conntrack: make filtering by zone discoverable (2026-09-27 23:39:21 +0200)

----------------------------------------------------------------
netfilter pull request 26-09-28

----------------------------------------------------------------
Fernando Fernandez Mancera (1):
netfilter: synproxy: fix reset of ct seqadj when reopening a connection

Hemanth Selam (1):
netfilter: fix several typos in comments

Ilya Maximets (1):
netfilter: conntrack: make filtering by zone discoverable

Linkui Xiao (1):
netfilter: osf: remove unreachable break in nf_osf_ttl()

Phil Sutter (3):
netfilter: conntrack: Untangle insert_failed counter from others
netfilter: conntrack: Untangle drop and invalid counters
netfilter: nfnetlink: Fix for interrupted hook dumps

Piotr Kubik (1):
netfilter: ctnetlink: fix inverted IPv6 address match in dump filter

Qingfang Deng (2):
net/sched: act_ct: set net pointer before publishing flowtable
netfilter: flowtable: check namespace before iterating flows

Shaojie Sun (1):
netfilter: conntrack: fix nf_conntrack_expect_max default value in documentation

 Documentation/netlink/specs/conntrack.yaml         |   6 +
 Documentation/networking/nf_conntrack-sysctl.rst   |   2 +-
 include/net/netfilter/nf_conntrack_seqadj.h        |   1 +
 include/net/netns/netfilter.h                      |   2 +
 include/uapi/linux/netfilter/nfnetlink_conntrack.h |   1 +
 net/ipv4/netfilter/arp_tables.c                    |   2 +-
 net/netfilter/core.c                               |  18 ++-
 net/netfilter/ipset/ip_set_core.c                  |   2 +-
 net/netfilter/ipvs/ip_vs_sync.c                    |   2 +-
 net/netfilter/nf_conntrack_core.c                  |   5 +-
 net/netfilter/nf_conntrack_netlink.c               |  19 ++-
 net/netfilter/nf_conntrack_seqadj.c                |  17 +++
 net/netfilter/nf_flow_table_core.c                 |  17 +--
 net/netfilter/nf_nat_core.c                        |  11 ++
 net/netfilter/nf_synproxy_core.c                   |   4 +-
 net/netfilter/nfnetlink_hook.c                     |  74 ++++++-----
 net/netfilter/nfnetlink_osf.c                      |   1 -
 net/sched/act_ct.c                                 |   2 +-
 .../selftests/net/netfilter/conntrack_dump_flush.c | 145 ++++++++++++++-------
 .../net/netfilter/conntrack_icmp_related.sh        |   2 +-
 20 files changed, 229 insertions(+), 104 deletions(-)