Files
i2som-imx-linux/include/net
WANG Cong ecbd3ed2dd ipv6: initialize route null entry in addrconf_init()
[ Upstream commit 2f460933f5 ]

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>
2017-05-14 14:00:21 +02:00
..
2016-09-27 21:15:21 -04:00
2016-06-27 15:06:17 -04:00
2016-07-08 12:20:57 +02:00
2016-08-26 11:55:18 -07:00
2016-09-23 08:38:50 -04:00
2016-10-14 10:59:15 -04:00
2016-08-17 19:36:23 -04:00
2016-10-26 08:01:07 +02:00
2016-10-03 02:00:22 -04:00
2016-10-04 02:11:51 -04:00
2016-07-08 12:20:57 +02:00
2016-09-10 23:12:53 -07:00
2016-11-03 16:16:50 -04:00
2016-10-29 20:56:31 -04:00