From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932565AbdEDCnz (ORCPT ); Wed, 3 May 2017 22:43:55 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:33871 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932404AbdEDCns (ORCPT ); Wed, 3 May 2017 22:43:48 -0400 Subject: Re: net/ipv6: GPF in rt6_device_match To: Cong Wang References: <4ef76406-8e05-ccdf-fefb-dc47d56c71c9@gmail.com> Cc: Andrey Konovalov , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev , LKML , Dmitry Vyukov , Kostya Serebryany , Eric Dumazet , syzkaller From: David Ahern Message-ID: <79157b41-2a13-6fda-ef31-c96f16850254@gmail.com> Date: Wed, 3 May 2017 20:43:44 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/3/17 5:35 PM, Cong Wang wrote: > Ah, we need: > > @@ -4024,7 +4027,7 @@ static struct pernet_operations ip6_route_net_late_ops = { > > static struct notifier_block ip6_route_dev_notifier = { > .notifier_call = ip6_route_dev_notify, > - .priority = 0, > + .priority = -10, /* Must be called after addrconf_notify!! */ > }; > It's not a notifier problem; the null_entry is created in ip6_route_init which is an init function. For network namespaces other than init_net, it is never initialized. See ip6_route_net_init.