From patchwork Sun Apr 7 08:12:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13620047 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 39597CD128A for ; Sun, 7 Apr 2024 08:12:41 +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: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=SdRBx7dF91MvI+wiupWYBcOpV58Qp4KU80KUfK1KIWo=; b=bmVlmaDGIgGtTe CVizX5C41MUCqq//6OoQoFnWE9ewGfRxK5w0v4Y3dwoxRriquyWJ/wdh5ZF73SoKXEey55ovPmyjd Ywwnmxw7Sw6uiZJU+dRsMl/9nt6z5Lcxoy3nGi4/M8U0j7ic0hEfAklGk2SyI5rlk8tl+qFXno8cR 1PldQbIEJrIzCDzqbaK8bLfcM4kaYqjhIXtAsYCRO8XWlITOdUErPteckyJLz3GbC2zrvd/1W8Fez jJiJU2gSyxZ2T6LHJVSRkxotC/PAkTxxAY1/5cHI389Ovi17hHwq7mW12mWtgj2sm3LWNgV35JCV6 r4XG1Ff3Rmiqn6OE0bYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtNdc-0000000C5I5-1mx3; Sun, 07 Apr 2024 08:12:28 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtNdY-0000000C5HJ-21Zh for linux-arm-kernel@lists.infradead.org; Sun, 07 Apr 2024 08:12:26 +0000 Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VC4gG2xR6zbfQX; Sun, 7 Apr 2024 16:11:22 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 2D608180073; Sun, 7 Apr 2024 16:12:19 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sun, 7 Apr 2024 16:12:18 +0800 From: Kefeng Wang To: Andrew Morton , Russell King , Catalin Marinas , Will Deacon CC: , , Kefeng Wang Subject: [PATCH -next 0/2] mm: remove arch's private VM_FAULT_BADMAP/BADACCESS Date: Sun, 7 Apr 2024 16:12:09 +0800 Message-ID: <20240407081211.2292362-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm100001.china.huawei.com (7.185.36.93) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240407_011224_706964_57593F35 X-CRM114-Status: UNSURE ( 6.44 ) 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 Directly set SEGV_MAPRR or SEGV_ACCERR for arm/arm64 to remove the last two arch's private vm_fault reasons. Based on next-20240405. Kefeng Wang (2): arm64: mm: drop VM_FAULT_BADMAP/VM_FAULT_BADACCESS arm: mm: drop VM_FAULT_BADMAP/VM_FAULT_BADACCESS arch/arm/mm/fault.c | 28 +++++++++++++--------------- arch/arm64/mm/fault.c | 41 ++++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 38 deletions(-)