Skip to content

netfilter: updates for net-next

Florian Westphal 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 Latest12 patches 2 repliesApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12netfilter: nfnetlink_hook: Dump nat type chainsinclude/linux/netfilter.h net/netfilter/nf_nat_core.c net/netfilter/nf_nat_proto.c +1 more+48 -100 repliesApplied
2/12netfilter: x_tables: replace strlcat() with snprintf()net/netfilter/x_tables.c+11 -190 repliesApplied
3/12netfilter: replace u_int8_t and u_int16t with u8 and u16include/net/ip_vs.h net/netfilter/ipvs/ip_vs_nfct.c net/netfilter/nf_conntrack_amanda.c +2 more+8 -80 repliesApplied
4/12netfilter: avoid strcpy usagenet/netfilter/nfnetlink_cttimeout.c net/netfilter/xt_recent.c+2 -20 repliesApplied
5/12netfilter: remove redundant null check before kvfree()net/netfilter/nft_set_rbtree.c+1 -20 repliesApplied
6/12netfilter: xt_tcpmss: add checkentry for parameter validationnet/netfilter/xt_tcpmss.c+13 -00 repliesApplied
7/12netfilter: xt_dscp: add checkentry for tos matchnet/netfilter/xt_dscp.c+12 -00 repliesApplied
8/12netfilter: nf_conntrack_helper: do not hash by tuplenet/netfilter/nf_conntrack_helper.c+31 -360 repliesApplied
9/12netfilter: conntrack: get rid of tuple in helper definitionsinclude/net/netfilter/nf_conntrack_helper.h net/netfilter/nf_conntrack_broadcast.c net/netfilter/nf_conntrack_helper.c +3 more+29 -350 repliesApplied
10/12netfilter: conntrack: remove obsolete module parametersinclude/linux/netfilter/nf_conntrack_h323.h include/linux/netfilter/nf_conntrack_pptp.h include/linux/netfilter/nf_conntrack_sane.h +14 more+59 -1510 repliesApplied
11/12netfilter: ebtables: bound num_counters like nentries in do_replace()net/bridge/netfilter/ebtables.c+6 -60 repliesApplied
12/12netfilter: nft_ct: support expectation creation for natted flowsnet/netfilter/nft_ct.c+35 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/12] netfilter: updates for net-next

Hi,

The following patchset contains Netfilter updates for *net-next*.

1) Update nfnetlink_hook to dump the individual NAT type chains instead of the nat base chains to userspace. From Phil Sutter.

2) Replace strlcpy/strlcat() with snprintf() in x_tables, from Ian Bridges.

3) Start replacing u_int8_t and u_int16t with u8 and u16 in netfilter. From Carlos Grillet.

4) Replace strcpy() with strscpy() in netfilter, from David Laight.

5) Remove redundant NULL check before kvfree().

6) Add parameter validation to xt_tcpmss. Ensure mss_min <= mss_max and invert <= 1. From Feng Wu.

7) Add checkentry for xt_dscp 'tos' match. Implement tos_mt_check() to reject invalid invert values. Also from Feng Wu.

8) Stop hashing nf_conntrack_helper by tuple. Switch to hashing by name and L4 protocol.

9) Remove tuples from conntrack helper definitions and port usage from broadcast helpers. Add netlink policy validation to prevent protocol number truncation.

10) Remove obsolete netfilter conntrack module parameters.

11) Bound num_counters in ebtables: do_replace() by MAX_EBT_ENTRIES to prevent oversized vmalloc_array() allocations. From Jiayuan Chen.

12) Make expectations created via nft_ct rules work with NAT.

Please, pull these changes from:
The following changes since commit b8ea7da314c2efcb9c2f559ed65b7a36c869d68e:

net: dsa: qca8k: fall back to ethernet-ports node name for LEDs (2026-07-02 11:48:25 +0200)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-26-07-02

for you to fetch changes up to d4beefc90a66672e43fdf82b43e4b3c0b1b18c5e:

netfilter: nft_ct: support expectation creation for natted flows (2026-07-02 12:17:14 +0200)

----------------------------------------------------------------
netfilter pull request nf-next-26-07-02
----------------------------------------------------------------

Carlos Grillet (1):
netfilter: replace u_int8_t and u_int16t with u8 and u16

David Laight (1):
netfilter: avoid strcpy usage

Feng Wu (2):
netfilter: xt_tcpmss: add checkentry for parameter validation
netfilter: xt_dscp: add checkentry for tos match

Florian Westphal (4):
netfilter: nf_conntrack_helper: do not hash by tuple
netfilter: conntrack: get rid of tuple in helper definitions
netfilter: conntrack: remove obsolete module parameters
netfilter: nft_ct: support expectation creation for natted flows

Ian Bridges (1):
netfilter: x_tables: replace strlcat() with snprintf()

Jiayuan Chen (1):
netfilter: ebtables: bound num_counters like nentries in do_replace()

Phil Sutter (1):
netfilter: nfnetlink_hook: Dump nat type chains

Subasri S (1):
netfilter: remove redundant null check before kvfree()

 include/linux/netfilter.h                   |  7 ++
 include/linux/netfilter/nf_conntrack_h323.h |  2 -
 include/linux/netfilter/nf_conntrack_pptp.h |  2 -
 include/linux/netfilter/nf_conntrack_sane.h |  2 -
 include/linux/netfilter/nf_conntrack_tftp.h |  2 -
 include/net/ip_vs.h                         |  2 +-
 include/net/netfilter/nf_conntrack_helper.h | 10 ++-
 net/bridge/netfilter/ebtables.c             | 12 ++--
 net/ipv4/netfilter/nf_nat_snmp_basic_main.c |  2 +-
 net/netfilter/ipvs/ip_vs_nfct.c             |  2 +-
 net/netfilter/nf_conntrack_amanda.c         |  6 +-
 net/netfilter/nf_conntrack_broadcast.c      |  2 -
 net/netfilter/nf_conntrack_ftp.c            | 32 +++------
 net/netfilter/nf_conntrack_h323_main.c      | 12 ++--
 net/netfilter/nf_conntrack_helper.c         | 77 +++++++++------------
 net/netfilter/nf_conntrack_irc.c            | 27 +++-----
 net/netfilter/nf_conntrack_netbios_ns.c     |  2 -
 net/netfilter/nf_conntrack_ovs.c            |  6 +-
 net/netfilter/nf_conntrack_pptp.c           |  2 +-
 net/netfilter/nf_conntrack_sane.c           | 34 +++------
 net/netfilter/nf_conntrack_sip.c            | 45 ++++--------
 net/netfilter/nf_conntrack_snmp.c           |  4 +-
 net/netfilter/nf_conntrack_tftp.c           | 33 +++------
 net/netfilter/nf_nat_core.c                 |  6 --
 net/netfilter/nf_nat_proto.c                |  8 +++
 net/netfilter/nfnetlink_cthelper.c          | 21 +++---
 net/netfilter/nfnetlink_cttimeout.c         |  2 +-
 net/netfilter/nfnetlink_hook.c              | 37 ++++++++--
 net/netfilter/nft_ct.c                      | 35 ++++++++++
 net/netfilter/nft_set_rbtree.c              |  3 +-
 net/netfilter/x_tables.c                    | 30 +++-----
 net/netfilter/xt_TCPOPTSTRIP.c              |  8 +--
 net/netfilter/xt_dscp.c                     | 12 ++++
 net/netfilter/xt_recent.c                   |  2 +-
 net/netfilter/xt_tcpmss.c                   | 13 ++++
 net/sched/act_ct.c                          |  4 +-
 36 files changed, 246 insertions(+), 260 deletions(-)
Signature · 1 line
2.54.0