From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B17AAC4CECE for ; Mon, 14 Oct 2019 10:58:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 76929207FF for ; Mon, 14 Oct 2019 10:58:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cwPFz1h2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76929207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kvjR3KCIih5BzlwjiEbls5dEKvX3MluO0a/QRnSQZJw=; b=cwPFz1h2D/Hjs2LJ2WLkBTSFt GxkBPQJ9L1LR/7ROSnszCvi8PMfT7CZWayIc1qpG60+078xCHayV0oaxtnOi2WFvM6BOHbYgZdsrH 9Li6V83jxL8JQWQra5nVESEdh/sRNsg6MFL+RuL//b5jZ39xZ2sOQ+AcKHvbXHrz0ordHzDb4BTX8 bzCCa3jZmy0OpMCO05hubLi4kh1v5ve6nubfuOEzEU60pGD3kfFP49u+1ZYN45Ccfu4p5iNjn3JVE ctY/mmQ70HExaQBJ/OSB9auam7Skj+16ZsBYLwwWek+ZpGrJT+c6mb5uI5A6k+/12dRRGxssCB5tD 4JAJ/YwGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iJy3r-000398-8h; Mon, 14 Oct 2019 10:58:47 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iJy3n-00033h-6i for linux-arm-kernel@lists.infradead.org; Mon, 14 Oct 2019 10:58:45 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7CD6499825EADBBABE62; Mon, 14 Oct 2019 18:58:36 +0800 (CST) Received: from [127.0.0.1] (10.202.227.179) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Mon, 14 Oct 2019 18:58:29 +0800 Subject: Re: [PATCH 0/3] arm64: defconfig: set/unset for allmodconfig To: Anders Roxell , , References: <20190926193030.5843-1-anders.roxell@linaro.org> From: John Garry Message-ID: <507325a3-030e-2843-0f46-7e18c60257de@huawei.com> Date: Mon, 14 Oct 2019 11:58:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190926193030.5843-1-anders.roxell@linaro.org> X-Originating-IP: [10.202.227.179] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191014_035843_823832_8E2835D1 X-CRM114-Status: GOOD ( 16.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux@armlinux.org.uk, "Guohanjun \(Hanjun Guo\)" , Olof Johansson , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 26/09/2019 20:30, Anders Roxell wrote: > Hi, > > I'm trying to get an allmodconfig kernel to boot. The way I configure > the kernel is: > 'make allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig' > allmodconfig will use the KCONFIG_ALLCONFIG file as the base and then > turn the rest into modules. > > The idea behind using the defconfig as base and then configure the rest > as modules is to get a bootbable kernel that have as many features > turned on as possible. That will make it possible to run as wide a > range of testsuites as possible on a single kernel. > > These patches makes it possible to boot a LE kernel. JFYI, the CMDLINE_FORCE and CPU_BIG_ENDIAN changes only allow the 5.4-rc3 allmodconfig kernel to start to boot, but finally die, on my arm64 ACPI-based system. There is a lot of complaining from the kernel during its *10 minutes* of booting, like this ... 39.993176][ T1] BUG: KASAN: use-after-free in ghes_edac_unregister+0x28/0x70 [ 39.993187][ T1] Read of size 8 at addr ffff00235a099bdc by task swapper/0/1 [ 39.993195][ T1] [ 39.993209][ T1] CPU: 65 PID: 1 Comm: swapper/0 Tainted: G W 5.4.0-rc3+ #1133 [ 39.993218][ T1] Hardware name: Huawei D06 /D06, BIOS Hisilicon D06 UEFI RC0 - V1.16.01 03/15/2019 [ 39.993227][ T1] Call trace: [ 39.993239][ T1] dump_backtrace+0x0/0x298 [ 39.993250][ T1] show_stack+0x20/0x30 [ 39.993262][ T1] dump_stack+0x190/0x21c [ 39.993275][ T1] print_address_description.isra.6+0x80/0x3d0 [ 39.993286][ T1] __kasan_report+0x174/0x23c [ 39.993298][ T1] kasan_report+0xc/0x18 [ 39.993310][ T1] __asan_load8+0xa4/0xb0 [ 39.993321][ T1] ghes_edac_unregister+0x28/0x70 [ 39.993333][ T1] ghes_remove+0x274/0x2a0 [ driver_probe_device+0x190/0x1f0 [ 39.993378][ T1] device_driver_attach+0x7c/0xb0 [ 39.993389][ T1] __driver_attach+0x1b8/0x1d0 [ 39.993401][ T1] bus_for_each_dev+0xf8/0x190 [ 39.993411][ T1] driver_attach+0x34/0x40 [ 39.993422][ T1] bus_add_driver+0x1d8/0x340 and then finally a watchdog timeout panic due to a hung task: [ 624.246846][ T1143] kobject: '(null)' ((____ptrval____)): calling ktype release [ 624.263168][ T723] async_synchronize_cookie_domain+0x194/0x288 [ 624.269210][ T723] async_synchronize_cookie+0x28/0x38 [ 624.274473][ T723] async_port_probe+0x70/0xa8 [ 624.278833][ T850] kobject: '(null)' ((____ptrval____)): kobject_cleanup, parent (____ptrval____) [ 624.278844][ T1157] kobject: '(null)' ((____ptrval____)): kobject_cleanup, parent (____ptrval____) [ 624.278856][ T1157] kobject: '(null)' ((____ptrval____)): calling ktype release [ 624.279046][ T723] async_run_entry_fn+0x118/0x340 [ 624.287997][ T850] kobject: '(null)' ((____ptrval____)): calling ktype release [ 624.296975][ T723] process_one_work+0x7b8/0xdb8 [ 624.296989][ T723] worker_thread+0x414/0x6b8 [ 624.325726][ T723] kthread+0x1d4/0x1f0 [ 624.329684][ T723] ret_from_fork+0x10/0x18 [ 624.334007][ T723] INFO: task kworker/u195:4:1019 blocked for more than 121 seconds. [ 624.341871][ T723] Tainted: G B W 5.4.0-rc3+ #1133 [ 624.342853][ T415] kobject: '(null)' ((____ptrval____)): kobject_cleanup, parent (____ptrval____) [ 624.348427][ T723] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 624.348439][ T723] kworker/u195:4 D28496 1019 2 0x00000028 [ 624.357420][ T415] kobject: '(null)' ((____ptrval____)): calling ktype release [ 624.365968][ T723] Workqueue: events_unbound async_run_entry_fn [ 624.385519][ T723] Call trace: [ 624.388696][ T723] __switch_to+0x300/0x3e8 [ 624.393000][ T723] __schedule+0xc6c/0xd38 [ 624.397217][ T723] schedule+0x10c/0x168 [ 624.401262][ T723] async_synchronize_cookie_domain+0x194/0x288 [ 624.406842][ T950] kobject: '(null)' ((____ptrval____)): kobject_cleanup, parent (____ptrval____) [ 624.407300][ T723] async_synchronize_cookc_port_probe+0x5c/0xa8 [ 624.421511][ T723] async_run_entry_fn+0x118/0x340 [ 624.438286][ T723] process_one_work+0x7b8/0xdb8 [ 624.443027][ T723] worker_thread+0x414/0x6b8 [ 624.447504][ T723] kthread+0x1d4/0x1f0 [ 624.451462][ T723] ret_from_fork+0x10/0x18 [ 624.455932][ T723] INFO: lockdep is turned off. [ 624.460587][ T723] Kernel panic - not syncing: hung_task: blocked tasks [ 624.467292][ T723] CPU: 48 PID: 723 Comm: khungtaskd Tainted: G B W 5.4.0-rc3+ #1133 [ 624.476248][ T723] Hardware name: Huawei D06 /D06, BIOS Hisilicon D06 UEFI RC0 - V1.16.01 03/15/2019 [ 624.485461][ T723] Call trace: [ 624.488603][ T723] dump_backtrace+0x0/0x298 [ 624.492958][ T723] show_stack+0x20/0x30 [ 624.496966][ T723] dump_stack+0x190/0x21c [ 624.501148][ T723] panic+0x274/0x5a8 [ 624.504898][ T723] watchdog+0xa44/0xa88 [ 624.508906][ T723] kthread+0x1d4/0x1f0 [ 624.512827][ T723] ret_from_fork+0x10/0x18 [ 624.517387][ T723] SMP: stopping secondary CPUs [ 624.522033][ T723] Kernel Offset: disabled [ 624.526215][ T723] CPU features: 0x0002,23208a38 [ 624.530915][ T723] Memory Limit: none [ 624.534815][ T723] ---[ end Kernel panic - not syncing: hung_task: blocked tasks ]--- I think that I'm opening a can of worms here... John > > Cheers, > Anders > > Anders Roxell (3): > arm64: configs: defconfig: enable DEBUG_PREEMPT and FTRACE > arm64: configs: unset CMDLINE_FORCE > arm64: configs: unset CPU_BIG_ENDIAN > > arch/arm64/configs/defconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel