From: Keir Fraser Date: Tue, 29 Aug 2006 09:43:49 +0000 (-0700) Subject: [IPV6]: ipv6_add_addr should install dstentry earlier X-Git-Tag: v2.6.18-rc6~55^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f5f544f58ffa1d6c38630d0522c9c0be67c533;p=pandora-kernel.git [IPV6]: ipv6_add_addr should install dstentry earlier ipv6_add_addr allocates a struct inet6_ifaddr and a dstentry, but it doesn't install the dstentry in ifa->rt until after it releases the addrconf_hash_lock. This means other CPUs will be able to see the new address while it hasn't been initialized completely yet. One possible fix would be to grab the ifp->lock spinlock when creating the address struct; a simpler fix is to just move the assignment. Acked-by: jbeulich@novell.com Acked-by: okir@suse.de Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- Reading git-diff-tree failed