]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/ipv6/udp: Fix ipv6 multicast socket filter regression
authorHenning Rogge <hrogge@gmail.com>
Mon, 18 May 2015 19:08:49 +0000 (21:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jun 2015 00:03:20 +0000 (17:03 -0700)
commit92a5c890d3e309ae25d48111bd0e9d8cceb094e7
tree7aa51591d6a35a479f79e772f4c91206799fa94a
parente58803ae33c75829422b3b6e425c2072b7d1a4d6
net/ipv6/udp: Fix ipv6 multicast socket filter regression

[ Upstream commit 33b4b015e1a1ca7a8fdce40af5e71642a8ea355c ]

Commit <5cf3d46192fc> ("udp: Simplify__udp*_lib_mcast_deliver")
simplified the filter for incoming IPv6 multicast but removed
the check of the local socket address and the UDP destination
address.

This patch restores the filter to prevent sockets bound to a IPv6
multicast IP to receive other UDP traffic link unicast.

Signed-off-by: Henning Rogge <hrogge@gmail.com>
Fixes: 5cf3d46192fc ("udp: Simplify__udp*_lib_mcast_deliver")
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/udp.c