summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2017-05-03 22:07:31 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-14 14:06:02 +0200
commit5ee83127ac04d1d36f79c714c8342fc5f316ae60 (patch)
tree4a291f22bc928f0ed72f5a8f4211c6338fa6fb8c /tools/perf/util/scripting-engines/trace-event-perl.c
parent0913e5733167f958114327975898ea356161febc (diff)
downloadblackbird-op-linux-5ee83127ac04d1d36f79c714c8342fc5f316ae60.tar.gz
blackbird-op-linux-5ee83127ac04d1d36f79c714c8342fc5f316ae60.zip
ipv6: initialize route null entry in addrconf_init()
[ Upstream commit 2f460933f58eee3393aba64f0f6d14acb08d1724 ] Andrey reported a crash on init_net.ipv6.ip6_null_entry->rt6i_idev since it is always NULL. This is clearly wrong, we have code to initialize it to loopback_dev, unfortunately the order is still not correct. loopback_dev is registered very early during boot, we lose a chance to re-initialize it in notifier. addrconf_init() is called after ip6_route_init(), which means we have no chance to correct it. Fix it by moving this initialization explicitly after ipv6_add_dev(init_net.loopback_dev) in addrconf_init(). Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud