Skip to contentSkip to conversation

net/bridge: Fix dropping packets that moving through bridge interface

PATCH Applied Artur Molchanov 3 participants 4 messages Dec 30, 2016 – Jan 5, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bridge: Fix dropping packets that moving through bridge interface

From: Artur Molchanov <[email protected]>

Fixes c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")

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 moving through bridge interface.

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

---
 net/bridge/br_netfilter_hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bridge/br_netfilter_hooks.c +1 -1
index 8ca6a92..95087e6 100644
@@ -399,7 +399,7 @@ static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_
                 br_nf_hook_thresh(NF_BR_PRE_ROUTING,
                           net, sk, skb, skb->dev,
                           NULL,
-                          br_nf_pre_routing_finish);
+                          br_nf_pre_routing_finish_bridge);
                 return 0;
             }
             ether_addr_copy(eth_hdr(skb)->h_dest, dev->dev_addr);
Signature · 1 line
2.8.3
maintainer
#1 lore raw
Quoted 9 lines · Artur Molchanov

From: Artur Molchanov <[email protected]>

Fixes c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")

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 moving through bridge interface.

Indeed, thanks for fixing this!

maintainer Applied
#2 lore raw
Quoted 5 lines · Florian Westphal
Quoted 4 lines · Artur Molchanov

From: Artur Molchanov <[email protected]>

Fixes c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")
Quoted 7 lines
Quoted 5 lines

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 moving through bridge interface.

Indeed, thanks for fixing this!

Applied, thanks everyone.

#3 lore raw
Quoted 6 lines · Pablo Neira Ayuso
Quoted 5 lines · Florian Westphal
Quoted 4 lines · Artur Molchanov

From: Artur Molchanov <[email protected]>

Fixes c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines

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 moving through bridge interface.

Indeed, thanks for fixing this!

Applied, thanks everyone.

When the fix will be available in upstream?