Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp302101pxk; Thu, 24 Sep 2020 06:13:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG0PfTb2dSl63VpK1Tz51V1Nqd9VO0ZF4IqayU3ArGT9uR182Bc1ZgTOP7PftS2GBGwzKK X-Received: by 2002:a50:ee15:: with SMTP id g21mr997595eds.47.1600953190002; Thu, 24 Sep 2020 06:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600953189; cv=none; d=google.com; s=arc-20160816; b=OKcUScQ0q4I57/Pmg6iAayYHsaKEvJd5W9Ibhb1QBgTQWlh0RxXjCSa7+bucSLs8tl xB/ic6URW0QaweTSr5eDAsDd3Q8OAMvq/7ZV9LAmEMS3FR1xFfFjeP0q0V0wsEFH7SYb VsgV70I+Y6zOsgV9ZltD5Bg7jJZEfhzejY65TU/Hkx5xHvxejmgVjggKCWxTuHfVbnsZ fQkX7E7vGq5XR7LWU3h+ROWRTpYrx/dwj4zwrvBMsPYJXD2fGrC2EHz996eGyxLASTko EON0hdOUNMQTBS/5T+UmEDUYdNXQLiF276oMYJ6kN3j6kn//keubfR5HINghOdvrd2Ou OYKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=CBBnUfutg17vGdn972J38/tLlRfCUZoWitL7qIJ5WrE=; b=uuf4g8fe67+WBpBEf3n40b1Es5pMv7Z5jmGkQvuYp5VMoZr0z9IRp2r4j/XL+hXo5+ /dp7SJ7wSZ7UHoBHUyLiT0bP0lgIYTHKeUS9AbweHgjHYlMxp6PrO4DyeQ+YWxu5Md+l NtftHukIJZ0lrZQOHNxQMZYmtjY20IFGvCd1WbZeKgYQ1YG3dAYJR2xQSriT5S3CBr5o +JrpOlXYn9aoPgOZsA4KICAkMxVSJG44bAPryTghuNSugzB2f8z+QWgK+siDyj3q492E BTha58qu/8O9PMD3sXRrg9RM4vWy7ewj6yX7CnQYXdyVgVh+tuGPBQNx0MJsJ3VXmX// xNBA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl12si1867908ejb.337.2020.09.24.06.12.43; Thu, 24 Sep 2020 06:13:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgIXNJL (ORCPT + 99 others); Thu, 24 Sep 2020 09:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbgIXNJL (ORCPT ); Thu, 24 Sep 2020 09:09:11 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325CCC0613CE for ; Thu, 24 Sep 2020 06:09:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 4742929CF4D Subject: Re: [PATCH v3 16/16] ARM: Remove custom IRQ stat accounting To: Marc Zyngier 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 References: <20200901144324.1071694-1-maz@kernel.org> <20200901144324.1071694-17-maz@kernel.org> <875z83r08a.wl-maz@kernel.org> From: Guillaume Tucker Message-ID: <3cd270a8-ddff-b3aa-5d7f-e7224deefbcc@collabora.com> Date: Thu, 24 Sep 2020 14:09:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <875z83r08a.wl-maz@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/09/2020 10:29, Marc Zyngier wrote: > 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). OK thanks, that worked: https://lava.baylibre.com/scheduler/job/143170 I've added this fix to the kernel branch used on staging.kernelci.org which is based on linux-next, so it will get fully verified a bit later today. Guillaume > 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. >