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 Latest7 patches 2 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7netfilter: bridge: Move specific fragmented packet to slow_path instead of dropping itnet/bridge/netfilter/nf_conntrack_bridge.c net/ipv6/netfilter.c+12 -120 repliesApplied
2/7selftests: netfilter: add conntrack stress testtools/testing/selftests/net/netfilter/Makefile tools/testing/selftests/net/netfilter/config tools/testing/selftests/net/netfilter/conntrack_resize.sh+408 -02 repliesApplied
3/7netfilter: nft_quota: match correctly when the quota just depletednet/netfilter/nft_quota.c+13 -70 repliesApplied
4/7netfilter: nf_conntrack: speed up reads from nf_conntrack proc filenet/netfilter/nf_conntrack_standalone.c+53 -350 repliesApplied
5/7netfilter: nft_set_pipapo: prevent overflow in lookup table allocationnet/netfilter/nft_set_pipapo.c+44 -140 repliesApplied
6/7netfilter: nft_set_pipapo: clamp maximum map bucket size to INT_MAXnet/netfilter/nft_set_pipapo.c+6 -00 repliesApplied
7/7selftests: netfilter: nft_fib.sh: check lo packets bypass fib lookuptools/testing/selftests/net/netfilter/nft_fib.sh+23 -00 repliesApplied

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalStefano Brivio
1/7R-b
2/7
3/7
4/7
5/7R-b
6/7R-b
7/7

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 nf-next 0/7] Netfilter updates for net-next

Hi,

The following patchset contains Netfilter updates for net-next:

1) Apparently, nf_conntrack_bridge changes the way in which fragments are handled, dealing to packet drop. From Huajian Yang.

2) Add a selftest to stress the conntrack subsystem, from Florian Westphal.

3) nft_quota depletion is off-by-one byte, Zhongqiu Duan.

4) Rewrites the procfs to read the conntrack table to speed it up, from Florian Westphal.

5) Two patches to prevent overflow in nft_pipapo lookup table and to clamp the maximum bucket size.

6) Update nft_fib selftest to check for loopback packet bypass. From Florian Westphal.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-25-05-06

Thanks.

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

The following changes since commit 836b313a14a316290886dcc2ce7e78bf5ecc8658:

ipv4: Honor "ignore_routes_with_linkdown" sysctl in nexthop selection (2025-05-03 21:52:38 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-25-05-06

for you to fetch changes up to fc91d5e6d948733773af35ef3b95504d8e588e4f:

selftests: netfilter: nft_fib.sh: check lo packets bypass fib lookup (2025-05-05 13:17:32 +0200)

----------------------------------------------------------------
netfilter pull request 25-05-06

----------------------------------------------------------------
Florian Westphal (3):
selftests: netfilter: add conntrack stress test
netfilter: nf_conntrack: speed up reads from nf_conntrack proc file
selftests: netfilter: nft_fib.sh: check lo packets bypass fib lookup

Huajian Yang (1):
netfilter: bridge: Move specific fragmented packet to slow_path instead of dropping it

Pablo Neira Ayuso (2):
netfilter: nft_set_pipapo: prevent overflow in lookup table allocation
netfilter: nft_set_pipapo: clamp maximum map bucket size to INT_MAX

Zhongqiu Duan (1):
netfilter: nft_quota: match correctly when the quota just depleted

 net/bridge/netfilter/nf_conntrack_bridge.c         |  12 +-
 net/ipv6/netfilter.c                               |  12 +-
 net/netfilter/nf_conntrack_standalone.c            |  88 +++--
 net/netfilter/nft_quota.c                          |  20 +-
 net/netfilter/nft_set_pipapo.c                     |  64 +++-
 tools/testing/selftests/net/netfilter/Makefile     |   1 +
 tools/testing/selftests/net/netfilter/config       |   1 +
 .../selftests/net/netfilter/conntrack_resize.sh    | 406 +++++++++++++++++++++
 tools/testing/selftests/net/netfilter/nft_fib.sh   |  23 ++
 9 files changed, 559 insertions(+), 68 deletions(-)
 create mode 100755 tools/testing/selftests/net/netfilter/conntrack_resize.sh