[PATCH] inet6: prevent network storms caused by linux IPv6 routers

Subsystems: networking [general], networking [ipv4/ipv6], the rest

STALE5753d

2 messages, 2 authors, 2011-01-13 · open the first message on its own page

[PATCH] inet6: prevent network storms caused by linux IPv6 routers

From: Alexey Kuznetsov <hidden>
Date: 2011-01-12 19:14:00

Linux IPv6 forwards unicast packets, which are link layer multicasts...
The hole was present since day one. I was 100% this check is there, but it is not.

The problem shows itself, f.e. when Microsoft Network Load Balancer runs on a network.
This software resolves IPv6 unicast addresses to multicast MAC addresses.

Signed-off-by: Alexey Kuznetsov <redacted>
---
 net/ipv6/ip6_output.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 94b5bf1..5f8d242 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -401,6 +401,9 @@ int ip6_forward(struct sk_buff *skb)
 		goto drop;
 	}
 
+	if (skb->pkt_type != PACKET_HOST)
+		goto drop;
+
 	skb_forward_csum(skb);
 
 	/*
-- 
1.7.2.3

Re: [PATCH] inet6: prevent network storms caused by linux IPv6 routers

From: David Miller <davem@davemloft.net>
Date: 2011-01-13 02:51:39

From: Alexey Kuznetsov <redacted>
Date: Wed, 12 Jan 2011 21:34:08 +0300
Linux IPv6 forwards unicast packets, which are link layer multicasts...
The hole was present since day one. I was 100% this check is there, but it is not.

The problem shows itself, f.e. when Microsoft Network Load Balancer runs on a network.
This software resolves IPv6 unicast addresses to multicast MAC addresses.

Signed-off-by: Alexey Kuznetsov <redacted>
Applied, thanks Alexey.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help