Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2757006pxx; Sun, 1 Nov 2020 08:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJx13UGMGUd3gxUT0W7FK/kPYB1qRoUGw2ICKzERDztrnGitwD+/CrxCdziliqxvBmISxNz+ X-Received: by 2002:aa7:c3c8:: with SMTP id l8mr12866083edr.189.1604249711974; Sun, 01 Nov 2020 08:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604249711; cv=none; d=google.com; s=arc-20160816; b=PQgFu8oufUKxCafmNrqMVZDL2XMtebvNDiLagsAdNDhITUTxH72pEiLC6UCru6FgnG OydsZqZvRp5aTcxsdHnqSxxAjKfnWWGbz570HWM5SfonB9ZMsLZNjFfdA34LeUSuIQRE cNiNbvr2fZshmmOHnkSLXQNox7yncmnWG7uyH0akUc1fB2xELxLUS8lVaR3Khy2qO/Zm bPwqjfa6WDpn1kWr0jWN8l5kH21U8J48m82smfv18uYazBi6YVSCuX6rmmWWsDQ8+Uwd NUwU6Eb09pVwNEzlp/MlrK+0O3XdeSkTLovDpI/5HmWwAxIqLJUkhBVuh5Vc5/qTsGeq b34g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=aZtASmEsd/FB84mTk1oOXBBdXFIzwqjrsRZ2JdtHEOE=; b=u00T+0MJYAySnMXLlJuS1A7YySFcwBitimAV4scgNc/BNTJq72kShCKkJ1rfb2YtKs t6NaAMc3NxgZqf3IWAl/79JJCm4u5pAkFXScGsAy/ZV+vLHCjBopnH7bl9G7TnvN1IgX WcK86WI98+A82wSQAytEMklqoR7B1Bbc8Qe8hvIihAvfZcCAO4iYEZjEz82UUjFelMil EqpsXLx/UY3k5j+gVLpzlvMvA1bxdDr8kl+ZvaqOslUgX3st4ZYwP0U9TTYCvxPJblTx 74FtG9yUx1/1i3kTnHNWDk8+vfT+8S12PyF/d9PFyW9ZneSYlNblCCy5Jbd6QkW9LIBl 8Xjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rzDR+2zh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si8801028ejb.6.2020.11.01.08.54.48; Sun, 01 Nov 2020 08:55:11 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=rzDR+2zh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727035AbgKAQwJ (ORCPT + 99 others); Sun, 1 Nov 2020 11:52:09 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53772 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgKAQwJ (ORCPT ); Sun, 1 Nov 2020 11:52:09 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604249527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aZtASmEsd/FB84mTk1oOXBBdXFIzwqjrsRZ2JdtHEOE=; b=rzDR+2zh3P3kB8f1ohciGFUAFS+loOaeUt2q6n+LOzyF4K4yooUpVDBHzkjigj34c6vZLQ vrvDKB5XdW0fIBBgZNY/URJ6cHHqkJQzt0FX0pSWkuU1FT4s9f81w9+dKe2AbWgzkNHliQ WEWfqgjaz2BqPJ13NO1FiHuCIyQK/GWVyYCeUbeM3CIo0tGZyMMpedMm4yKqzCvWJd9XTs vYaMLpMOdqNnCcwtRQ/En1fcjzz9KZvOEgEVUgMHKQWmj0omn6vTryH+f/LBbM9x152oa2 xR8nHmo2XoZ0fZuTZXFyedM5ftUQCJXpk2SjJpBYqzM84HNzfVzLvbTXEaFjXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604249527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aZtASmEsd/FB84mTk1oOXBBdXFIzwqjrsRZ2JdtHEOE=; b=YXEIzcJmXyl4S9UEy4PEjHt1tgehLjQfzOBdlUK4WLqdODsHxp/XnNQqoIf76chRfQSQ40 ocMuF+0sU1IUJTCA== To: Marc Zyngier , Jason Cooper , Geert Uytterhoeven , Greentime Hu , palmer@dabbelt.com, linux-kernel@vger.kernel.org, atish.patra@wdc.com, linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, anup@brainfault.org Cc: Ulrich Hecht , linux-renesas-soc@vger.kernel.org Subject: Re: [RFC PATCH] irqchip/sifive-plic: Fix getting wrong chip_data when interrupt is hierarchy In-Reply-To: <160423261831.76459.6853837344029171039.b4-ty@kernel.org> References: <20201029023738.127472-1-greentime.hu@sifive.com> <160423261831.76459.6853837344029171039.b4-ty@kernel.org> Date: Sun, 01 Nov 2020 17:52:06 +0100 Message-ID: <87y2jl81ft.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 01 2020 at 12:10, Marc Zyngier wrote: > On Thu, 29 Oct 2020 10:37:38 +0800, Greentime Hu wrote: >> This oops is caused by a wrong chip_data and it is because plic_irq_unmask >> uses irq_get_chip_data(irq_data->irq) to get the chip_data. However it may >> get another irq_data with the same irq_data->irq if it is hierarchy. >> >> In this case, it will get irq_data of sifive_gpio_irqchip instead of >> plic_chip so that it will get a wrong chip_data and then the wrong lmask >> of it to cause this oops. >> >> [...] > > Applied to irq/irqchip-next, thanks! That should go into urgent, the offending commit is in Linus tree already Thanks, tglx