Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2603599iob; Mon, 16 May 2022 01:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhlhkjXfBrxdGR6B3NsaaY6S34Ulh/dr5hxg2Ewf9Q+NhuljuHeS/3JdwQRPfBmympFKmK X-Received: by 2002:a7b:cb47:0:b0:393:dd9f:e64a with SMTP id v7-20020a7bcb47000000b00393dd9fe64amr25804077wmj.170.1652691080749; Mon, 16 May 2022 01:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652691080; cv=none; d=google.com; s=arc-20160816; b=mAgqt9hSM4XHbKr8PpKgnkUnDlBZefq61Ab7cHUTTTRQqZirlILRzexkks3+WtoqdC VgREQPfA4DvRdx3fYlVzMFfFVgESlvfLwsTuceEcFQ1ys8RKvHzfmVaAlDzm6gAJ18Cq RpMg52K8M90VPdBFBygQ7PLHYbrCZkipAK7+alQI8RPC77aR7Fi5u1R5Ky2T25WLN/Dm GWqGFakgBQHIkOyZ/yu8ZMPNC9vbAdJyotfTzPDNflW8PXc9AWG7jXiwwqWl29ZQyAvL QNq22AHIZ585ms75WHF78OxBj18vNzvLnVXF9fYUx7QThlj28R6cKhn3xav6SejoFdfG c80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=DzhN3BnlME0gVCV5cpXQl+tE2IObKTKJr6hWv/c1Sik=; b=CwlBUxK1ZHOEK8tnnSAVFptH2An+5weYxMhpie0mZBZUVdcK6RfUeFJFzrVrz15NVU U6DXpJ3vobJ8mxULvUhNg35g/fA+XuI/K67HhercCLxip6f67MGnAKd2XjOYmKGV7jTc Xa4+peDA3/sWFlimXi7jLa5tFnXMHW0ieKhQ0J3sGDu9pVRDl7VdhxLJW1YYIL5LwrK3 v7/Z9BfC/9c2gSoQUUMgZGFDPR0ocGpMOulvEu2PqsDhW/+fVAHCn/KSgLrVwTr1I5An Ke0nLJB/5Lga+5TP1XnrusIPAerdmJc2OaNkWfQuo6szM5oMZau7bxi+JudKh6atDPeZ ELJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nSBeQY7E; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay26-20020a5d6f1a000000b0020d0dbdc7f2si834239wrb.620.2022.05.16.01.50.54; Mon, 16 May 2022 01:51:20 -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=@kernel.org header.s=k20201202 header.b=nSBeQY7E; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240906AbiEPHJY (ORCPT + 99 others); Mon, 16 May 2022 03:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240883AbiEPHJS (ORCPT ); Mon, 16 May 2022 03:09:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2904AE038; Mon, 16 May 2022 00:08:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA4D761016; Mon, 16 May 2022 07:08:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D267C385B8; Mon, 16 May 2022 07:08:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652684924; bh=AgxF2rYvCdlJSEVA4mRgENVpDWLgAZ7+rZgRTZv2Dmw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nSBeQY7EAicS4si3qitqxImgQi6Hh/4F8ZwkSjlLQWUsY0K/hf1mU6nmEgEwXzltQ gt6EvL48S9LU8IwCpWLZZDS57t3GrWNyrrfchGKWWALYmQRVrrHAKTy/gLXLg6vKjW 84lc7eWmguE0Om6w2su+dsuL+YTeAkUxTsPT5lROqLlZkjZfXgApv6QyC1ugUB8sBW GwY5h5r0LOT1K8ikuBGoJFbM4Mk8FZWImKO2InmgnxRqhSjOydVneNodzR7IuMschT T73VOcSXUhSUuUXbQNBJn6ZmJTUxNzu5eL//Ufw7nLYLfvX05Wr7MjwuhwhSOMlo9w /049dy/Fwh0Cw== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nqUqK-00BXKF-MP; Mon, 16 May 2022 08:08:41 +0100 Date: Mon, 16 May 2022 08:08:30 +0100 Message-ID: <87o7zylztd.wl-maz@kernel.org> From: Marc Zyngier To: Naresh Kamboju Cc: open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, Stephen Rothwell , Thomas Gleixner , pali@kernel.org, Ingo Molnar Subject: Re: Unexpected kernel BRK exception at EL1 - Internal error: BRK handler: f20003e8 - gic_dist_config In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: naresh.kamboju@linaro.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, lkft-triage@lists.linaro.org, sfr@canb.auug.org.au, tglx@linutronix.de, pali@kernel.org, mingo@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon, 16 May 2022 07:16:22 +0100, Naresh Kamboju wrote: > > The kernel crash reported on arm64 juno-r2 device with kselftest-merge config > while booting Linux next-20220513 kernel [1]. > > [ 0.000000] Booting Linux on physical CPU 0x0000000100 [0x410fd033] > [ 0.000000] Linux version 5.18.0-rc6-next-20220513 > (oe-user@oe-host) (aarch64-linaro-linux-gcc (GCC) 7.3.0, GNU ld (GNU > Binutils) 2.30.0.20180208) #1 SMP PREEMPT Fri May 13 08:34:42 UTC 2022 > [ 0.000000] Machine model: ARM Juno development board (r2) > [ 0.000000] earlycon: pl11 at MMIO 0x000000007ff80000 (options '') > [ 0.000000] printk: bootconsole [pl11] enabled > [ 0.000000] efi: UEFI not found. > [ 0.000000] NUMA: No NUMA configuration found > [ 0.000000] NUMA: Faking a node at [mem > 0x0000000080000000-0x00000009ffffffff] > [ 0.000000] NUMA: NODE_DATA [mem 0x9fefce600-0x9fefd0fff] > [ 0.000000] Zone ranges: > [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] > [ 0.000000] DMA32 empty > [ 0.000000] Normal [mem 0x0000000100000000-0x00000009ffffffff] > [ 0.000000] Movable zone start for each node > [ 0.000000] Early memory node ranges > [ 0.000000] node 0: [mem 0x0000000080000000-0x00000000feffffff] > [ 0.000000] node 0: [mem 0x0000000880000000-0x00000009ffffffff] > [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000009ffffffff] > [ 0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges > [ 0.000000] cma: Reserved 32 MiB at 0x00000000fd000000 > [ 0.000000] psci: probing for conduit method from DT. > [ 0.000000] psci: PSCIv1.1 detected in firmware. > [ 0.000000] psci: Using standard PSCI v0.2 function IDs > [ 0.000000] psci: Trusted OS migration not required > [ 0.000000] psci: SMC Calling Convention v1.0 > [ 0.000000] percpu: Embedded 31 pages/cpu s89632 r8192 d29152 u126976 > [ 0.000000] pcpu-alloc: s89632 r8192 d29152 u126976 alloc=31*4096 > [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 > [ 0.000000] Detected VIPT I-cache on CPU0 > [ 0.000000] CPU features: detected: ARM erratum 843419 > [ 0.000000] CPU features: detected: ARM erratum 845719 > [ 0.000000] Fallback order for Node 0: 0 > [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2060288 > [ 0.000000] Policy zone: Normal > [ 0.000000] Kernel command line: console=ttyAMA0,115200n8 > root=/dev/nfs rw > nfsroot=10.66.16.125:/var/lib/lava/dispatcher/tmp/5021955/extract-nfsrootfs-23zdukp_,tcp,hard,vers=3 > rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null > user_debug=31 androidboot.hardware=juno loglevel=9 > sky2.mac_address=0x00,0x02,0xF7,0x00,0x68,0x3F ip=dhcp > [ 0.000000] Unknown kernel command line parameters > \"user_debug=31\", will be passed to user space. > [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, > 8388608 bytes, linear) > [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, > 4194304 bytes, linear) > [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off > [ 0.000000] Stack Depot early init allocating hash table with > memblock_alloc, 8388608 bytes > [ 0.000000] software IO TLB: mapped [mem > 0x00000000f9000000-0x00000000fd000000] (64MB) > [ 0.000000] Memory: 8038640K/8372224K available (22784K kernel > code, 5468K rwdata, 11824K rodata, 11520K init, 11734K bss, 300816K > reserved, 32768K cma-reserved) > [ 0.000000] ********************************************************** > [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** > [ 0.000000] ** ** > [ 0.000000] ** This system shows unhashed kernel memory addresses ** > [ 0.000000] ** via the console, logs, and other interfaces. This ** > [ 0.000000] ** might reduce the security of your system. ** > [ 0.000000] ** ** > [ 0.000000] ** If you see this message and you are not debugging ** > [ 0.000000] ** the kernel, report this immediately to your system ** > [ 0.000000] ** administrator! ** > [ 0.000000] ** ** > [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** > [ 0.000000] ********************************************************** > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1 > [ 0.000000] ftrace: allocating 69398 entries in 272 pages > [ 0.000000] ftrace: allocated 272 pages with 2 groups > [ 0.000000] trace event string verifier disabled > [ 0.000000] Running RCU self tests > [ 0.000000] rcu: Preemptible hierarchical RCU implementation. > [ 0.000000] rcu: RCU event tracing is enabled. > [ 0.000000] rcu: RCU lockdep checking is enabled. > [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6. > [ 0.000000] Trampoline variant of Tasks RCU enabled. > [ 0.000000] Rude variant of Tasks RCU enabled. > [ 0.000000] Tracing variant of Tasks RCU enabled. > [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay > is 25 jiffies. > [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6 > [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 > [ 0.000000] Root IRQ handler: gic_handle_irq > [ 0.000000] GIC: Using split EOI/Deactivate mode > [ 0.000000] Unexpected kernel BRK exception at EL1 Huh. Who inserts random BRKs like this? > [ 0.000000] Internal error: BRK handler: f20003e8 [#1] PREEMPT SMP > [ 0.000000] Modules linked in: > [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted > 5.18.0-rc6-next-20220513 #1 > [ 0.000000] Hardware name: ARM Juno development board (r2) (DT) > [ 0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 0.000000] pc : gic_dist_config+0x4c/0x68 > [ 0.000000] lr : gic_init_bases+0xd4/0x248 Please provide a disassembly of this function. Thanks, M. -- Without deviation from the norm, progress is not possible.