Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3196933rwe; Mon, 29 Aug 2022 07:27:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GbGycUeMBoPtI9pLBUR9aI4OYVYDVo43deqt20osBKfsEgVFIyzEJlFJuVkQf1uX09d1J X-Received: by 2002:a17:906:fe09:b0:73d:90ae:f801 with SMTP id wy9-20020a170906fe0900b0073d90aef801mr12852756ejb.699.1661783228464; Mon, 29 Aug 2022 07:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661783228; cv=none; d=google.com; s=arc-20160816; b=EVJZIY1RufmJG8qFTPg9+hGjlcSKk8P7zrmIzYUWTPizCMqCmsutSoYYJ0JyVUNkIN 8TBREuaQqD053Xppr4q0lMMZm9Z06a38ys0ZogNdyI0gy5cNoMPqdtrQaMFvPx/+0q90 VFAtWGS6bvWbZAL2a0tTLMETI2Gaal/XUTUIdshGAqo+eS97K7MXui+tUhiufj1XgEdm h0mXSGeQb8b8rG44k+JaxwKamB3cbeUAvvmkPpTKrNTDTFDfiS9tAEismqYNmvlr+5q8 tEajoqHVMxgJ+UOYbTnU1xp5TBC0dQptBRq7qV4B9qC/3KHtYOtAmy424qm3tUEJoMj4 bspA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=v69tTUmgqNp8s/P9/QoxV+PolameQmrUPg33X3IuxEk=; b=z3yn448fivixW5XB979SFJK1rYDFo3rD3ZIxu36Uu7ND82IeQ2qXYMz6OcBD/lc2d4 yXCEb/smR71OStfEaM0zKO/05GB+/4U9zNhJgdhG4ZPlslcZ8JKPnoJ1TZqnZSGqNPZ/ LKcUNPVOv3seyjWNtEnZ7na1UZrD/VSgJqNuZQf+BHm6KNvs1ZxqxAIi4p+7TmdjcbT/ snHVQO7/axheL37LUYUeN8Ee1jgTtJ83OqF4LRooEHsb6Jx5MC4aLcoCthU6oVocBxOi VgzW1VtfAZD1NIM0iMMnZ5cy/hVz5X52NwWnUTVJiV9NQ71YgEC+gTGFV9fO60GXAL+p 7gmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TC14I5jv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v30-20020a50a45e000000b00447c8bf393dsi112705edb.229.2022.08.29.07.26.42; Mon, 29 Aug 2022 07:27:08 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TC14I5jv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbiH2NzO (ORCPT + 99 others); Mon, 29 Aug 2022 09:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiH2NzM (ORCPT ); Mon, 29 Aug 2022 09:55:12 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5543B15A0C; Mon, 29 Aug 2022 06:55:02 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27TCcj3x006867; Mon, 29 Aug 2022 15:54:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=v69tTUmgqNp8s/P9/QoxV+PolameQmrUPg33X3IuxEk=; b=TC14I5jv/+n+kRtiVAqEffi4h+O4AH0xAqerxF8NOg45sjHE6OuiRkksXN3TA70fRm44 DKuMB5u43s/QL+q8nJ0UloZGZGTMlNhPwCjxaJZKfGDPFRwmpCWga1fg7wqjOvN57xbF Vr1Qd1lxXmwBC2wx3xLiAw62HleQJXMkKffn1x6eIBDgLEqhwBsm/zmX3/Qw94DSl3Ha 84b5T16JMzGEzD5sQgJ1XV4hOWwv4gUnR00rwXE4fHG5l4x7hV6Xp9IlHqESQ9BtT47f 9i+HRUM+iEQMIQGo2pIvLFMtcWMs/Phrwl2A445bykrNwLzjKabT45JHTW/nP1pPsJSn 5w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3j78d9abe5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 15:54:40 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2D590100034; Mon, 29 Aug 2022 15:54:39 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2836722FA2E; Mon, 29 Aug 2022 15:54:39 +0200 (CEST) Received: from [10.201.20.201] (10.75.127.45) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.7; Mon, 29 Aug 2022 15:54:38 +0200 Message-ID: <99355482-960a-4669-19b5-926a7cd76c65@foss.st.com> Date: Mon, 29 Aug 2022 15:54:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [Regression] Bug 216420 - Unable to handle kernel NULL pointer dereference at virtual address 00000008 Content-Language: en-US From: Yann Gautier To: Thorsten Leemhuis , Russell King , Ulf Hansson CC: , LKML , "regressions@lists.linux.dev" , , References: <29a5c3e3-a590-01dd-1a2b-8415cae4a292@leemhuis.info> <9d431289-085b-5619-00f8-95d692183e28@foss.st.com> In-Reply-To: <9d431289-085b-5619-00f8-95d692183e28@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-29_07,2022-08-25_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 8/29/22 13:50, Yann Gautier wrote: > On 8/28/22 13:44, Thorsten Leemhuis wrote: >> Hi, this is your Linux kernel regression tracker speaking. >> >> I noticed a regression report in bugzilla.kernel.org. As many (most?) >> kernel developer don't keep an eye on it, I decided to forward it (I >> hope I picked the right recipients for this mail): >> >>>   frc.gabriel@gmail.com 2022-08-27 09:36:06 UTC >>> >>> Created attachment 301682 [details] >>> full dmesg output >>> >>> Hi, good morning! >>> >>> my device is currently crashing during boot with kernel 6.0.0-rc2. I >>> also tried next-20220826 and the outcome is the same. >>> >>> The full dmesg log can be found attached on crash-boot.txt file. >>> >>> Thank you and have a good day, >>> Gabriel Francisco >> >>  From that dmesg: >> >>> [    2.279556] 8<--- cut here --- >>> [    2.279734] s4: Bringing 0uV into 815000-815000uV >>> [    2.284139] Unable to handle kernel NULL pointer dereference at >>> virtual address 00000008 >>> [    2.288082] s1: Bringing 0uV into 1300000-1300000uV >>> [    2.292017] [00000008] *pgd=00000000 >>> [    2.300784] s2: Bringing 0uV into 2150000-2150000uV >>> [    2.304801] Internal error: Oops: 5 [#1] SMP ARM >>> [    2.309033] s3: Bringing 0uV into 1800000-1800000uV >>> [    2.313196] Modules linked in: >>> [    2.313208] CPU: 2 PID: 7 Comm: kworker/u8:0 Not tainted 6.0.0-rc2 >>> #325 >>> [    2.313221] Hardware name: Generic DT based system >>> [    2.318516] l1: Bringing 0uV into 1225000-1225000uV >>> [    2.322655] Workqueue: events_unbound deferred_probe_work_func >>> [    2.326162] l2: Bringing 0uV into 1200000-1200000uV >>> [    2.332290] PC is at mmci_probe+0x10/0x9b0 >>> [    2.332308] LR is at amba_probe+0xf0/0x174 >>> [    2.337399] l3: Bringing 0uV into 1225000-1225000uV >>> [    2.341927] pc : []    lr : []    psr: 80000013 >>> [    2.348097] l4: Bringing 0uV into 1225000-1225000uV >>> [    2.352601] sp : f0839dd0  ip : fffffff8  fp : c1903248 >>> [    2.352609] r10: c1448b9c  r9 : fffffdfb  r8 : 00000000 >>> [    2.352616] r7 : c1903000  r6 : eefe45bc  r5 : 00000000  r4 : >>> c1903100 >>> [    2.357020] l5: Bringing 0uV into 1800000-1800000uV >>> [    2.360849] r3 : c0b14e00  r2 : 00000000  r1 : 00000000  r0 : >>> c1903000 >>> [    2.365896] l6: Bringing 0uV into 1800000-1800000uV >>> [    2.371873] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM >>> Segment none >>> [    2.377217] l7: Bringing 0uV into 1800000-1800000uV >>> [    2.381944] Control: 10c5787d  Table: 0020406a  DAC: 00000051 >>> [    2.387543] l8: Bringing 0uV into 1800000-1800000uV >>> [    2.393749] Register r0 information: slab kmalloc-1k start >>> c1903000 pointer offset 0 size 1024 >>> [    2.398766] l9: Bringing 0uV into 1800000-1800000uV >>> [    2.405119] >>> [    2.405124] Register r1 information: NULL pointer >>> [    2.405137] Register r2 information: >>> [    2.410141] l10: Bringing 0uV into 1800000-1800000uV >>> [    2.417186]  NULL pointer >>> [    2.417193] Register r3 information: non-slab/vmalloc memory >>> [    2.417205] Register r4 information: >>> [    2.422124] l11: Bringing 0uV into 1300000-1300000uV >>> [    2.427776]  slab kmalloc-1k start c1903000 pointer offset 256 >>> size 1024 >>> [    2.432756] l12: Bringing 0uV into 1800000-1800000uV >>> [    2.441145] >>> [    2.446335] l13: Bringing 0uV into 1800000-1800000uV >>> [    2.447655] Register r5 information: >>> [    2.452735] l14: Bringing 0uV into 1800000-1800000uV >>> [    2.455902]  NULL pointer >>> [    2.461123] l15: Bringing 0uV into 2050000-2050000uV >>> [    2.463368] Register r6 information: non-slab/vmalloc memory >>> [    2.463380] Register r7 information: slab kmalloc-1k start c1903000 >>> [    2.469373] l16: Bringing 0uV into 2700000-2700000uV >>> [    2.472656]  pointer offset 0 size 1024 >>> [    2.472671] Register r8 information: >>> [    2.477868] l17: Bringing 0uV into 2850000-2850000uV >>> [    2.484288]  NULL pointer >>> [    2.484294] Register r9 information: non-paged memory >>> [    2.484305] Register r10 information: >>> [    2.489490] l18: Bringing 0uV into 2850000-2850000uV >>> [    2.490712]  non-slab/vmalloc memory >>> [    2.495937] l19: Bringing 0uV into 3000000-3000000uV >>> [    2.499217] Register r11 information: >>> [    2.504461] l20: Bringing 0uV into 2950000-2950000uV >>> [    2.506683]  slab kmalloc-1k >>> [    2.512149] l21: Bringing 0uV into 2950000-2950000uV >>> [    2.517361]  start c1903000 pointer offset 584 size 1024 >>> [    2.517382] Register r12 information: >>> [    2.523805] l22: Bringing 0uV into 3000000-3000000uV >>> [    2.528556]  non-paged memory >>> [    2.532414] l23: Bringing 0uV into 3000000-3000000uV >>> [    2.535937] Process kworker/u8:0 (pid: 7, stack limit = 0x(ptrval)) >>> [    2.541160] l24: Bringing 0uV into 3075000-3075000uV >>> [    2.543402] Stack: (0xf0839dd0 to 0xf083a000) >>> [    2.543413] 9dc0:                                     c1903000 >>> c1903000 00000000 7ff15a00 >>> [    2.543425] 9de0: 60172703 00000000 c1903000 c1903000 20000013 >>> c1903084 c1903000 c1903100 >>> [    2.627929] 9e00: 00000000 eefe45bc c1903000 00000000 fffffdfb >>> c1448b9c c1903248 c089036c >>> [    2.635613] 9e20: c089027c 00000000 c1903000 c1448b9c c147a260 >>> 00000000 c14672a0 c180f00d >>> [    2.643773] 9e40: c18db480 c0940584 c1903000 00000000 c1903000 >>> c147a260 c1448b9c 0000000d >>> [    2.651933] 9e60: 00000000 c0940950 c29b4380 c33d7380 c14c1fe4 >>> c1448b9c c1903000 00000000 >>> [    2.660092] 9e80: c14672a0 c180f00d c18db480 c0940ae4 fffffdfb >>> c1448b9c f0839ee4 c1903000 >>> [    2.668252] 9ea0: 00000000 c0941190 00000000 f0839ee4 c09410ec >>> c147a260 00000000 c093e658 >>> [    2.676412] 9ec0: c14672a0 c19dab6c c1b44fb8 cb719486 c1903000 >>> c1903044 00000001 c0940d9c >>> [    2.684572] 9ee0: c147a260 c1903000 00000001 cb719486 c1903000 >>> c1903000 c13f37dc c093f7a0 >>> [    2.692731] 9f00: c1903000 c142aeec c142af00 c093fc94 c142af1c >>> c1803780 c1806800 c180f000 >>> [    2.700890] 9f20: 00000000 c033dc60 c1803780 c18db480 c1806800 >>> c1806800 c180681c c1803780 >>> [    2.709050] 9f40: c1806800 c1803798 c180681c c1303d40 c18db480 >>> 00000088 c1806800 c033e148 >>> [    2.717211] 9f60: c1803780 c1303d40 f0821ea0 c18b7040 c18db480 >>> c033df2c c1803780 c18b7400 >>> [    2.725369] 9f80: f0821ea0 00000000 00000000 c03458ac c18b7040 >>> c03457dc 00000000 00000000 >>> [    2.733529] 9fa0: 00000000 00000000 00000000 c0300148 00000000 >>> 00000000 00000000 00000000 >>> [    2.741688] 9fc0: 00000000 00000000 00000000 00000000 00000000 >>> 00000000 00000000 00000000 >>> [    2.749850] 9fe0: 00000000 00000000 00000000 00000000 00000013 >>> 00000000 00000000 00000000 >>> [    2.758012]  mmci_probe from amba_probe+0xf0/0x174 >>> [    2.766161]  amba_probe from really_probe+0xe0/0x40c >>> [    2.770847]  really_probe from __driver_probe_device+0xa0/0x204 >>> [    2.775971]  __driver_probe_device from driver_probe_device+0x30/0xc0 >>> [    2.781612]  driver_probe_device from >>> __device_attach_driver+0xa4/0x11c >>> [    2.788209]  __device_attach_driver from bus_for_each_drv+0x80/0xcc >>> [    2.794633]  bus_for_each_drv from __device_attach+0xa8/0x1f0 >>> [    2.800881]  __device_attach from bus_probe_device+0x84/0x8c >>> [    2.806784]  bus_probe_device from deferred_probe_work_func+0x8c/0xd4 >>> [    2.812515]  deferred_probe_work_func from >>> process_one_work+0x1fc/0x4c8 >>> [    2.818854]  process_one_work from worker_thread+0x21c/0x540 >>> [    2.825275]  worker_thread from kthread+0xd0/0xec >>> [    2.831177]  kthread from ret_from_fork+0x14/0x2c >>> [    2.835775] Exception stack(0xf0839fb0 to 0xf0839ff8) >>> [    2.840465] 9fa0:                                     00000000 >>> 00000000 00000000 00000000 >>> [    2.845509] 9fc0: 00000000 00000000 00000000 00000000 00000000 >>> 00000000 00000000 00000000 >>> [    2.853668] 9fe0: 00000000 00000000 00000000 00000000 00000013 >>> 00000000 >>> [    2.861826] Code: e92d4ff0 e590803c e24dd02c e59061a0 (e5917008) >>> [    2.868280] ---[ end trace 0000000000000000 ]--- >> >> See the ticket for more details. >> >> I'd also like to add the report to the list of tracked regressions to >> ensure it's doesn't fall through the cracks in the end: >> >> #regzbot introduced: v5.19..v6.0-rc2 >> https://bugzilla.kernel.org/show_bug.cgi?id=216420 >> #regzbot ignore-activity >> >> Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) >> >> P.S.: As the Linux kernel's regression tracker I deal with a lot of >> reports and sometimes miss something important when writing mails like >> this. If that's the case here, don't hesitate to tell me in a public >> reply, it's in everyone's interest to set the public record straight. > > Hi, > > If I'm not wrong, the mmci driver shouldn't be probed for this platform. > So either there is something wrong with the device tree, or with the > AMBA bus driver. > > > Best regards, > Yann Maybe this is related (corrected?) with this patch: https://lkml.org/lkml/2022/8/27/164 Best regards, Yann