Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2998788AbdD1PJy (ORCPT ); Fri, 28 Apr 2017 11:09:54 -0400 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:11204 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2998714AbdD1PJo (ORCPT ); Fri, 28 Apr 2017 11:09:44 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Fri, 28 Apr 2017 18:09:31 +0300 From: Yury Norov To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net Subject: Re: arm64: next-20170428 hangs on boot Message-ID: <20170428150931.iyoewmc5qs55aw3t@yury-N73SV> References: <20170428132429.c3dlxbmt7iqs2isl@yury-N73SV> <20170428145233.GB5292@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170428145233.GB5292@leverpostej> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.39.114] X-ClientProxiedBy: VI1P194CA0005.EURP194.PROD.OUTLOOK.COM (10.175.178.15) To BY1PR0701MB1271.namprd07.prod.outlook.com (10.160.108.17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55b36c55-22a9-40fa-2251-08d48e489973 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1271; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;3:+MhDD2WtqHGaktKOaUhARSJpNK4PWMmcNOV3qVUcjvM7j/OTW5Gn5UYQgqgucA/TzA6qny8QKj2DYOD/loA10rKmddc9WPm77Zl92dlWqyYl/89ki1JNBkb4V4/4ItSNkNpfkic7Vv3oAhRyWghLEEARxCKe2AC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HqpcVPH8zvnwxwrRZdcZGfo/Htp6cJwq6c4wutDM/3MJrKieeyYFne1nRIjSMj499tJhgcOzo9Jh3+t4tJL4JJemBGOoh7PVlw3T7ZN5nQZfsdjvOqorTAF9NAqkEtfa7qYhbcmDvzorjPyMnXpkjs4AARACh+p49/lklAYA+sVL9t7aw/mC77MRJW8ihDSbSGGHx4YQreS/pvUIGVNkIZYsvX2QzLsg4Xho55bjOGFbP1CvO88ZjOtEelfS24bEYXqDGKBRSerNKGbVflLqy/4tULjK1qNjRGEBonDsoTfDUcCVkD/suVdW6oO2SySLWQCdBLBX5wZKddMFfApoWP2ElN2/XwoW/0QwY9lJc8cGAbT3THc4b7kYlHybXOGZgjuj4hQ7Ipc+mGEBAsGIzJZDlxItCpWEaQjJTsB2qobdrpg1bMJU6NfLiXhlD9s8fp6+4b4AaBIdAN0Zl4JOHU7ZDLLcO92Ytw804z+saxGmWmE9o6P1js/NmiWQfLg77ujvfpsnb0AB+DhEgz7odAzU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(6041248)(20161123558100)(201703131423075)(201703011903075)(201702281528075)(201703061421075)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148);SRVR:BY1PR0701MB1271;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1271; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;4:gEzpyfa6kohyJT+wT8wiEOgWZkworgw89gJNGd5U2bxUVdl29QyfuO/fWNAUZ+mKNPe0IZKzBl9/lpBirrXulW24TfyENdlfsTveuYfxHAsf4VO/maPeVeXS8o5npRXV+yok9ixeb512jBEwVoHXmaEGLN752mJpoXDKMtHPojyCVloomaaCO/3+HaDIrLyPL9/SuzZnfk6mABez4i9Ux3ajdwzf7wQXDczG8qChG9u0iU/EtoE8SoISc9OYmkDXZi7NSrIBRBxw07VC4MXuRzSy1MVSCUW+fDcoRa0o4cMqhbqhgZHjucQCrBvu/p7hOoNqTvNN6+TWPtCrJ8AW4/XQlt9cK3wnshaQnWQ99I1RdPMMb2uafFFPyIQb+ildPE6lIfdHE6fEp88Fw/eOSoGnkyXwyc1qW6YZ9E+C5265xtOXd+s0be49xSSt4nD8R05cViTcg/9j34tP/7jZ9N2nJmh73qK55Txme3oYVnT+8aIKExI5AH+bUsbg90585IZ/VlOGjrFTLKlqnn+JXVJSY0CqQkSMgv3wSj04E2cp7U6I3j3bGjjsHCF0WhD8DEssMjz/X1IFxwksIL4jQJvf1IPtF2UeyMJ4R7ZRwr+poKNEckh4hkBrVFU+oHLLxM25EWSytIcY4sOVbEjkinTl99+iWpHbuG3AuBdFUa0oE/S4cnT6bBNEoAE9gk1SEU+RXv2X3vlX3MhOi0jBuhhZtshnEkjaLv0v6tKz7rmA5xmOAiMXH+csXFaN+cylOJVjgpDdTDo82RLHb0ekaA== X-Forefront-PRVS: 029174C036 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(979002)(6069001)(6009001)(39860400002)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(24454002)(53754006)(6246003)(38730400002)(110136004)(6486002)(6496005)(9686003)(25786009)(53936002)(50986999)(54356999)(76176999)(66066001)(47776003)(4001350100001)(189998001)(5660300001)(42882006)(6916009)(6666003)(2950100002)(7736002)(305945005)(81166006)(8676002)(229853002)(33646002)(76506005)(42186005)(3846002)(23726003)(1076002)(4326008)(50466002)(2906002)(6116002)(83506001)(33716001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1271;H:localhost;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1271;23:sEhe7shv3Xkwzs7DnLYO/uz9m+7k0TF9uWhMQT4?= =?us-ascii?Q?j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/xUqFIElgZgSsvdEqzquKxh8VuMMoyDlbXHnfPXVVeJl8k4sU6tYKuMqJ4D5kt41SfK4ZxvyWhcYJdW5e/LiDWWcbS10VCfyrRi8HtlmAFIY1OwTkX7pLzJ93A5WvjPUcbFSygv7t5t1GDz1w==;24:6BNW19o3oCrb0g4leuCSCubrN+Mo9CnjBUGu6L9kwaxjbD37zGR1PZPxYlHM3EY03t972URCOlcKTEzpM9O6pLVAp2OYllfFxLWySHj+dIo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;7:esnDHi9LZlB5U6OlqL1xRUIoMLDoFHOL3zAY/xyoML2vQaCBf4JsJF35GzYYerPCLflfnWltFi5RuP+pY7aB67PvpLmVFgvV8SDBn5U/fkqLmL8DGObMOnwU7p8M4pvM29BtjdVUZnVJ3KBMo/o6ofR+/1TuRqtvg/wGXDF5IRiM0ynLAjSzzSXN4JJc+EeAdvYAaxBkDIfWiiNpKM9JBtvZFiv7NKRj88EsVgyK4rmo+sbB0foa+wHC9hvKhpDEMXut4Ln4fsNeUvy4q1l4SxwxF81A6+F2EDXtfJBKCiKXUv4E2RktD9y3mMaXKrjDc5taHlsrJy9LHsprOuTKTQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2017 15:09:42.2612 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1271 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4107 Lines: 92 On Fri, Apr 28, 2017 at 03:52:34PM +0100, Mark Rutland wrote: > On Fri, Apr 28, 2017 at 04:24:29PM +0300, Yury Norov wrote: > > Hi all, > > Hi, > > [adding Dave Miller, netdev, lkml] thanks > > On QEMU the next-20170428 hangs on boot for me due to kernel panic in > > rtnetlink_init(): > > > > void __init rtnetlink_init(void) > > { > > if (register_pernet_subsys(&rtnetlink_net_ops)) > > panic("rtnetlink_init: cannot initialize rtnetlink\n"); > > > > ... > > } > > I see the same thing with a next-20170428 arm64 defconfig, on a Juno R1 > system: > > [ 0.531949] Kernel panic - not syncing: rtnetlink_init: cannot initialize rtnetlink > [ 0.531949] > [ 0.541271] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc8-next-20170428-00002-g6ee3799 #10 > [ 0.550307] Hardware name: ARM Juno development board (r1) (DT) > [ 0.556332] Call trace: > [ 0.558833] [] dump_backtrace+0x0/0x238 > [ 0.564332] [] show_stack+0x14/0x20 > [ 0.569477] [] dump_stack+0x9c/0xc0 > [ 0.574622] [] panic+0x11c/0x28c > [ 0.579505] [] rtnetlink_init+0x2c/0x1d0 > [ 0.585092] [] netlink_proto_init+0x14c/0x17c > [ 0.591119] [] do_one_initcall+0x38/0x120 > [ 0.596796] [] kernel_init_freeable+0x1a0/0x240 > [ 0.603003] [] kernel_init+0x10/0x100 > [ 0.608324] [] ret_from_fork+0x10/0x50 > [ 0.613736] SMP: stopping secondary CPUs > [ 0.617738] ---[ end Kernel panic - not syncing: rtnetlink_init: cannot initialize rtnetlink > > If this isn't a known issue, it would be worth trying to bisect this. The exact function that fails is: include/linux/rhashtable.h static inline void *__rhashtable_insert_fast( struct rhashtable *ht, const void *key, struct rhash_head *obj, const struct rhashtable_params params, bool rhlist) { ... data = ERR_PTR(-E2BIG); if (unlikely(rht_grow_above_max(ht, tbl))) goto out; ... out: spin_unlock_bh(lock); rcu_read_unlock(); return data; } And the backtrace: #0 __rhashtable_insert_fast (rhlist=, params=..., obj=, key=, ht=) at ./include/linux/rhashtable.h:803 #1 rhashtable_lookup_insert_key (params=..., obj=, key=, ht=) at ./include/linux/rhashtable.h:980 #2 __netlink_insert (sk=, table=) at net/netlink/af_netlink.c:484 #3 netlink_insert (sk=0xffff80003da85000, portid=0) at net/netlink/af_netlink.c:548 #4 0xffff00000876c5a0 in __netlink_kernel_create (net=, unit=0, module=0x0, cfg=0xffff80003d84fc60) at net/netlink/af_netlink.c:1996 #5 0xffff000008756704 in netlink_kernel_create (cfg=, unit=, net=) at ./include/linux/netlink.h:62 #6 rtnetlink_net_init (net=0xffff000008c7c100 ) at net/core/rtnetlink.c:4175 #7 0xffff000008737a2c in ops_init (ops=0xffff000008c7e268 , net=0xffff000008c7c100 ) at net/core/net_namespace.c:117 #8 0xffff000008738704 in __register_pernet_operations (ops=, list=) at net/core/net_namespace.c:818 #9 register_pernet_operations (list=, ops=0xffff000008c7e268 ) at net/core/net_namespace.c:892 #10 0xffff0000087387fc in register_pernet_subsys (ops=0xffff000008c7e268 ) at net/core/net_namespace.c:934 #11 0xffff000008b5b9b8 in rtnetlink_init () at net/core/rtnetlink.c:4195 #12 0xffff000008b5be08 in netlink_proto_init () at net/netlink/af_netlink.c:2730 #13 0xffff000008083158 in do_one_initcall (fn=0xffff000008b5bcc4 ) at init/main.c:795 #14 0xffff000008b20d04 in do_initcall_level (level=) at init/main.c:861 #15 do_initcalls () at init/main.c:869 #16 do_basic_setup () at init/main.c:887 Yury