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 5 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11netfilter: Make legacy configs user selectablenet/bridge/netfilter/Kconfig net/ipv4/netfilter/Kconfig net/ipv6/netfilter/Kconfig+29 -40 repliesApplied
2/11netfilter: nf_tables: Fix percpu address space issues in nf_tables_api.cnet/netfilter/nf_tables_api.c+8 -80 repliesApplied
3/11netfilter: nf_tables: replace deprecated strncpy with strscpy_padnet/bridge/netfilter/nft_meta_bridge.c+1 -10 repliesApplied
4/11netfilter: nf_tables: prefer nft_trans_elem_alloc helpernet/netfilter/nf_tables_api.c+2 -40 repliesApplied
5/11netfilter: nf_tables: avoid false-positive lockdep splat on rule deletionnet/netfilter/nf_tables_api.c+13 -100 repliesApplied
6/11netfilter: nf_tables: avoid false-positive lockdep splats with setsnet/netfilter/nf_tables_api.c+16 -110 repliesApplied
7/11netfilter: nf_tables: avoid false-positive lockdep splats with flowtablesinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_flow_offload.c+13 -90 repliesApplied
8/11netfilter: nf_tables: avoid false-positive lockdep splats in set walkernet/netfilter/nft_set_bitmap.c net/netfilter/nft_set_hash.c+8 -50 repliesApplied
9/11netfilter: nf_tables: avoid false-positive lockdep splats with basechain hooknet/netfilter/nf_tables_api.c+5 -30 repliesApplied
10/11netfilter: nf_tables: must hold rcu read lock while iterating expression type listnet/netfilter/nf_tables_api.c+18 -60 repliesApplied
11/11netfilter: nf_tables: must hold rcu read lock while iterating object type listnet/netfilter/nf_tables_api.c+6 -70 repliesApplied

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchSimon HormanMatthieu Baerts
1/11
2/11R-b
3/11R-b
4/11
5/11T-b
6/11
7/11
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 series contains Netfilter updates for net-next:

1) Make legacy xtables configs user selectable, from Breno Leitao.

2) Fix a few sparse warnings related to percpu, from Uros Bizjak.

3) Use strscpy_pad, from Justin Stitt.

4) Use nft_trans_elem_alloc() in catchall flush, from Florian Westphal.

5) A series of 7 patches to fix false positive with CONFIG_RCU_LIST=y. Florian also sees possible issue with 10 while module load/removal when requesting an expression that is available via module. As for patch 11, object is being updated so reference on the module already exists so I don't see any real issue.

Florian says:

"Unfortunately there are many more errors, and not all are false positives.

First patches pass lockdep_commit_lock_is_held() to the rcu list traversal macro so that those splats are avoided.

The last two patches are real code change as opposed to 'pass the transaction mutex to relax rcu check':

Those two lists are not protected by transaction mutex so could be altered in parallel.

This targets nf-next because these are long-standing issues."

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-24-11-07

Thanks.

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

The following changes since commit f66ebf37d69cc700ca884c6a18c2258caf8b151b:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2024-10-03 10:05:55 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-24-11-07

for you to fetch changes up to cddc04275f95ca3b18da5c0fb111705ac173af89:

netfilter: nf_tables: must hold rcu read lock while iterating object type list (2024-11-05 22:07:12 +0100)

----------------------------------------------------------------
netfilter pull request 24-11-07

----------------------------------------------------------------
Breno Leitao (1):
netfilter: Make legacy configs user selectable

Florian Westphal (8):
netfilter: nf_tables: prefer nft_trans_elem_alloc helper
netfilter: nf_tables: avoid false-positive lockdep splat on rule deletion
netfilter: nf_tables: avoid false-positive lockdep splats with sets
netfilter: nf_tables: avoid false-positive lockdep splats with flowtables
netfilter: nf_tables: avoid false-positive lockdep splats in set walker
netfilter: nf_tables: avoid false-positive lockdep splats with basechain hook
netfilter: nf_tables: must hold rcu read lock while iterating expression type list
netfilter: nf_tables: must hold rcu read lock while iterating object type list

Justin Stitt (1):
netfilter: nf_tables: replace deprecated strncpy with strscpy_pad

Uros Bizjak (1):
netfilter: nf_tables: Fix percpu address space issues in nf_tables_api.c

 include/net/netfilter/nf_tables.h      |   3 +-
 net/bridge/netfilter/Kconfig           |   8 +-
 net/bridge/netfilter/nft_meta_bridge.c |   2 +-
 net/ipv4/netfilter/Kconfig             |  16 +++-
 net/ipv6/netfilter/Kconfig             |   9 ++-
 net/netfilter/nf_tables_api.c          | 132 +++++++++++++++++++--------------
 net/netfilter/nft_flow_offload.c       |   4 +-
 net/netfilter/nft_set_bitmap.c         |  10 ++-
 net/netfilter/nft_set_hash.c           |   3 +-
 9 files changed, 119 insertions(+), 68 deletions(-)