Keir Fraser 57f5f544f5 [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 <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-08-29 21:22:18 -07:00
..
2006-07-24 13:52:13 -07:00
2006-08-17 16:29:53 -07:00
2006-08-26 23:40:50 -07:00
2006-08-02 14:14:44 -07:00
2006-08-05 21:15:58 -07:00
2006-08-13 18:56:26 -07:00
2006-07-12 13:58:59 -07:00
2006-08-17 16:29:54 -07:00
2006-07-21 15:52:20 -07:00
2006-01-12 14:06:31 -08:00
2005-04-16 15:20:36 -07:00