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 55D9CC982C1 for ; Thu, 17 Sep 2026 02:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=lm2fU6VUAA2CcshNsS+yIrHI71OwF94jThA5xdU69NA=; b=lXaKf4ALyu+4GKo9k6UBS/OAMg jXjjIlIyieVOVltzoKGVBiGrbUoN5TH9BHZpz0N2pwdYs7z25ygvePsvgM82lvrbD7RtC1vfXLB8J EO9bb2oVHsMBaJy4qcyfmu9TvcuAt4YTSZKQxN/2cryrEzcZJCvStxukJZOZzQTCWR9FMgOcYikwX vPwi7PXPYrxCQRUhWNIA1K5uXh2sBgpeY5u4T0MwxwIxdCIwJyRZSumx83+8/jhsh+cefZ2+bzKUK EmaezTHOlpsjbyr/CV6bOfN7ZOT796uUyOQUMuRFH5Kuv6eMoOxHYjLr8q4T2kbu24fOzETp6ciQc LQRYFUoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x71uB-0000000ASz6-3WcX; Thu, 17 Sep 2026 02:31:19 +0000 Received: from canpmsgout03.his.huawei.com ([113.46.200.218]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x71u7-0000000ASxo-3vtm for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2026 02:31:18 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=lm2fU6VUAA2CcshNsS+yIrHI71OwF94jThA5xdU69NA=; b=Afbf6X7Bbv2cvH58IBnVCBfWLbO+BuHzxIRgq3MS/gKTU9eFLkULQKwza3cBJier2BVbBi5Nu lukb2TFfnUaOX9gAqL51uTva94FcFrAIP++92jVtHiuy61GC5MXPxk1Pb4B3HLUvYCRK242r1pU KNOTN0xrNv6V3fxW5095ZY0= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4hlfZt543NzpSyG; Thu, 17 Sep 2026 10:19:18 +0800 (CST) Received: from kwepemk300012.china.huawei.com (unknown [7.202.194.175]) by mail.maildlp.com (Postfix) with ESMTPS id 7E73140537; Thu, 17 Sep 2026 10:31:05 +0800 (CST) Received: from DESKTOP-A37P9LK.huawei.com (10.67.109.17) by kwepemk300012.china.huawei.com (7.202.194.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Thu, 17 Sep 2026 10:31:04 +0800 From: Xie Yuanbin To: , , , , , , , , , , , , CC: , , , , , , , Xie Yuanbin Subject: [PATCH v2 5.10.y/5.15.y 0/3] ARM: fix might_sleep() WARNING for mmap_write_lock() around show_pte() Date: Thu, 17 Sep 2026 10:30:53 +0800 Message-ID: <20260917023056.2280-1-xieyuanbin1@huawei.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.67.109.17] X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To kwepemk300012.china.huawei.com (7.202.194.175) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260916_193116_465655_A642EB97 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On linux-5.10.y and linux-5.15.y, commit 07e4d5380f2a844ab7a1 ("ARM: 9485/1: mm: acquire mmap write lock around show_pte() for user faults") introduces a might_sleep() WARNING when using mmap write lock. This is due to the lack of upstream commit 59e4f3b45b96a24fc9b7 ("ARM: ensure interrupts are enabled in __do_user_fault()") and commit e79ca91165d4fd18549c ("ARM: 9484/1: enable interrupts when unhandled user faults are triggered") . This series backports all these upstream patches into the linux-5.10.y: 1. commit 7733bc7d299d682f2723 ("ARM: fix hash_name() fault") 2. commit fd2dee1c6e2256f726ba ("ARM: fix branch predictor hardening") 3. commit 59e4f3b45b96a24fc9b7 ("ARM: ensure interrupts are enabled in __do_user_fault()") In the upstream version, the following patches are a patch set: a. commit dea20281ac8822661576 ("ARM: group is_permission_fault() with is_translation_fault()") b. commit 40b466db1dffb41f0529 ("ARM: allow __do_kernel_fault() to report execution of memory faults") c. commit 7733bc7d299d682f2723 ("ARM: fix hash_name() fault"): which is 1. d. commit fd2dee1c6e2256f726ba ("ARM: fix branch predictor hardening"): which is 2. The fixed issues by this patch set also exist in linux-5.10 && linux-5.15. a. and b. do not need to be backported, and after c. and d. is backported, 3. can be safely patched. V1->V2: https://lore.kernel.org/20260916084807.176359-1-xieyuanbin1@huawei.com