Skip to content

Netfilter/IPVS fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesApplied 15/15

Patches in v1 All 15 applied

#Subject and filesSizeRepliesApplied
1/15netfilter: ipset: Fix oversized kvmalloc() callsnet/netfilter/ipset/ip_set_hash_gen.h+2 -20 repliesApplied
2/15ipvs: check that ip_vs_conn_tab_bits is between 8 and 20net/netfilter/ipvs/ip_vs_conn.c+4 -00 repliesApplied
3/15netfilter: ip6_tables: zero-initialize fragment offsetnet/ipv6/netfilter/ip6_tables.c+1 -00 repliesApplied
4/15netfilter: conntrack: make max chain length randomnet/netfilter/nf_conntrack_core.c+11 -60 repliesApplied
5/15netfilter: conntrack: include zone id in tuple hash againnet/netfilter/nf_conntrack_core.c+52 -150 repliesApplied
6/15netfilter: nat: include zone id in nat table hash againnet/netfilter/nf_nat_core.c+12 -50 repliesApplied
7/15selftests: netfilter: add selftest for directional zone supporttools/testing/selftests/netfilter/nft_nat_zones.sh+309 -00 repliesApplied
8/15selftests: netfilter: add zone stress test with colliding tuplestools/testing/selftests/netfilter/nft_zones_many.sh+156 -00 repliesApplied
9/15netfilter: nf_tables: unlink table before deleting itnet/netfilter/nf_tables_api.c+18 -100 repliesApplied
10/15netfilter: nf_tables: Fix oversized kvmalloc() callsnet/netfilter/nf_tables_api.c+1 -10 repliesApplied
11/15netfilter: nf_nat_masquerade: make async masq_inet6_event handling genericnet/netfilter/nf_nat_masquerade.c+75 -470 repliesApplied
12/15netfilter: nf_nat_masquerade: defer conntrack walk to work queuenet/netfilter/nf_nat_masquerade.c+24 -260 repliesApplied
13/15netfilter: iptable_raw: drop bogus net_init annotationnet/ipv4/netfilter/iptable_raw.c+1 -10 repliesApplied
14/15netfilter: log: work around missing softdep backend modulenet/netfilter/nft_compat.c net/netfilter/xt_LOG.c net/netfilter/xt_NFLOG.c+34 -30 repliesApplied
15/15netfilter: conntrack: serialize hash resizes and cleanupsnet/netfilter/nf_conntrack_core.c+37 -330 repliesApplied

Reviews trailers per patch

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

PatchJulian AnastasovSimon HormanFlorian Westphal[email protected]Martin ZaharinovEric Dumazet
1/15
2/15A-b A-b
3/15R-b
4/15
5/15
6/15
7/15
8/15
9/15Reported-and-tested-by
10/15
11/15
12/15Reported-and-tested-by
13/15
14/15Reported-and-tested-by
15/15

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

Read the v1 thread

Cover letter [PATCH net 00/15] Netfilter/IPVS fixes for net

Hi,

The following patchset contains Netfilter/IPVS fixes for net:

1) ipset limits the max allocatable memory via kvmalloc() to MAX_INT, from Jozsef Kadlecsik.

2) Check ip_vs_conn_tab_bits value to be in the range specified in Kconfig, from Andrea Claudi.

3) Initialize fragment offset in ip6tables, from Jeremy Sowden.

4) Make conntrack hash chain length random, from Florian Westphal.

5) Add zone ID to conntrack and NAT hashtuple again, also from Florian.

6) Add selftests for bidirectional zone support and colliding tuples, from Florian Westphal.

7) Unlink table before synchronize_rcu when cleaning tables with owner, from Florian.

8) ipset limits the max allocatable memory via kvmalloc() to MAX_INT.

9) Release conntrack entries via workqueue in masquerade, from Florian.

10) Fix bogus net_init in iptables raw table definition, also from Florian.

11) Work around missing softdep in log extensions, from Florian Westphal.

12) Serialize hash resizes and cleanups with mutex, from Eric Dumazet.

Please, pull these changes from:

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

Thanks.

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

The following changes since commit 276aae377206d60b9b7b7df4586cd9f2a813f5d0:

net: stmmac: fix system hang caused by eee_ctrl_timer during suspend/resume (2021-09-08 12:28:26 +0100)

are available in the Git repository at:

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

for you to fetch changes up to e9edc188fc76499b0b9bd60364084037f6d03773:

netfilter: conntrack: serialize hash resizes and cleanups (2021-09-21 03:46:56 +0200)

----------------------------------------------------------------
Andrea Claudi (1):
ipvs: check that ip_vs_conn_tab_bits is between 8 and 20

Eric Dumazet (1):
netfilter: conntrack: serialize hash resizes and cleanups

Florian Westphal (10):
netfilter: conntrack: make max chain length random
netfilter: conntrack: include zone id in tuple hash again
netfilter: nat: include zone id in nat table hash again
selftests: netfilter: add selftest for directional zone support
selftests: netfilter: add zone stress test with colliding tuples
netfilter: nf_tables: unlink table before deleting it
netfilter: nf_nat_masquerade: make async masq_inet6_event handling generic
netfilter: nf_nat_masquerade: defer conntrack walk to work queue
netfilter: iptable_raw: drop bogus net_init annotation
netfilter: log: work around missing softdep backend module

Jeremy Sowden (1):
netfilter: ip6_tables: zero-initialize fragment offset

Jozsef Kadlecsik (1):
netfilter: ipset: Fix oversized kvmalloc() calls

Pablo Neira Ayuso (1):
netfilter: nf_tables: Fix oversized kvmalloc() calls

 net/ipv4/netfilter/iptable_raw.c                   |   2 +-
 net/ipv6/netfilter/ip6_tables.c                    |   1 +
 net/netfilter/ipset/ip_set_hash_gen.h              |   4 +-
 net/netfilter/ipvs/ip_vs_conn.c                    |   4 +
 net/netfilter/nf_conntrack_core.c                  | 154 ++++++----
 net/netfilter/nf_nat_core.c                        |  17 +-
 net/netfilter/nf_nat_masquerade.c                  | 168 ++++++-----
 net/netfilter/nf_tables_api.c                      |  30 +-
 net/netfilter/nft_compat.c                         |  17 +-
 net/netfilter/xt_LOG.c                             |  10 +-
 net/netfilter/xt_NFLOG.c                           |  10 +-
 tools/testing/selftests/netfilter/nft_nat_zones.sh | 309 +++++++++++++++++++++
 .../testing/selftests/netfilter/nft_zones_many.sh  | 156 +++++++++++
 13 files changed, 735 insertions(+), 147 deletions(-)
 create mode 100755 tools/testing/selftests/netfilter/nft_nat_zones.sh
 create mode 100755 tools/testing/selftests/netfilter/nft_zones_many.sh