From: Marc Zyngier <maz@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Guenter Roeck <linux@roeck-us.net>,
mpe@ellerman.id.au, christophe.leroy@csgroup.eu, windhl@126.com,
Julia.Lawall@inria.fr, joel@jms.id.au,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH AUTOSEL 4.14 3/4] powerpc/msi: Fix deassociation of MSI descriptors
Date: Wed, 28 Dec 2022 10:37:58 +0000 [thread overview]
Message-ID: <86fsczbypl.wl-maz@kernel.org> (raw)
In-Reply-To: <20221227203611.1214818-3-sashal@kernel.org>
On Tue, 27 Dec 2022 20:36:08 +0000,
Sasha Levin <sashal@kernel.org> wrote:
>
> From: Marc Zyngier <maz@kernel.org>
>
> [ Upstream commit 4545c6a3d6ba71747eaa984c338ddd745e56e23f ]
>
> Since 2f2940d16823 ("genirq/msi: Remove filter from
> msi_free_descs_free_range()"), the core MSI code relies on the
> msi_desc->irq field to have been cleared before the descriptor
> can be freed, as it indicates that there is no association with
> a device anymore.
>
> The irq domain code provides this guarantee, and so does s390,
> which is one of the two architectures not using irq domains for
> MSIs.
>
> Powerpc, however, is missing this particular requirements,
> leading in a splat and leaked MSI descriptors.
>
> Adding the now required irq reset to the handful of powerpc backends
> that implement MSIs fixes that particular problem.
>
> Reported-by: Guenter Roeck <linux@roeck-us.net>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> Link: https://lore.kernel.org/r/70dab88e-6119-0c12-7c6a-61bcbe239f66@roeck-us.net
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> arch/powerpc/platforms/4xx/hsta_msi.c | 1 +
> arch/powerpc/platforms/cell/axon_msi.c | 1 +
> arch/powerpc/platforms/pasemi/msi.c | 1 +
> arch/powerpc/sysdev/fsl_msi.c | 1 +
> arch/powerpc/sysdev/mpic_u3msi.c | 1 +
> 5 files changed, 5 insertions(+)
Please drop this patch from all stable branches. It isn't needed
before 6.2, and doesn't fix anything on its own as nobody uses this
structure after this point.
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2022-12-28 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-27 20:36 [PATCH AUTOSEL 4.14 1/4] powerpc/rtas: avoid device tree lookups in rtas_os_term() Sasha Levin
2022-12-27 20:36 ` [PATCH AUTOSEL 4.14 2/4] powerpc/rtas: avoid scheduling " Sasha Levin
2022-12-27 20:36 ` [PATCH AUTOSEL 4.14 3/4] powerpc/msi: Fix deassociation of MSI descriptors Sasha Levin
2022-12-28 10:37 ` Marc Zyngier [this message]
2022-12-27 20:36 ` [PATCH AUTOSEL 4.14 4/4] HID: plantronics: Additional PIDs for double volume key presses quirk Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fsczbypl.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=Julia.Lawall@inria.fr \
--cc=christophe.leroy@csgroup.eu \
--cc=joel@jms.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=windhl@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox