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: nf_queue: augment nfqa_cfg_policynet/netfilter/nfnetlink_queue.c+3 -00 replies
2/6netfilter: ipv6: nf_defrag: reduce struct net memory wasteinclude/net/net_namespace.h include/net/netns/ipv6.h net/ipv6/netfilter/nf_conntrack_reasm.c+4 -40 replies
3/6netfilter: nf_ct_helper: Fix possible panic after nf_conntrack_helper_unregisternet/netfilter/nf_conntrack_helper.c+5 -00 replies
4/6netfilter: nf_log: fix uninit read in nf_log_proc_dostringnet/netfilter/nf_log.c+4 -00 replies
5/6netfilter: nf_log: don't hold nf_log_mutex during user accessnet/netfilter/nf_log.c+6 -30 replies
6/6netfilter: nf_conncount: fix garbage collection confirm racenet/netfilter/nf_conncount.c+47 -50 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchYi-Hung Wei
1/6
2/6
3/6
4/6
5/6
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:

1) Missing netlink attribute validation in nf_queue, uncovered by KASAN, from Eric Dumazet.

2) Use pointer to sysctl table, save us 192 bytes of memory per netns. Also from Eric.

3) Possible use-after-free when removing conntrack helper modules due to missing synchronize RCU call. From Taehee Yoo.

4) Fix corner case in systcl writes to nf_log that lead to appending data to uninitialized buffer, from Jann Horn.

5) Jann Horn says we may indefinitely block other users of nf_log_mutex if a userspace access in proc_dostring() blocked e.g. due to a userfaultfd.

6) Fix garbage collection race for unconfirmed conntrack entries, from Florian Westphal.

You can pull these changes from:

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

Thanks.

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

The following changes since commit 7e85dc8cb35abf16455f1511f0670b57c1a84608:

net_sched: blackhole: tell upper qdisc about dropped packets (2018-06-17 08:42:33 +0900)

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

netfilter: nf_conncount: fix garbage collection confirm race (2018-06-26 18:28:57 +0200)

----------------------------------------------------------------
Eric Dumazet (2):
netfilter: nf_queue: augment nfqa_cfg_policy
netfilter: ipv6: nf_defrag: reduce struct net memory waste

Florian Westphal (1):
netfilter: nf_conncount: fix garbage collection confirm race

Gao Feng (1):
netfilter: nf_ct_helper: Fix possible panic after nf_conntrack_helper_unregister

Jann Horn (2):
netfilter: nf_log: fix uninit read in nf_log_proc_dostring
netfilter: nf_log: don't hold nf_log_mutex during user access

 include/net/net_namespace.h             |  1 +
 include/net/netns/ipv6.h                |  1 -
 net/ipv6/netfilter/nf_conntrack_reasm.c |  6 ++--
 net/netfilter/nf_conncount.c            | 52 +++++++++++++++++++++++++++++----
 net/netfilter/nf_conntrack_helper.c     |  5 ++++
 net/netfilter/nf_log.c                  | 13 +++++++--
 net/netfilter/nfnetlink_queue.c         |  3 ++
 7 files changed, 69 insertions(+), 12 deletions(-)