Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28netfilter: nf_log_ipv4: rename to nf_log_syslognet/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile net/ipv4/netfilter/nf_log_ipv4.c +3 more+409 -3980 replies
2/28netfilter: nf_log_arp: merge with nf_log_syslognet/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile net/ipv4/netfilter/nf_log_arp.c +1 more+115 -1780 replies
3/28netfilter: nf_log_ipv6: merge with nf_log_syslognet/ipv6/netfilter/Kconfig net/ipv6/netfilter/Makefile net/ipv6/netfilter/nf_log_ipv6.c +1 more+360 -4330 replies
4/28netfilter: nf_log_netdev: merge with nf_log_syslognet/netfilter/Kconfig net/netfilter/Makefile net/netfilter/nf_log_netdev.c +1 more+36 -850 replies
5/28netfilter: nf_log_bridge: merge with nf_log_sysloginclude/net/netfilter/nf_log.h net/bridge/netfilter/Kconfig net/bridge/netfilter/Makefile +3 more+22 -940 replies
6/28netfilter: nf_log_common: merge with nf_log_sysloginclude/net/netfilter/nf_log.h net/netfilter/Kconfig net/netfilter/Makefile +2 more+181 -2580 replies
7/28netfilter: nf_log: add module softdepsnet/netfilter/xt_LOG.c net/netfilter/xt_NFLOG.c net/netfilter/xt_TRACE.c+3 -00 replies
8/28netfilter: nft_log: perform module load from nf_tablesinclude/net/netfilter/nf_tables.h net/netfilter/nf_log.c net/netfilter/nf_tables_api.c +1 more+27 -60 replies
9/28audit: log nftables configuration change events once per tablenet/netfilter/nf_tables_api.c+103 -830 replies
10/28netfilter: ipset: Remove duplicate declarationinclude/linux/netfilter/ipset/ip_set.h+0 -20 replies
11/28netfilter: flowtable: dst_check() from garbage collector pathinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c net/netfilter/nf_flow_table_ip.c+44 -200 replies
12/28netfilter: nftables: remove unnecessary spin_lock_init()net/netfilter/nf_tables_api.c+0 -10 replies
13/28netfilter: nftables: add helper function to set the base sequence numbernet/netfilter/nf_tables_api.c+14 -90 replies
14/28netfilter: add helper function to set up the nfnetlink header and use itinclude/linux/netfilter/nfnetlink.h net/netfilter/ipset/ip_set_core.c net/netfilter/nf_conntrack_netlink.c +8 more+102 -2080 replies
15/28netfilter: ipvs: do not printk on netns creationnet/netfilter/ipvs/ip_vs_ftp.c+0 -20 replies
16/28netfilter: nftables: fix a warning message in nf_tables_commit_audit_collect()net/netfilter/nf_tables_api.c+1 -10 replies
17/28netfilter: nftables: remove documentation on static functionsnet/netfilter/nf_tables_api.c+0 -320 replies
18/28netfilter: nfnetlink: add and use nfnetlink_broadcastinclude/linux/netfilter/nfnetlink.h net/netfilter/nfnetlink.c net/netfilter/nfnetlink_acct.c+10 -20 replies
19/28netfilter: nfnetlink: use net_generic infranet/netfilter/nfnetlink.c+44 -180 replies
20/28netfilter: cttimeout: use net_generic infranet/netfilter/nfnetlink_cttimeout.c+32 -90 replies
21/28netfilter: nf_defrag_ipv6: use net_generic infrainclude/net/netfilter/ipv6/nf_defrag_ipv6.h net/ipv6/netfilter/nf_conntrack_reasm.c net/ipv6/netfilter/nf_defrag_ipv6_hooks.c+52 -370 replies
22/28netfilter: nf_defrag_ipv4: use net_generic infranet/ipv4/netfilter/nf_defrag_ipv4.c+15 -50 replies
23/28netfilter: ebtables: use net_generic infranet/bridge/netfilter/ebtables.c+34 -50 replies
24/28netfilter: nf_tables: use net_generic infra for transaction datainclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nf_tables_offload.c +2 more+243 -1280 replies
25/28netfilter: x_tables: move known table lists to net_generic infranet/netfilter/x_tables.c+33 -130 replies
26/28netfilter: conntrack: move sysctl pointer to net_generic infrainclude/net/netfilter/nf_conntrack.h net/netfilter/nf_conntrack_standalone.c+9 -40 replies
27/28netfilter: conntrack: move ecache dwork to net_generic infrainclude/net/netfilter/nf_conntrack.h include/net/netfilter/nf_conntrack_ecache.h net/netfilter/nf_conntrack_core.c +1 more+47 -280 replies
28/28net: remove obsolete members from struct netinclude/net/net_namespace.h include/net/netns/conntrack.h include/net/netns/netfilter.h +2 more+0 -270 replies

Reviews trailers per patch

4 of 28 patches have a Reviewed-by or Acked-by.

PatchPhil SutterJozsef KadlecsikPaul MooreJulian AnastasovSimon Horman
1/28
2/28
3/28
4/28
5/28
6/28
7/28
8/28T-b
9/28A-b
10/28A-b
11/28
12/28
13/28
14/28
15/28A-b R-b
16/28R-b
17/28
18/28
19/28
20/28
21/28
22/28
23/28
24/28
25/28
26/28
27/28
28/28

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

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

Hi,

The following batch contains Netfilter/IPVS updates for your net-next tree:

1) Simplify log infrastructure modularity: Merge ipv4, ipv6, bridge, netdev and ARP families to nf_log_syslog.c. Add module softdeps. This fixes a rare deadlock condition that might occur when log module autoload is required. From Florian Westphal.

2) Moves part of netfilter related pernet data from struct net to net_generic() infrastructure. All of these users can be modules, so if they are not loaded there is no need to waste space. Size reduction is 7 cachelines on x86_64, also from Florian.

2) Update nftables audit support to report events once per table, to get it aligned with iptables. From Richard Guy Briggs.

3) Check for stale routes from the flowtable garbage collector path. This is fixing IPv6 which breaks due missing check for the dst_cookie.

4) Add a nfnl_fill_hdr() function to simplify netlink + nfnetlink headers setup.

5) Remove documentation on several statified functions.

6) Remove printk on netns creation for the FTP IPVS tracker, from Florian Westphal.

7) Remove unnecessary nf_tables_destroy_list_lock spinlock initialization, from Yang Yingliang.

7) Remove a duplicated forward declaration in ipset, from Wan Jiabing.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git

Thanks!

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

The following changes since commit cda1893e9f7c1d78e391dbb6ef1798cd32354113:

net: mhi: remove pointless conditional before kfree_skb() (2021-03-30 13:47:28 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git HEAD

for you to fetch changes up to db3685b4046f8b629bbf73caa33751ce567ea8ff:

net: remove obsolete members from struct net (2021-04-06 00:34:53 +0200)

----------------------------------------------------------------
Dan Carpenter (1):
netfilter: nftables: fix a warning message in nf_tables_commit_audit_collect()

Florian Westphal (20):
netfilter: nf_log_ipv4: rename to nf_log_syslog
netfilter: nf_log_arp: merge with nf_log_syslog
netfilter: nf_log_ipv6: merge with nf_log_syslog
netfilter: nf_log_netdev: merge with nf_log_syslog
netfilter: nf_log_bridge: merge with nf_log_syslog
netfilter: nf_log_common: merge with nf_log_syslog
netfilter: nf_log: add module softdeps
netfilter: nft_log: perform module load from nf_tables
netfilter: ipvs: do not printk on netns creation
netfilter: nfnetlink: add and use nfnetlink_broadcast
netfilter: nfnetlink: use net_generic infra
netfilter: cttimeout: use net_generic infra
netfilter: nf_defrag_ipv6: use net_generic infra
netfilter: nf_defrag_ipv4: use net_generic infra
netfilter: ebtables: use net_generic infra
netfilter: nf_tables: use net_generic infra for transaction data
netfilter: x_tables: move known table lists to net_generic infra
netfilter: conntrack: move sysctl pointer to net_generic infra
netfilter: conntrack: move ecache dwork to net_generic infra
net: remove obsolete members from struct net

Pablo Neira Ayuso (4):
netfilter: flowtable: dst_check() from garbage collector path
netfilter: nftables: add helper function to set the base sequence number
netfilter: add helper function to set up the nfnetlink header and use it
netfilter: nftables: remove documentation on static functions

Richard Guy Briggs (1):
audit: log nftables configuration change events once per table

Wan Jiabing (1):
netfilter: ipset: Remove duplicate declaration

Yang Yingliang (1):
netfilter: nftables: remove unnecessary spin_lock_init()

 include/linux/netfilter/ipset/ip_set.h      |    2 -
 include/linux/netfilter/nfnetlink.h         |   29 +
 include/net/net_namespace.h                 |    9 -
 include/net/netfilter/ipv6/nf_defrag_ipv6.h |    6 +
 include/net/netfilter/nf_conntrack.h        |    7 +
 include/net/netfilter/nf_conntrack_ecache.h |   33 +-
 include/net/netfilter/nf_flow_table.h       |    5 +-
 include/net/netfilter/nf_log.h              |   25 -
 include/net/netfilter/nf_tables.h           |   16 +
 include/net/netns/conntrack.h               |    4 -
 include/net/netns/netfilter.h               |    6 -
 include/net/netns/nftables.h                |    7 -
 include/net/netns/x_tables.h                |    1 -
 net/bridge/netfilter/Kconfig                |    4 -
 net/bridge/netfilter/Makefile               |    3 -
 net/bridge/netfilter/ebtables.c             |   39 +-
 net/bridge/netfilter/nf_log_bridge.c        |   79 --
 net/ipv4/netfilter/Kconfig                  |   10 +-
 net/ipv4/netfilter/Makefile                 |    4 -
 net/ipv4/netfilter/nf_defrag_ipv4.c         |   20 +-
 net/ipv4/netfilter/nf_log_arp.c             |  172 -----
 net/ipv4/netfilter/nf_log_ipv4.c            |  395 ----------
 net/ipv6/netfilter/Kconfig                  |    5 +-
 net/ipv6/netfilter/Makefile                 |    3 -
 net/ipv6/netfilter/nf_conntrack_reasm.c     |   68 +-
 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c   |   15 +-
 net/ipv6/netfilter/nf_log_ipv6.c            |  427 -----------
 net/netfilter/Kconfig                       |   20 +-
 net/netfilter/Makefile                      |    6 +-
 net/netfilter/ipset/ip_set_core.c           |   17 +-
 net/netfilter/ipvs/ip_vs_ftp.c              |    2 -
 net/netfilter/nf_conntrack_core.c           |    7 +-
 net/netfilter/nf_conntrack_ecache.c         |   31 +-
 net/netfilter/nf_conntrack_netlink.c        |   77 +-
 net/netfilter/nf_conntrack_standalone.c     |   10 +-
 net/netfilter/nf_flow_table_core.c          |   37 +-
 net/netfilter/nf_flow_table_ip.c            |   22 +-
 net/netfilter/nf_log.c                      |   10 -
 net/netfilter/nf_log_common.c               |  224 ------
 net/netfilter/nf_log_netdev.c               |   78 --
 net/netfilter/nf_log_syslog.c               | 1089 +++++++++++++++++++++++++++
 net/netfilter/nf_tables_api.c               |  632 ++++++++--------
 net/netfilter/nf_tables_offload.c           |   30 +-
 net/netfilter/nf_tables_trace.c             |    9 +-
 net/netfilter/nfnetlink.c                   |   67 +-
 net/netfilter/nfnetlink_acct.c              |   14 +-
 net/netfilter/nfnetlink_cthelper.c          |   11 +-
 net/netfilter/nfnetlink_cttimeout.c         |   63 +-
 net/netfilter/nfnetlink_log.c               |   11 +-
 net/netfilter/nfnetlink_queue.c             |   12 +-
 net/netfilter/nft_chain_filter.c            |   11 +-
 net/netfilter/nft_compat.c                  |   11 +-
 net/netfilter/nft_dynset.c                  |    6 +-
 net/netfilter/nft_log.c                     |   20 +-
 net/netfilter/x_tables.c                    |   46 +-
 net/netfilter/xt_LOG.c                      |    1 +
 net/netfilter/xt_NFLOG.c                    |    1 +
 net/netfilter/xt_TRACE.c                    |    1 +
 58 files changed, 1910 insertions(+), 2060 deletions(-)
 delete mode 100644 net/bridge/netfilter/nf_log_bridge.c
 delete mode 100644 net/ipv4/netfilter/nf_log_arp.c
 delete mode 100644 net/ipv4/netfilter/nf_log_ipv4.c
 delete mode 100644 net/ipv6/netfilter/nf_log_ipv6.c
 delete mode 100644 net/netfilter/nf_log_common.c
 delete mode 100644 net/netfilter/nf_log_netdev.c
 create mode 100644 net/netfilter/nf_log_syslog.c