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 Latest17 patches 5 repliesApplied 17/17

Patches in v1 All 17 applied

#Subject and filesSizeRepliesApplied
1/17netfilter: nf_tables: skip transaction if update object is not implementednet/netfilter/nf_tables_api.c+6 -20 repliesApplied
2/17netfilter: nf_tables: remove NETDEV_CHANGENAME from netdev chain event handlernet/netfilter/nft_chain_filter.c+1 -50 repliesApplied
3/17netfilter: conntrack: fix ct-state for ICMPv6 Multicast Router Discoveryinclude/uapi/linux/icmpv6.h net/netfilter/nf_conntrack_proto_icmpv6.c+4 -10 repliesApplied
4/17netfilter: conntrack: dccp: try not to drop skb in conntracknet/netfilter/nf_conntrack_proto_dccp.c+2 -20 repliesApplied
5/17netfilter: use NF_DROP instead of -NF_DROPnet/ipv4/netfilter/iptable_filter.c net/ipv6/netfilter/ip6table_filter.c net/netfilter/nf_conntrack_core.c+3 -30 repliesApplied
6/17netfilter: conntrack: documentation: remove reference to non-existent sysctlDocumentation/networking/nf_conntrack-sysctl.rst+2 -20 repliesApplied
7/17netfilter: conntrack: remove flowtable early-drop testnet/netfilter/nf_conntrack_core.c+0 -20 repliesApplied
8/17netfilter: nft_set_pipapo: move prove_locking helper aroundnet/netfilter/nft_set_pipapo.c+11 -110 repliesApplied
9/17netfilter: nft_set_pipapo: make pipapo_clone helper return NULLnet/netfilter/nft_set_pipapo.c+7 -70 repliesApplied
10/17netfilter: nft_set_pipapo: prepare destroy function for on-demand clonenet/netfilter/nft_set_pipapo.c+6 -210 repliesApplied
11/17netfilter: nft_set_pipapo: prepare walk function for on-demand clonenet/netfilter/nft_set_pipapo.c+39 -210 repliesApplied
12/17netfilter: nft_set_pipapo: merge deactivate helper into callernet/netfilter/nft_set_pipapo.c+9 -300 repliesApplied
13/17netfilter: nft_set_pipapo: prepare pipapo_get helper for on-demand clonenet/netfilter/nft_set_pipapo.c+10 -70 repliesApplied
14/17netfilter: nft_set_pipapo: move cloning of match info to insert/removal pathnet/netfilter/nft_set_pipapo.c+49 -210 repliesApplied
15/17netfilter: nft_set_pipapo: remove dirty flagnet/netfilter/nft_set_pipapo.c net/netfilter/nft_set_pipapo.h+0 -270 repliesApplied
16/17selftests: netfilter: add packetdrill based conntrack teststools/testing/selftests/net/netfilter/Makefile tools/testing/selftests/net/netfilter/config tools/testing/selftests/net/netfilter/nf_conntrack_packetdrill.sh +7 more+475 -05 repliesApplied
17/17netfilter: nf_tables: allow clone callbacks to sleepinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_connlimit.c +5 more+23 -210 repliesApplied

Reviews trailers per patch

8 of 17 patches have a Reviewed-by or Acked-by.

PatchStefano Brivio
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17
17/17

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

Hi,

The following patchset contains Netfilter updates for net-next:

Patch #1 skips transaction if object type provides no .update interface.

Patch #2 skips NETDEV_CHANGENAME which is unused.

Patch #3 enables conntrack to handle Multicast Router Advertisements and
Multicast Router Solicitations from the Multicast Router Discovery protocol (RFC4286) as untracked opposed to invalid packets. From Linus Luessing.

Patch #4 updates DCCP conntracker to mark invalid as invalid, instead of
dropping them, from Jason Xing.

Patch #5 uses NF_DROP instead of -NF_DROP since NF_DROP is 0, also from Jason.

Patch #6 removes reference in netfilter's sysctl documentation on pickup
entries which were already removed by Florian Westphal.

Patch #7 removes check for IPS_OFFLOAD flag to disable early drop which allows
to evict entries from the conntrack table, also from Florian.

Patches #8 to #16 updates nf_tables pipapo set backend to allocate the
datastructure copy on-demand from preparation phase, to better deal with OOM situations where .commit step is too late to fail. Series from Florian Westphal.

Patch #17 adds a selftest with packetdrill to cover conntrack TCP state
transitions, also from Florian.

Patch #18 use GFP_KERNEL to clone elements from control plane to avoid
quick atomic reserves exhaustion with large sets, reporter refers to million entries magnitude.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-24-05-12

Thanks.

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

The following changes since commit cdc74c9d06e72addde01092d09f13bb86d3ed7d0:

Merge branch 'gve-queue-api' (2024-05-05 14:35:48 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-24-05-12

for you to fetch changes up to fa23e0d4b756d25829e124d6b670a4c6bbd4bf7e:

netfilter: nf_tables: allow clone callbacks to sleep (2024-05-10 11:13:45 +0200)

----------------------------------------------------------------
netfilter pull request 24-05-12

----------------------------------------------------------------
Florian Westphal (12):
netfilter: conntrack: documentation: remove reference to non-existent sysctl
netfilter: conntrack: remove flowtable early-drop test
netfilter: nft_set_pipapo: move prove_locking helper around
netfilter: nft_set_pipapo: make pipapo_clone helper return NULL
netfilter: nft_set_pipapo: prepare destroy function for on-demand clone
netfilter: nft_set_pipapo: prepare walk function for on-demand clone
netfilter: nft_set_pipapo: merge deactivate helper into caller
netfilter: nft_set_pipapo: prepare pipapo_get helper for on-demand clone
netfilter: nft_set_pipapo: move cloning of match info to insert/removal path
netfilter: nft_set_pipapo: remove dirty flag
selftests: netfilter: add packetdrill based conntrack tests
netfilter: nf_tables: allow clone callbacks to sleep

Jason Xing (2):
netfilter: conntrack: dccp: try not to drop skb in conntrack
netfilter: use NF_DROP instead of -NF_DROP

Linus Lüssing (1):
netfilter: conntrack: fix ct-state for ICMPv6 Multicast Router Discovery

Pablo Neira Ayuso (2):
netfilter: nf_tables: skip transaction if update object is not implemented
netfilter: nf_tables: remove NETDEV_CHANGENAME from netdev chain event handler

 Documentation/networking/nf_conntrack-sysctl.rst   |   4 +-
 include/net/netfilter/nf_tables.h                  |   4 +-
 include/uapi/linux/icmpv6.h                        |   1 +
 net/ipv4/netfilter/iptable_filter.c                |   2 +-
 net/ipv6/netfilter/ip6table_filter.c               |   2 +-
 net/netfilter/nf_conntrack_core.c                  |   4 +-
 net/netfilter/nf_conntrack_proto_dccp.c            |   4 +-
 net/netfilter/nf_conntrack_proto_icmpv6.c          |   4 +-
 net/netfilter/nf_tables_api.c                      |  16 +-
 net/netfilter/nft_chain_filter.c                   |   6 +-
 net/netfilter/nft_connlimit.c                      |   4 +-
 net/netfilter/nft_counter.c                        |   4 +-
 net/netfilter/nft_dynset.c                         |   2 +-
 net/netfilter/nft_last.c                           |   4 +-
 net/netfilter/nft_limit.c                          |  14 +-
 net/netfilter/nft_quota.c                          |   4 +-
 net/netfilter/nft_set_pipapo.c                     | 258 ++++++++++-----------
 net/netfilter/nft_set_pipapo.h                     |   2 -
 tools/testing/selftests/net/netfilter/Makefile     |   2 +
 tools/testing/selftests/net/netfilter/config       |   1 +
 .../net/netfilter/nf_conntrack_packetdrill.sh      |  71 ++++++
 .../selftests/net/netfilter/packetdrill/common.sh  |  33 +++
 .../packetdrill/conntrack_ack_loss_stall.pkt       | 118 ++++++++++
 .../packetdrill/conntrack_inexact_rst.pkt          |  62 +++++
 .../packetdrill/conntrack_rst_invalid.pkt          |  59 +++++
 .../packetdrill/conntrack_syn_challenge_ack.pkt    |  44 ++++
 .../netfilter/packetdrill/conntrack_synack_old.pkt |  51 ++++
 .../packetdrill/conntrack_synack_reuse.pkt         |  34 +++
 28 files changed, 639 insertions(+), 175 deletions(-)
 create mode 100755 tools/testing/selftests/net/netfilter/nf_conntrack_packetdrill.sh
 create mode 100755 tools/testing/selftests/net/netfilter/packetdrill/common.sh
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_ack_loss_stall.pkt
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_inexact_rst.pkt
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_rst_invalid.pkt
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_syn_challenge_ack.pkt
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_synack_old.pkt
 create mode 100644 tools/testing/selftests/net/netfilter/packetdrill/conntrack_synack_reuse.pkt