Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14netfilter: use fwmark_reflect in nf_send_resetnet/ipv4/netfilter/nf_reject_ipv4.c net/ipv6/netfilter/nf_reject_ipv6.c+5 -00 replies
2/14tcp: fix mark propagation with fwmark_reflect enablednet/ipv4/ip_output.c net/ipv6/tcp_ipv6.c+2 -03 replies
3/14netfilter: nf_tables: fix spelling mistakesinclude/uapi/linux/netfilter/nf_tables.h+2 -20 replies
4/14netfilter: rpfilter: fix incorrect loopback packet judgmentinclude/net/netfilter/nft_fib.h net/ipv4/netfilter/ipt_rpfilter.c net/ipv4/netfilter/nft_fib_ipv4.c +2 more+23 -270 replies
5/14netfilter: nf_tables: fix possible oops when dumping stateful objectsnet/netfilter/nf_tables_api.c+3 -20 replies
6/14netfilter: Fix typo in NF_CONNTRACK Kconfig option descriptionnet/netfilter/Kconfig+1 -10 replies
7/14netfilter: ipt_CLUSTERIP: fix build error without procfsnet/ipv4/netfilter/ipt_CLUSTERIP.c+6 -10 replies
8/14netfilter: conntrack: remove GC_MAX_EVICTS breaknet/netfilter/nf_conntrack_core.c+2 -50 replies
9/14netfilter: conntrack: refine gc worker heuristics, reduxnet/netfilter/nf_conntrack_core.c+20 -193 replies
10/14netfilter: nf_tables: validate the name size when possiblenet/netfilter/nf_tables_api.c net/netfilter/nft_dynset.c net/netfilter/nft_lookup.c +1 more+22 -110 replies
11/14netfilter: nft_log: restrict the log prefix length to 127include/uapi/linux/netfilter/nf_log.h net/netfilter/nf_log.c net/netfilter/nft_log.c+4 -20 replies
12/14netfilter: nf_tables: fix set->nelems counting with no NLM_F_EXCLnet/netfilter/nf_tables_api.c+9 -70 replies
13/14netfilter: nf_tables: deconstify walk callback functioninclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_set_hash.c +1 more+17 -170 replies
14/14netfilter: nf_tables: bump set->ndeact on set flushnet/netfilter/nf_tables_api.c+1 -00 replies

Reviews trailers per patch

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

PatchNicolas DichtelDenys Fedoryshchenko
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14A-b
9/14T-b A-b T-b
10/14
11/14
12/14
13/14
14/14

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 00/14] Netfilter fixes for net

Hi David,

The following patchset contains a large batch with Netfilter fixes for your net tree, they are:

1) Two patches to solve conntrack garbage collector cpu hogging, one to remove GC_MAX_EVICTS and another to look at the ratio (scanned entries vs. evicted entries) to make a decision on whether to reduce or not the scanning interval. From Florian Westphal.

2) Two patches to fix incorrect set element counting if NLM_F_EXCL is is not set. Moreover, don't decrenent set->nelems from abort patch if -ENFILE which leaks a spare slot in the set. This includes a patch to deconstify the set walk callback to update set->ndeact.

3) Two fixes for the fwmark_reflect sysctl feature: Propagate mark to reply packets both from nf_reject and local stack, from Pau Espin Pedrol.

4) Fix incorrect handling of loopback traffic in rpfilter and nf_tables fib expression, from Liping Zhang.

5) Fix oops on stateful objects netlink dump, when no filter is specified. Also from Liping Zhang.

6) Fix a build error if proc is not available in ipt_CLUSTERIP, related to fix that was applied in the previous batch for net. From Arnd Bergmann.

7) Fix lack of string validation in table, chain, set and stateful object names in nf_tables, from Liping Zhang. Moreover, restrict maximum log prefix length to 127 bytes, otherwise explicitly bail out.

8) Two patches to fix spelling and typos in nf_tables uapi header file and Kconfig, patches from Alexander Alemayhu and William Breathitt Gray.

You can pull these changes from:

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

Thanks a lot!

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

The following changes since commit 03430fa10b99e95e3a15eb7c00978fb1652f3b24:

Merge branch 'bcm_sf2-fixes' (2017-01-08 22:01:22 -0500)

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 b2c11e4b9536ebab6b39929e1fe15f57039ab445:

netfilter: nf_tables: bump set->ndeact on set flush (2017-01-24 21:46:59 +0100)

----------------------------------------------------------------
Alexander Alemayhu (1):
netfilter: nf_tables: fix spelling mistakes

Arnd Bergmann (1):
netfilter: ipt_CLUSTERIP: fix build error without procfs

Florian Westphal (2):
netfilter: conntrack: remove GC_MAX_EVICTS break
netfilter: conntrack: refine gc worker heuristics, redux

Liping Zhang (4):
netfilter: rpfilter: fix incorrect loopback packet judgment
netfilter: nf_tables: fix possible oops when dumping stateful objects
netfilter: nf_tables: validate the name size when possible
netfilter: nft_log: restrict the log prefix length to 127

Pablo Neira Ayuso (3):

      netfilter: nf_tables: fix set->nelems counting with no NLM_F_EXCL
      netfilter: nf_tables: deconstify walk callback function
      netfilter: nf_tables: bump set->ndeact on set flush

Pau Espin Pedrol (2):
netfilter: use fwmark_reflect in nf_send_reset
tcp: fix mark propagation with fwmark_reflect enabled

William Breathitt Gray (1):
netfilter: Fix typo in NF_CONNTRACK Kconfig option description

 include/net/netfilter/nf_tables.h        |  6 +--
 include/net/netfilter/nft_fib.h          |  6 +++
 include/uapi/linux/netfilter/nf_log.h    |  2 +
 include/uapi/linux/netfilter/nf_tables.h |  4 +-
 net/ipv4/ip_output.c                     |  1 +
 net/ipv4/netfilter/ipt_CLUSTERIP.c       |  7 +++-
 net/ipv4/netfilter/ipt_rpfilter.c        |  8 ++--
 net/ipv4/netfilter/nf_reject_ipv4.c      |  2 +
 net/ipv4/netfilter/nft_fib_ipv4.c        | 15 +++----
 net/ipv6/netfilter/ip6t_rpfilter.c       |  8 ++--
 net/ipv6/netfilter/nf_reject_ipv6.c      |  3 ++
 net/ipv6/netfilter/nft_fib_ipv6.c        | 13 ++-----
 net/ipv6/tcp_ipv6.c                      |  1 +
 net/netfilter/Kconfig                    |  2 +-
 net/netfilter/nf_conntrack_core.c        | 44 ++++++++++-----------
 net/netfilter/nf_log.c                   |  1 -
 net/netfilter/nf_tables_api.c            | 67 +++++++++++++++++++-------------
 net/netfilter/nft_dynset.c               |  3 +-
 net/netfilter/nft_log.c                  |  3 +-
 net/netfilter/nft_lookup.c               |  3 +-
 net/netfilter/nft_objref.c               |  6 ++-
 net/netfilter/nft_set_hash.c             |  2 +-
 net/netfilter/nft_set_rbtree.c           |  2 +-
 23 files changed, 116 insertions(+), 93 deletions(-)