From: Pavel Emelyanov Date: Sun, 13 Apr 2008 01:40:38 +0000 (-0700) Subject: [SCTP]: IPv4 vs IPv6 addresses mess in sctp_inet[6]addr_event. X-Git-Tag: v2.6.25~33^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a40a7d15ba602b547f56b7b19e0282fe4fc3dee3;p=pandora-kernel.git [SCTP]: IPv4 vs IPv6 addresses mess in sctp_inet[6]addr_event. All IP addresses that are present in a system are duplicated on struct sctp_sockaddr_entry. They are linked in the global list called sctp_local_addr_list. And this struct unions IPv4 and IPv6 addresses. So, there can be rare case, when a sockaddr_in.sin_addr coincides with the corresponding part of the sockaddr_in6 and the notifier for IPv4 will carry away an IPv6 entry. The fix is to check the family before comparing the addresses. Signed-off-by: Pavel Emelyanov Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed