bridge: netfilter: Fix dropping packets that moving through bridge interface
authorArtur Molchanov <arturmolchanov@gmail.com>
Fri, 30 Dec 2016 16:46:36 +0000 (19:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:01 +0000 (20:18 +0100)
commit259495a0440f6b8025277171d7becb8b92cece82
treef5308e31ddcc0e4873275ccf96d79bb1ee2d103c
parent6ba35da690f30af09706095b914d8031902fd3e5
bridge: netfilter: Fix dropping packets that moving through bridge interface

commit 14221cc45caad2fcab3a8543234bb7eda9b540d5 upstream.

Problem:
br_nf_pre_routing_finish() calls itself instead of
br_nf_pre_routing_finish_bridge(). Due to this bug reverse path filter drops
packets that go through bridge interface.

User impact:
Local docker containers with bridge network can not communicate with each
other.

Fixes: c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")
Signed-off-by: Artur Molchanov <artur.molchanov@synesis.ru>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_netfilter_hooks.c