Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10136748rwr; Fri, 12 May 2023 04:29:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6G54/cNeY82v7jMDgprxebhsTnCANf0XTrQR19rXhIODTBrB66kPN95uBx8hxOgDng1xbh X-Received: by 2002:a17:902:8348:b0:1ac:9890:1c49 with SMTP id z8-20020a170902834800b001ac98901c49mr14318319pln.15.1683890953957; Fri, 12 May 2023 04:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683890953; cv=none; d=google.com; s=arc-20160816; b=Tzvi5xkR9eLCg7inK9S4urUoH1H74gHODr6wu53vxZU0MJfDGsQvVNr2mUDHoeqSBp VeqHKGMOPRbFV4dAsbKPRa7wh+3X24lFcFhLlC4ay6u8fPWt7FfeIrfUb/9aXDBrGNha 0mzZQozmH/PQ30lkO3zqP+hZX3d3HaDcUKSuA5Db8a8vh0eT3JSyMKK8vGgXUtv0QI17 QgaPO03hK8X8GeWrbhqH36smE5DacKTTvEbUP1rNUkn3OP7N+6by28pIXJXaM6Af7OJx gslEVF4aDGp21yRhlh7U3jpAEHd/qDyDjzwMzFD3yMOKU77huNevWGxd4J1gq2BxFgMB QYMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=/2iddIeHmV35Tp12Ud0Qcza4iEUt2v+ZvltwyqDhFjI=; b=KAWP5eLahPdcLbbloU7nluwKeEOlQcWfDSV0wKLAi4Mwj8j0sMUy4mRSVaYfHYe7QU FpRaRhAPssLGhMOhWTL+HMa0VbIam/Z9xpCQ9aNRZ+mXZiUrXylxUdMgvY+tS64PFSOY M72lKgmXNb+keTfFmp2q3PVHNiMOhc66AeKCHgHIp3jtXLMbL1g0pDTp//X2yW1WbhGK /DAmfGlVxIVKtFu92L68uzB/9veP5TH9ruDmn/luCt0LfPK6OKAiq6Q7uVqEOitbmCRD /IkNEWFv6CCqmxaJiZ+vXW0YRerH0FkVtqv/uCVxi5HYi2ds5iCpviSLgoh9ALe1OXMr HLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LrLKXa7B; 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 d10-20020a170903230a00b001a979141a25si9549680plh.243.2023.05.12.04.28.59; Fri, 12 May 2023 04:29:13 -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=LrLKXa7B; 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 S240946AbjELK5u (ORCPT + 99 others); Fri, 12 May 2023 06:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240708AbjELK5h (ORCPT ); Fri, 12 May 2023 06:57:37 -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 2212A3C2A; Fri, 12 May 2023 03:57:34 -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 5825161A0F; Fri, 12 May 2023 10:57:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BE15C433EF; Fri, 12 May 2023 10:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683889053; bh=dg8aubaLyHfwcSh3xXZkMsr1MCu72NyvHKS1EZUNlhE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LrLKXa7BKZW4ABBMxSYcln3tUQ/g958WFW/RMwLFvt9VCL6UjaMa8JBKgzi4/ZPko oh1QV1QwMYNt7zn/PcmWdk8JLq6ROoo//gqVF7aezuG7bCYfcVmqqh7WcQXRbm19Hh MNM9/6wujUpXXrz+x7vJs4gAzATYxoA97mITr3b9dyfYT65tYAKY84PLh5XisE1UmP iDeXLdoJTSoy5whtsLNNzcItHFXf0El+3xs+izfWfX5L4Hh/I/xHXH64nRnuLD3sdW Mr/sOlMfh3duzGllf2GETLTE9m27IDwdCyPK0V+agIvXigKnOGBxt0hepzLoo3ffpe 37ziPplRgDbOA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pxQSp-00EYIH-GD; Fri, 12 May 2023 11:57:31 +0100 Date: Fri, 12 May 2023 11:57:31 +0100 Message-ID: <86pm75n7fo.wl-maz@kernel.org> From: Marc Zyngier To: syzbot Cc: geert+renesas@glider.be, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de Subject: Re: [syzbot] upstream boot error: BUG: unable to handle kernel NULL pointer dereference in gic_eoi_irq In-Reply-To: <000000000000da2a8505fb71d81b@google.com> References: <000000000000da2a8505fb71d81b@google.com> 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/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: syzbot+afc1d968649e7e851562@syzkaller.appspotmail.com, geert+renesas@glider.be, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, 11 May 2023 22:41:11 +0100, syzbot wrote: >=20 > Hello, >=20 > syzbot found the following issue on: >=20 > HEAD commit: ac9a78681b92 Linux 6.4-rc1 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=3D102a3f6a280000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3Dcc86fee671999= 11d > dashboard link: https://syzkaller.appspot.com/bug?extid=3Dafc1d968649e7e8= 51562 > compiler: arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, = GNU ld (GNU Binutils for Debian) 2.35.2 > userspace arch: arm >=20 > Downloadable assets: > disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/c= 35b5b2731d2/non_bootable_disk-ac9a7868.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/c04bec59d77d/vmlinu= x-ac9a7868.xz > kernel image: https://storage.googleapis.com/syzbot-assets/070113b307f3/z= Image-ac9a7868.xz >=20 > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+afc1d968649e7e851562@syzkaller.appspotmail.com >=20 > 8<--- cut here --- > Unable to handle kernel NULL pointer dereference at virtual address 00000= 5f4 when read > [000005f4] *pgd=3D80000080004003, *pmd=3D00000000 > Internal error: Oops: 207 [#1] PREEMPT SMP ARM > Modules linked in: > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.4.0-rc1-syzkaller #0 > Hardware name: ARM-Versatile Express > PC is at gic_eoi_irq+0x64/0x70 drivers/irqchip/irq-gic.c:228 > LR is at handle_percpu_devid_irq+0xb8/0x2d4 kernel/irq/chip.c:944 > pc : [<8087e328>] lr : [<802bf798>] psr: 20000193 > sp : df805f60 ip : df805f78 fp : df805f74 > r10: 00000000 r9 : 831f4680 r8 : 00000001 > r7 : 0000001c r6 : 81b0febc r5 : 000005f0 r4 : 8309a218 > r3 : 000005f0 r2 : 0009127a r1 : ddde8b00 r0 : 8309a218 > Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none > Control: 30c5387d Table: 84804d80 DAC: 00000000 > Register r0 information: slab kmalloc-256 start 8309a200 pointer offset 2= 4 size 256 > Register r1 information: non-slab/vmalloc memory > Register r2 information: > 8<--- cut here --- > Unable to handle kernel NULL pointer dereference at virtual address 00000= 1ff when read > [000001ff] *pgd=3D80000080004003, *pmd=3D00000000 > Internal error: Oops: 207 [#2] PREEMPT SMP ARM > Modules linked in: > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.4.0-rc1-syzkaller #0 > Hardware name: ARM-Versatile Express > PC is at __find_vmap_area mm/vmalloc.c:841 [inline] > PC is at find_vmap_area mm/vmalloc.c:1862 [inline] > PC is at find_vm_area mm/vmalloc.c:2623 [inline] > PC is at vmalloc_dump_obj+0x38/0xb4 mm/vmalloc.c:4221 > LR is at __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline] > LR is at _raw_spin_lock+0x18/0x58 kernel/locking/spinlock.c:154 > pc : [<8047a2ec>] lr : [<81801fd4>] psr: 20000193 > sp : df805df0 ip : df805dd8 fp : df805e04 > r10: 831f4680 r9 : 8261c9a4 r8 : 8285041c > r7 : 60000193 r6 : 00000003 r5 : 00092000 r4 : 00000207 > r3 : 830e13a0 r2 : 00001dda r1 : 00000000 r0 : 00000001 > Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none > Control: 30c5387d Table: 84804d80 DAC: 00000000 [hoping this will be read by a human and not one of these AI] You keep sending me these reports because the GIC is in a stacktrace. But the root cause it probably somewhere else, as the multiple runs of the same kernel result in very different exceptions, most of which never reach the point where it explodes in your stacktrace. Here's one of them: [ 1.572514][ T1] Freeing unused kernel image (initmem) memory: 2048K [ 1.624529][ T1] Failed to set sysctl parameter 'vm.nr_hugepages=3D4'= : parameter not found [ 1.626239][ T1] Failed to set sysctl parameter 'vm.nr_overcommit_hug= epages=3D4': parameter not found [ 1.628105][ T1] Failed to set sysctl parameter 'max_rcu_stall_to_pan= ic=3D1': parameter not found [ 1.630034][ T1] Run /sbin/init as init process [ 1.663886][ T0] Insufficient stack space to handle exception! [ 1.663894][ T0] Task stack: [0xdf8a0000..0xdf8a2000] [ 1.666697][ T0] IRQ stack: [0xdf804000..0xdf806000] [ 1.668019][ T0] Overflow stack: [0x830eb000..0x830ec000] [ 1.669327][ T0] Internal error: kernel stack overflow: 0 [#1] PREEMP= T SMP ARM [ 1.671033][ T0] Modules linked in: [ 1.671894][ T0] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.4.0-rc1-= syzkaller #0 [ 1.673749][ T0] Hardware name: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDx= =EF=BF=BD=EF=BF=BD=EF=BF=BDdf!=EF=BF=BD=EF=BF=BD`!=EF=BF=BD system [ 1.675020][ T0] PC is at __dabt_svc+0x14/0x60 [ 1.676176][ T0] LR is at arch_cpu_idle+0x38/0x3c [ 1.677328][ T0] pc : [<80200a74>] lr : [<80208eb8>] psr: 00000= 193 [ 1.678918][ T0] sp : df8a0010 ip : df8a1f60 fp : df8a1f5c [ 1.680268][ T0] r10: 00000000 r9 : 827e1666 r8 : 00000000 [ 1.681630][ T0] r7 : 8260c4e0 r6 : 00000001 r5 : 8260c498 r4 : 83= 1cc680 [ 1.683282][ T0] r3 : 8021b8c0 r2 : 00433fc1 r1 : 81f9d24c r0 : 82= 850250 [ 1.684957][ T0] Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM= Segment user [ 1.686771][ T0] Control: 30c5383d Table: 80003000 DAC: dbadc0de [ 1.688354][ T0] Register r0 information: [ 1.713870][ T0] 8<--- cut here --- [ 1.715765][ T0] Unhandled fault: unknown 3 (0xa03) at 0xdf8b9004 [ 1.717219][ T0] [df8b9004] *pgd=3D80000080007003, *pmd=3D83097003, *= pte=3D802160e8fe83d71f [ 2.073879][ C0] 8<--- cut here --- [ 2.074748][ C0] Unable to handle kernel paging request at virtual ad= dress 830a2000 when execute [ 2.076808][ C0] [830a2000] *pgd=3D80000080006003, *pmd=3D40000083000= 71d(bad) [ 6.553998][ T0] Insufficient stack space to handle exception! [ 6.554004][ T0] Task stack: [0xdf8a4000..0xdf8a6000] [ 6.556644][ T0] IRQ stack: [0xdf808000..0xdf80a000] [ 6.557922][ T0] Overflow stack: [0x830b8000..0x830b9000] [ 18.824252][ T0] 8<--- cut here --- [ 18.824265][ C4] 8<--- cut here --- [ 18.824317][ T0] Insufficient stack space to handle exception! [ 18.824320][ T0] Task stack: [0xdf8a8000..0xdf8aa000] [ 18.824323][ T0] IRQ stack: [0xdf80c000..0xdf80e000] [ 18.824326][ T0] Overflow stack: [0x830b9000..0x830ba000] [ 18.825383][ T0] Unhandled fault: unknown 3 (0xa03) at 0xdf8b1004 [ 18.826484][ C4] Unable to handle kernel paging request at virtual ad= dress df84000c when read [ 18.828182][ T0] [df8b1004] *pgd=3D80000080007003 [ 18.829838][ C4] [df84000c] *pgd=3D80000080007003 [ 18.831330][ T0] , *pmd=3D83097003 [ 18.832710][ C4] , *pmd=3D83097003 [ 18.834800][ T0] , *pte=3D8261d0a8fe83971f [ 18.836939][ C4] , *pte=3D802160c4 [ 18.838162][ T0]=20 [ 18.843536][ C4]=20 [ 1.663886][ T0] Insufficient stack space to handle exception! [ 1.663894][ T0] Task stack: [0xdf8a0000..0xdf8a2000] [ 1.666697][ T0] IRQ stack: [0xdf804000..0xdf806000] [ 1.668019][ T0] Overflow stack: [0x830eb000..0x830ec000] [ 1.669327][ T0] Internal error: kernel stack overflow: 0 [#1] PREEMP= T SMP ARM [ 1.671033][ T0] Modules linked in: [ 1.671894][ T0] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.4.0-rc1-= syzkaller #0 [ 1.673749][ T0] Hardware name: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDx= =EF=BF=BD=EF=BF=BD=EF=BF=BDdf!=EF=BF=BD=EF=BF=BD`!=EF=BF=BD system [ 1.675020][ T0] PC is at __dabt_svc+0x14/0x60 [ 1.676176][ T0] LR is at arch_cpu_idle+0x38/0x3c [ 1.677328][ T0] pc : [<80200a74>] lr : [<80208eb8>] psr: 00000= 193 [ 1.678918][ T0] sp : df8a0010 ip : df8a1f60 fp : df8a1f5c [ 1.680268][ T0] r10: 00000000 r9 : 827e1666 r8 : 00000000 [ 1.681630][ T0] r7 : 8260c4e0 r6 : 00000001 r5 : 8260c498 r4 : 83= 1cc680 [ 1.683282][ T0] r3 : 8021b8c0 r2 : 00433fc1 r1 : 81f9d24c r0 : 82= 850250 [ 1.684957][ T0] Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM= Segment user [ 1.686771][ T0] Control: 30c5383d Table: 80003000 DAC: dbadc0de [ 1.688354][ T0] Register r0 information: [ 1.713870][ T0] 8<--- cut here --- [ 1.715765][ T0] Unhandled fault: unknown 3 (0xa03) at 0xdf8b9004 [ 1.717219][ T0] [df8b9004] *pgd=3D80000080007003, *pmd=3D83097003, *= pte=3D802160e8fe83d71f [ 2.073879][ C0] 8<--- cut here --- [ 2.074748][ C0] Unable to handle kernel paging request at virtual ad= dress 830a2000 when execute [ 2.076808][ C0] [830a2000] *pgd=3D80000080006003, *pmd=3D40000083000= 71d(bad) [ 6.553998][ T0] Insufficient stack space to handle exception! [ 6.554004][ T0] Task stack: [0xdf8a4000..0xdf8a6000] [ 6.556644][ T0] IRQ stack: [0xdf808000..0xdf80a000] [ 6.557922][ T0] Overflow stack: [0x830b8000..0x830b9000] [ 18.824252][ T0] 8<--- cut here --- [ 18.824265][ C4] 8<--- cut here --- [ 18.824317][ T0] Insufficient stack space to handle exception! [ 18.824320][ T0] Task stack: [0xdf8a8000..0xdf8aa000] [ 18.824323][ T0] IRQ stack: [0xdf80c000..0xdf80e000] [ 18.824326][ T0] Overflow stack: [0x830b9000..0x830ba000] [ 18.825383][ T0] Unhandled fault: unknown 3 (0xa03) at 0xdf8b1004 [ 18.826484][ C4] Unable to handle kernel paging request at virtual ad= dress df84000c when read [ 18.828182][ T0] [df8b1004] *pgd=3D80000080007003 [ 18.829838][ C4] [df84000c] *pgd=3D80000080007003 [ 18.831330][ T0] , *pmd=3D83097003 [ 18.832710][ C4] , *pmd=3D83097003 [ 18.834800][ T0] , *pte=3D8261d0a8fe83971f [ 18.836939][ C4] , *pte=3D802160c4 [ 18.838162][ T0]=20 [ 18.843536][ C4]=20 So not much to do with the GIC, but more to do with general stack overflow/corruption. I'd appreciate it if you could stop barking up the wrong tree and get someone who is still interested in 32bit ARM to look into it. Thanks, M. --=20 Without deviation from the norm, progress is not possible.