[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZONe5/SuQ0qpb7R0@shell.armlinux.org.uk>
Date: Mon, 21 Aug 2023 13:56:07 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Helge Deller <deller@....de>
Cc: linux-arm-kernel@...ts.infradead.org,
Arnd Bergmann <arnd@...db.de>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][RESEND] arm: Fix flush_dcache_page() for usage from irq
context
On Fri, Aug 18, 2023 at 10:58:09PM +0200, Helge Deller wrote:
> Since at least kernel 6.1, flush_dcache_page() is called with IRQs
> disabled, e.g. from aio_complete().
>
> But the current implementation for flush_dcache_page() on ARM (32-bit)
> unintentionally re-enables IRQs, which may lead to deadlocks.
>
> Fix it by using xa_lock_irqsave() and xa_unlock_irqrestore()
> for the flush_dcache_mmap_*lock() macros instead.
>
> Cc: "Russell King (Oracle)" <linux@...linux.org.uk>
> Cc: Arnd Bergmann <arnd@...db.de>
> Cc: linux-arm-kernel@...ts.infradead.org
> Reviewed-by: Arnd Bergmann <arnd@...db.de>
> Signed-off-by: Helge Deller <deller@....de>
Please submit to the patch system, details can be found in my email
signature below.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists