From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18CBCEE4993 for ; Mon, 21 Aug 2023 12:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wHnxm0lJbgm2q42/Ij0hyZXNBaiOoK/MZ+ZStbcv8Yw=; b=WgBpDv9HPouOR8 dAP+u438RKkr9tPQhm3pQ5B15J7hlf50KXNgLTxR6bJ/NoELC4tP9SiGf8gYJ4YL5bW3v9ig2vl0C 5hMmsa0gsmBcF7DaHWumWvoQX0Jq742angReSGqCV9wwBk6MI44jN59KPR3iaFDrnSTomaQOuGWVI LPsHNC6wo2/Y2OmDKsS32doe0mp6dlXIyUD3M5A1SNvQru081KQndRlouNLkg29y9PxoeDyue6zdL 723K0T8b6gUGht0OYR5XqXAV8B3UjTW4wM6r8mGhtjFJBm2XdYpwoFV0BrdD8jHML4qChbx1/9LWd rCoxVtUvthbO31OHwJMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qY4S8-00E2Qr-2V; Mon, 21 Aug 2023 12:56:16 +0000 Received: from [2001:4d48:ad52:32c8:5054:ff:fe00:142] (helo=pandora.armlinux.org.uk) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qY4S5-00E2QF-0i for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2023 12:56:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bZuXrJnycDPuWsVWT2G7AaUlErg2xS9Lt8LBAxiLYG8=; b=0dc2CaV81hgg0b9IKZ6hSLULgy +rz0Vi9EuPClZOLAAnIPmA632QV1vODZhVwckDuAEGo4dQAfs0QIEe21qFLqukhI3JQIJ+nlru49B G889dqmgZfC70ftNtB0w1I9UmwY6flzLmLvM60VsDx0x3J9XhwIDlpR2zX8wzUB/ZzoBFMQbYip14 RS8F0G9yTMvfNy83FeiLA1FA7nhaFn7bMHkd2XHRenfxNNKtdHGNDSsPQqmpZVSDngDPBPx7u4gez 88aaTXi394snz9GXA4BGLNCk7gqdQcjb0dGbG79vlAZTpN8/ZtgaZTzihcakvYlFdfDWOycPae1lf e+EhE6+Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:41892) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qY4Rz-0008Va-2B; Mon, 21 Aug 2023 13:56:07 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qY4Rz-0004mn-3l; Mon, 21 Aug 2023 13:56:07 +0100 Date: Mon, 21 Aug 2023 13:56:07 +0100 From: "Russell King (Oracle)" To: Helge Deller Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH][RESEND] arm: Fix flush_dcache_page() for usage from irq context Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230821_055613_281997_FCA0BB49 X-CRM114-Status: GOOD ( 11.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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)" > Cc: Arnd Bergmann > Cc: linux-arm-kernel@lists.infradead.org > Reviewed-by: Arnd Bergmann > Signed-off-by: Helge Deller 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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel