Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp168556pxk; Thu, 24 Sep 2020 02:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBxv15ze5cttoEIUESrxdfKsRp2gMB4WlWoH5lC+JK7bGuKS4wZaVaycemVORwR1moOMhW X-Received: by 2002:a05:6402:1859:: with SMTP id v25mr81003edy.118.1600939886856; Thu, 24 Sep 2020 02:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600939886; cv=none; d=google.com; s=arc-20160816; b=DqvMz+II5/YEk0F+DieX0kiF4wGRz2Wwnls5110umBjw4CqgecFMDrv6/AloW1TUDw rKyQbkXIaBOnCUQOliZ0w0GUDaSF5PMavK6ON/zjBSpoKcSAXahJRgpvdjbGJxqHPura nyfD/V7qHHF5xrukvN/TRFDAojlyc8G0kaox38JVMvLTDQdhi3pZbTw2ele43PvjupIr 5/0MeafLcvsmHgvze0nLeCM3R0MXi6vxI0mWM69QF6fi2ov+CC1ClXFqH2NdCeejUI52 Wt4R6J0ETBOqv37jVzi1pIMZIJ+IzxbFHhmOigRJdivXALU3yNUO1UIMFUjBhk2Ycipe +8GA== 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=+7VyZEpI1uUXUP4GpejULJnucA2FX78jY+9D2LhT3jU=; b=nsniWKSa5aKcrPG0eMy9YceSlLS5RCzPlHK8Q80M2QY3NVimZhT0gQMSF0W3KqCbZc 34Gm3vf/l95BAmh5pE6FpjJmpt8UvIajaR4zRa3TJP8NJ8H3EC90Sss4Sl2lRLYqay3M 7AQS14JJR9iTTz6oxJOGyYwFRcL/frxcVdMFW1zNU+zTFgNe4uw+/oV2iNE7nspF2r5i gCdVG2tKczrhZOcyOarptlLAE+2iMZDnyioIwFFcy2+ktzR7fYGeKYWRR5O9t2GeXEsS 5oKCFawQ5ONtGawVkdrQ7k0bj5+vKGIsqI2htbB03QVEy5NCWH35HIAfsLb2AZaE4kIL vM0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m9gUatUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si1902797ejr.202.2020.09.24.02.31.03; Thu, 24 Sep 2020 02:31:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m9gUatUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727325AbgIXJaH (ORCPT + 99 others); Thu, 24 Sep 2020 05:30:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgIXJaH (ORCPT ); Thu, 24 Sep 2020 05:30:07 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9D59422208; Thu, 24 Sep 2020 09:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600939806; bh=0tWg5uutNp4VicmL+sqHzCyXrTd3PNp40gTufqKbwvA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m9gUatUxl+q8JunT56Houb9u/hWyl2mi62H3fPEp8YmskYgJKIpfp5IPgvb22RA4B HU3jxJGAl2BMwPc6qQA4OIn2ogNui8aSGfYVfNEhwYDPFP+72IlHHJh2F4eUKpRBDX yJiHRjWTgrDkTmmprL6auKCWawtJmeg803nLeTpI= Received: from [148.252.128.132] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLNZk-00EYup-HG; Thu, 24 Sep 2020 10:30:04 +0100 Date: Thu, 24 Sep 2020 10:29:57 +0100 Message-ID: <875z83r08a.wl-maz@kernel.org> From: Marc Zyngier To: Guillaume Tucker Cc: Valentin Schneider , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sumit Garg , kernel-team@android.com, Florian Fainelli , Russell King , Jason Cooper , Saravana Kannan , Andrew Lunn , Catalin Marinas , Gregory Clement , Thomas Gleixner , Will Deacon , kernelci-results@groups.io Subject: Re: [PATCH v3 16/16] ARM: Remove custom IRQ stat accounting In-Reply-To: References: <20200901144324.1071694-1-maz@kernel.org> <20200901144324.1071694-17-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26.3 (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: 148.252.128.132 X-SA-Exim-Rcpt-To: guillaume.tucker@collabora.com, valentin.schneider@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sumit.garg@linaro.org, kernel-team@android.com, f.fainelli@gmail.com, linux@arm.linux.org.uk, jason@lakedaemon.net, saravanak@google.com, andrew@lunn.ch, catalin.marinas@arm.com, gregory.clement@bootlin.com, tglx@linutronix.de, will@kernel.org, kernelci-results@groups.io X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guillaume, On Thu, 24 Sep 2020 10:00:09 +0100, Guillaume Tucker wrote: > > Hi Marc, > > On 01/09/2020 15:43, Marc Zyngier wrote: > > Let's switch the arm code to the core accounting, which already > > does everything we need. > > > > Reviewed-by: Valentin Schneider > > Signed-off-by: Marc Zyngier > > --- > > arch/arm/include/asm/hardirq.h | 17 ----------------- > > arch/arm/kernel/smp.c | 20 ++++---------------- > > 2 files changed, 4 insertions(+), 33 deletions(-) > > This appears to be causing a NULL pointer dereference on > beaglebone-black, it got bisected automatically several times. > None of the other platforms in the KernelCI labs appears to be > affected. Hmm. My bet is that because this is a UP machine running an SMP kernel, and I fell into the trap of forgetting about this 32bit configuration. I expect the following patch to fix it. Please give it a go if you can (I'm away at the moment and can't test much, and do not have any physical 32bit machine to test this on). diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 00327fa74b01..b4e3d336dc33 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -531,7 +531,12 @@ void show_ipi_list(struct seq_file *p, int prec) unsigned int cpu, i; for (i = 0; i < NR_IPI; i++) { - unsigned int irq = irq_desc_get_irq(ipi_desc[i]); + unsigned int irq; + + if (!ipi_desc[i]) + continue; + + irq = irq_desc_get_irq(ipi_desc[i]); seq_printf(p, "%*s%u: ", prec - 1, "IPI", i); for_each_online_cpu(cpu) Thanks, M. -- Without deviation from the norm, progress is not possible.