Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp384795rwn; Thu, 8 Sep 2022 03:12:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oJb2FyJbn/QfqPUyloWTKuFp0q/UOUyBjAfVdHb0DSjd9OvNrUL7xObF7exvfZ+b044+S X-Received: by 2002:a17:90b:3901:b0:1fd:73f8:1922 with SMTP id ob1-20020a17090b390100b001fd73f81922mr3404044pjb.211.1662631922557; Thu, 08 Sep 2022 03:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662631922; cv=none; d=google.com; s=arc-20160816; b=hWUPIOVqBHoDsXKZtntfhh79jp8q9E0gCdMRW0Ibft30wNAqw48lxPED/T6NZ0+jLS bk3UzC3AiZIhn+1fBT6p7JEQcv+pb2c0PwcAXvAKVXyNHezhnf1mwFLVm7cCiTvDpqBa 4oWkJOThs+lSGQBurNUONI3o/g5DlOu8C0uugvwC3E1QxxBDjvcSj41Aj83TTRszYKc2 9vUXTMxx0Mw4FuZK174zprfCIaKM4BiOkEogY2v6PFocID0FzTh9/p6QQty2EHqItGTt YluANXEjV2QZejo38tjUvURyzRUC9S/6b52khaO+SCZNrMdbIrmu5kXinFYFqfOFzvbX xG/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=W5PZXmavuBYslek/cAIvXsmuKu4OIb3TwpE8Z6uf/Zg=; b=IYX5pcPVLpikKKeTccdrvbx/wKBXp0AzH7jiT81K0NdcJu17VmBnTtT6vcRc/yBr16 p6KOSgq4InGjRUBT5hTiGzRLzoPmyaSGschi8TCFNg1hSZ72KtO02wYO5gvCxcFAMQ8q dDxp2/TumzCcSautCVw7K0sSuPt+84ZUdmnRrrHNQ4Cj9tf38LoQu3qEUZtP8EbultC1 5Tka7hd8Eo/310e4AkoI3AitGQ7/VDJRjE2waBCkp8+cDU6IPAuP+iotk7CyM0Bdozy9 WRAqEOyYB4NxW6aRkXDdlqSJUoY/DaawKMoFm+xpp/8+CTxMCdZe/IxlcSBylx8xIoHI MHOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t205-20020a635fd6000000b00434a7d015ddsi8405375pgb.204.2022.09.08.03.11.50; Thu, 08 Sep 2022 03:12:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbiIHJyz (ORCPT + 99 others); Thu, 8 Sep 2022 05:54:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbiIHJyd (ORCPT ); Thu, 8 Sep 2022 05:54:33 -0400 X-Greylist: delayed 2404 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 08 Sep 2022 02:53:54 PDT Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F067E4DCE; Thu, 8 Sep 2022 02:53:54 -0700 (PDT) Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1oWCgK-0001r3-TX; Thu, 08 Sep 2022 10:14:40 +0200 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1oWCgH-00085i-L9; Thu, 08 Sep 2022 10:14:37 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (1057822)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1oWCg9-0000HB-VA; Thu, 08 Sep 2022 10:14:30 +0200 Message-ID: Date: Thu, 8 Sep 2022 11:14:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: RaspberryPi4 Panic in net_ns_init() To: Maxime Ripard , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Arnd Bergmann , Olof Johansson , Catalin Marinas , Will Deacon , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220831144205.iirdun6bf3j5v6q4@houat> <20220905111832.73nqtlzpiuwpj7lx@houat> Content-Language: en-US From: Martin Roukala In-Reply-To: <20220905111832.73nqtlzpiuwpj7lx@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/5/22 14:18, Maxime Ripard wrote: > On Wed, Aug 31, 2022 at 04:42:05PM +0200, Maxime Ripard wrote: >> Sorry for the fairly broad list of recipients, I'm not entirely sure >> where the issue lies exactly, and it seems like multiple areas are >> involved. >> >> Martin reported me an issue discovered with the VC4 DRM driver that >> would prevent the RaspberryPi4 from booting entirely. At boot, and >> apparently before the console initialization, the board would just die. >> >> It first appeared when both DYNAMIC_DEBUG and DRM_VC4 were built-in. We >> started to look into what configuration would trigger it. >> >> It looks like a good reproducer is: >> >> ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j18 defconfig mod2yesconfig >> ./scripts/config -e CONFIG_DYNAMIC_DEBUG >> ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j18 olddefconfig > > Interestingly, this was making the kernel Image cross the 64MB boundary. > I've compiled the same configuration but with -Os, and then tried to > boot the failing configuration with U-Boot instead of the RaspberryPi > firmware, and both of them worked. I guess that leaves us with a > bootloader bug, and nothing related to Linux after all. > > Sorry for the noise, > Maxime Thanks a lot for figuring this out, Maxime! The idea to use -Os is much nicer than what I was going for: padding a working kernel with 0s at the end! I unfortunately did not try to reproduce your success with u-boot, but I'll get to it in the near future. Thanks again to everyone involved for all the help and support! Martin