Michal Kubeček 2c861cc65e ipv6: don't call fib6_run_gc() until routing is ready
When loading the ipv6 module, ndisc_init() is called before
ip6_route_init(). As the former registers a handler calling
fib6_run_gc(), this opens a window to run the garbage collector
before necessary data structures are initialized. If a network
device is initialized in this window, adding MAC address to it
triggers a NETDEV_CHANGEADDR event, leading to a crash in
fib6_clean_all().

Take the event handler registration out of ndisc_init() into a
separate function ndisc_late_init() and move it after
ip6_route_init().

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-09-11 17:04:09 -04:00
..
2013-08-31 22:30:01 -04:00
2012-04-15 12:44:40 -04:00
2012-04-15 12:44:40 -04:00
2012-07-19 10:43:03 -07:00
2012-10-08 17:42:36 -04:00
2013-01-27 22:46:33 -05:00
2013-06-26 18:01:46 +09:00
2013-09-02 21:00:50 -07:00
2011-03-31 11:26:23 -03:00
2012-05-17 18:45:20 -04:00
2013-09-03 22:34:47 -04:00
2012-05-19 01:08:16 -04:00
2012-08-06 13:40:47 -07:00
2013-08-29 15:50:06 -04:00
2013-06-04 16:43:42 -07:00
2012-04-15 12:44:40 -04:00
2012-05-16 15:17:08 -04:00
2012-04-15 12:44:40 -04:00