lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 27 Aug 2014 13:29:27 +0200
From:	Johannes Berg <>
To:	Julian Anastasov <>
Cc:	David Miller <>,,
Subject: Re: [RFC] net: ipv4: drop unicast encapsulated in L2 multicast

On Wed, 2014-08-27 at 13:23 +0300, Julian Anastasov wrote:

> 	CLUSTERIP works in LOCAL_IN. My preference is to
> add checks in every protocol where it is missing but if
> you prefer a global check, ip_local_deliver_finish() is
> a good place: CLUSTERIP already changed pkt_type to
> PACKET_HOST. For example:
> 	if (!(skb_rtable(skb)->rt_flags &
> 	    (skb->pkt_type == PACKET_BROADCAST ||
> 	     skb->pkt_type == PACKET_MULTICAST)) {
> 		kfree_skb(skb);
> 		return;
> 	}
> 	By this way we protect the local stack globally.

I suppose that'd work then?

> BTW, what kind of packets (protocol) we want to drop? UDP?

All IP protocols, this comes either from the IPv4 RFC (1122) or from the
wireless issue which affects all protocols.

> 	As for ip_forward(), there is already check for
> 	Not sure, may be a MIB counter for such drops
> would be useful.

Yeah, maybe, not sure.


To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists