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 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: Zero the tuple in nfnl_cthelper_parse_tuple()net/netfilter/nfnetlink_cthelper.c+3 -00 replies
2/6netfilter: Fix potential crash in nft_hash walkernet/netfilter/nft_hash.c+2 -00 replies
3/6netfilter: nf_tables: allow to change chain policy without hook if it existsnet/netfilter/nf_tables_api.c+4 -10 replies
4/6netfilter: restore rule tracing via nfnetlink_loginclude/net/netfilter/nf_log.h net/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c +2 more+44 -100 replies
5/6netfilter: xt_TPROXY: fix invflags check in tproxy_tg6_check()net/netfilter/xt_TPROXY.c+2 -20 replies
6/6netfilter: nft_compat: set IP6T_F_PROTO flag if protocol is setnet/netfilter/nft_compat.c+6 -00 replies

Reviews trailers per patch

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

PatchBalazs ScheidlerPatrick McHardy
1/6
2/6
3/6
4/6
5/6A-b
6/6A-b

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 0/6] Netfilter fixes for net

Hi David,

The following patchset contains Netfilter fixes for your net tree, they are:

1) Fix missing initialization of tuple structure in nfnetlink_cthelper to avoid mismatches when looking up to attach userspace helpers to flows, from Ian Wilson.

2) Fix potential crash in nft_hash when we hit -EAGAIN in nft_hash_walk(), from Herbert Xu.

3) We don't need to indicate the hook information to update the basechain default policy in nf_tables.

4) Restore tracing over nfnetlink_log due to recent rework to accomodate logging infrastructure into nf_tables.

5) Fix wrong IP6T_INV_PROTO check in xt_TPROXY.

6) Set IP6T_F_PROTO flag in nft_compat so we can use SYNPROXY6 and REJECT6 from xt over nftables.

You can pull these changes from:

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

Thanks!

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

The following changes since commit 4363890079674db7b00cf1bb0e6fa430e846e86b:

net: Handle unregister properly when netdev namespace change fails. (2015-03-10 21:59:46 -0400)

are available in the git repository at:

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

for you to fetch changes up to 749177ccc74f9c6d0f51bd78a15c652a2134aa11:

netfilter: nft_compat: set IP6T_F_PROTO flag if protocol is set (2015-03-22 19:32:05 +0100)

----------------------------------------------------------------
Herbert Xu (1):
netfilter: Fix potential crash in nft_hash walker

Ian Wilson (1):
netfilter: Zero the tuple in nfnl_cthelper_parse_tuple()

Pablo Neira Ayuso (4):
netfilter: nf_tables: allow to change chain policy without hook if it exists
netfilter: restore rule tracing via nfnetlink_log
netfilter: xt_TPROXY: fix invflags check in tproxy_tg6_check()
netfilter: nft_compat: set IP6T_F_PROTO flag if protocol is set

 include/net/netfilter/nf_log.h     |   10 ++++++++++
 net/ipv4/netfilter/ip_tables.c     |    6 +++---
 net/ipv6/netfilter/ip6_tables.c    |    6 +++---
 net/netfilter/nf_log.c             |   24 ++++++++++++++++++++++++
 net/netfilter/nf_tables_api.c      |    5 ++++-
 net/netfilter/nf_tables_core.c     |    8 ++++----
 net/netfilter/nfnetlink_cthelper.c |    3 +++
 net/netfilter/nft_compat.c         |    6 ++++++
 net/netfilter/nft_hash.c           |    2 ++
 net/netfilter/xt_TPROXY.c          |    4 ++--
 10 files changed, 61 insertions(+), 13 deletions(-)