diff options
author | Michal Kubeček <mkubecek@suse.cz> | 2013-09-09 21:45:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-11 23:04:09 +0200 |
commit | 2c861cc65ef4604011a0082e4dcdba2819aa191a (patch) | |
tree | d6fe5436cf4d492c727cfb370232c87254d72097 /net/decnet/dn_route.c | |
parent | net: tilegx driver: avoid compiler warning (diff) | |
download | linux-2c861cc65ef4604011a0082e4dcdba2819aa191a.tar.xz linux-2c861cc65ef4604011a0082e4dcdba2819aa191a.zip |
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>
Diffstat (limited to 'net/decnet/dn_route.c')
0 files changed, 0 insertions, 0 deletions