Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp200905pxb; Thu, 12 Nov 2020 01:12:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTmAPRU+vFtGe9Vs8ayXJP44GV6AVvb6GwbaQT6BQ4Qi1wd9Z2sFrayqpttRX0R3WNfWbU X-Received: by 2002:a17:906:4e41:: with SMTP id g1mr30548817ejw.47.1605172325264; Thu, 12 Nov 2020 01:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605172325; cv=none; d=google.com; s=arc-20160816; b=LdhHu+jkNqI19WDCngFnHBurt0AKNUauesCcL6Qxp/74ZrRMEhSw4lba2o63htRrDA m3mAx1ZV1kXKb5gzjsW/uB0Yy7Hzhb6uRj6XOAJZThpvqy49GItj/1jK3W/xEhYmN8iY 00NgctOMQrKspO8QQF2gATOrk5Wk6XkPY1j4c37DV3SHgh8Q5BEl+/ZTM1cUYIJXeYTj zcFeXCT2EQLEtrTsh3dwpjkD+ogBaLXd76c47uQrhoOS/gVhZlcjX2AC+iJV3szSMpQA DYKOA8kiRMO8JCrosMRkodxzHvSwqezOtw9TBT2AJPiYqYOGLITt1oXHraWx9Be5HoxA Yh6Q== 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 :date:cc:to:from:subject:message-id; bh=sKAB0RnqiSyvxMB1kzMxurzWwxbOeNJ3An5TuvH36ME=; b=JLgAl1s7zxg4EJ885eiWx41+vMddx0bMyF1s4WQ2tIa1atAiOkjek6JOdSltG8/DVk qBBnBXEI6EiKoWjTce6qc5mQhhu/M+6UxIajpJK46j2+WkAA4tLGD2oqf5n206LpPAsj liqcsgdRLO/WyC+yI9PTlTIYrNwDaRxr79qknkTVsrF2anYwMA+DmqsWWmL2pu/m/7aX sRNa9DaSWsG6PzzJ9GbkgA5aC3yoBM30ChYZ7coiKfvp5j72Mpkixqesaxsubbzy/kwU Mwa0cf03QC1x7pK2GWIlUux89+4kokyb+Z72EsGoNmEaZnJFZkYF/Go9a8XS3kl44Gxo VuFA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si3094993ejd.730.2020.11.12.01.11.28; Thu, 12 Nov 2020 01:12:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727881AbgKLJHh (ORCPT + 99 others); Thu, 12 Nov 2020 04:07:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:38790 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727312AbgKLJH2 (ORCPT ); Thu, 12 Nov 2020 04:07:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8D358AF0D; Thu, 12 Nov 2020 09:07:26 +0000 (UTC) Message-ID: <77ba062d8ce103db81fcc7ac8b802e1b54befda8.camel@suse.de> Subject: Re: [PATCH v2] PCI: brcmstb: Fix race in removing chained IRQ handler From: Nicolas Saenz Julienne To: Martin Kaiser , Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli Cc: bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 12 Nov 2020 10:07:25 +0100 In-Reply-To: <20201111215354.21961-1-martin@kaiser.cx> References: <20201108184208.19790-1-martin@kaiser.cx> <20201111215354.21961-1-martin@kaiser.cx> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nlC5Zykkv/JgdsEcxKIv" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-nlC5Zykkv/JgdsEcxKIv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-11-11 at 22:53 +0100, Martin Kaiser wrote: > Call irq_set_chained_handler_and_data() to clear the chained handler > and the handler's data under irq_desc->lock. >=20 > See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained > IRQ handler"). >=20 > Signed-off-by: Martin Kaiser > Acked-by: Florian Fainelli > --- Acked-by: Nicolas Saenz Julienne Thanks! > v2: > - rewrite the commit message to clarify that this is a bugfix >=20 > drivers/pci/controller/pcie-brcmstb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controll= er/pcie-brcmstb.c > index bea86899bd5d..7c666f4deb47 100644 > --- a/drivers/pci/controller/pcie-brcmstb.c > +++ b/drivers/pci/controller/pcie-brcmstb.c > @@ -606,8 +606,7 @@ static void brcm_msi_remove(struct brcm_pcie *pcie) > =20 > if (!msi) > return; > - irq_set_chained_handler(msi->irq, NULL); > - irq_set_handler_data(msi->irq, NULL); > + irq_set_chained_handler_and_data(msi->irq, NULL, NULL); > brcm_free_domains(msi); > } > =20 --=-nlC5Zykkv/JgdsEcxKIv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl+s+00ACgkQlfZmHno8 x/7+Ggf/Zh+wMFcBh01rd+OOjl5oKxh2JrHjuK+wk3LOOacpflQn74tOURADGmC3 hfrCxT2hKd5SwI6zFBYpzeMxf7TflZgg3UeeO/ITLEbX+Cp3whQJNXRSSxpXTXbF NJuYj12FpHDWJhYyBTGeKMDuH7eCZwnhK04zOTbCbIgQz9GvTzm+5LITfPy/Yj2W z+GIs0lKp4IkeTMNc9kBrzTkBrtNS7TazVV+wy2XDh5ps7boaMMSWuoVncjIEn7B hXwquankBQAo6hDocMlEvduR5SXN/gRNEFS9w1b/s8MdFMVjiRzj+31HMcCsOtKL ZbGNGHQ1jNHYGk/h3DzEMVsXdpkhcA== =We75 -----END PGP SIGNATURE----- --=-nlC5Zykkv/JgdsEcxKIv--