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

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netfilter: xt_TCPMSS: add more sanity tests on tcph->doffnet/netfilter/xt_TCPMSS.c+5 -10 replies
2/9netfilter: ctnetlink: using bit to represent the ct eventnet/netfilter/nf_conntrack_netlink.c+2 -20 replies
3/9netfilter: helper: Add the rcu lock when call __nf_conntrack_helper_findnet/netfilter/nf_conntrack_helper.c net/netfilter/nf_conntrack_netlink.c+20 -70 replies
4/9netfilter: ctnetlink: make it safer when checking the ct helper namenet/netfilter/nf_conntrack_netlink.c+10 -50 replies
5/9netfilter: make it safer during the inet6_dev->addr_list traversalnet/netfilter/nf_nat_redirect.c net/netfilter/xt_TPROXY.c+6 -10 replies
6/9netfilter: ctnetlink: skip dumping expect when nfct_help(ct) is NULLnet/netfilter/nf_conntrack_netlink.c+6 -00 replies
7/9netfilter: nf_ct_expect: use proper RCU list traversal/update APIsnet/netfilter/nf_conntrack_expect.c net/netfilter/nf_conntrack_netlink.c+5 -50 replies
8/9netfilter: nft_hash: do not dump the auto generated seednet/netfilter/nft_hash.c+7 -30 replies
9/9netfilter: ipt_CLUSTERIP: Fix wrong conntrack netns refcnt usagenet/ipv4/netfilter/ipt_CLUSTERIP.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Netfilter fixes for net

Hi David,

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

1) Missing TCP header sanity check in TCPMSS target, from Eric Dumazet.

2) Incorrect event message type for related conntracks created via ctnetlink, from Liping Zhang.

3) Fix incorrect rcu locking when handling helpers from ctnetlink, from Gao feng.

4) Fix missing rcu locking when updating helper, from Liping Zhang.

5) Fix missing read_lock_bh when iterating over list of device addresses from TPROXY and redirect, also from Liping.

6) Fix crash when trying to dump expectations from conntrack with no helper via ctnetlink, from Liping.

7) Missing RCU protection to expecation list update given ctnetlink iterates over the list under rcu read lock side, from Liping too.

8) Don't dump autogenerated seed in nft_hash to userspace, this is very confusing to the user, again from Liping.

9) Fix wrong conntrack netns module refcount in ipt_CLUSTERIP, from Gao feng.

You can pull these changes from:

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

Thanks!

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

The following changes since commit 0b9aefea860063bb39e36bd7fe6c7087fed0ba87:

tcp: minimize false-positives on TCP/GRO check (2017-04-03 18:43:41 -0700)

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

netfilter: ipt_CLUSTERIP: Fix wrong conntrack netns refcnt usage (2017-04-13 23:21:40 +0200)

----------------------------------------------------------------
Eric Dumazet (1):

      netfilter: xt_TCPMSS: add more sanity tests on tcph->doff

Gao Feng (2):
netfilter: helper: Add the rcu lock when call __nf_conntrack_helper_find
netfilter: ipt_CLUSTERIP: Fix wrong conntrack netns refcnt usage

Liping Zhang (6):
netfilter: ctnetlink: using bit to represent the ct event
netfilter: ctnetlink: make it safer when checking the ct helper name
netfilter: make it safer during the inet6_dev->addr_list traversal
netfilter: ctnetlink: skip dumping expect when nfct_help(ct) is NULL
netfilter: nf_ct_expect: use proper RCU list traversal/update APIs
netfilter: nft_hash: do not dump the auto generated seed

 net/ipv4/netfilter/ipt_CLUSTERIP.c   |  2 +-
 net/netfilter/nf_conntrack_expect.c  |  4 ++--
 net/netfilter/nf_conntrack_helper.c  | 17 ++++++++++-----
 net/netfilter/nf_conntrack_netlink.c | 41 +++++++++++++++++++++++++-----------
 net/netfilter/nf_nat_redirect.c      |  2 ++
 net/netfilter/nft_hash.c             | 10 ++++++---
 net/netfilter/xt_TCPMSS.c            |  6 +++++-
 net/netfilter/xt_TPROXY.c            |  5 ++++-
 8 files changed, 62 insertions(+), 25 deletions(-)