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: 13620043 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18D9FCD128A for ; Sun, 7 Apr 2024 08:12:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A12A6B0099; Sun, 7 Apr 2024 04:12:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7287D6B0093; Sun, 7 Apr 2024 04:12:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 536DF6B009A; Sun, 7 Apr 2024 04:12:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 335CB6B0093 for ; Sun, 7 Apr 2024 04:12:26 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D5A00409B2 for ; Sun, 7 Apr 2024 08:12:25 +0000 (UTC) X-FDA: 81982018650.28.1BA0ACB Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf19.hostedemail.com (Postfix) with ESMTP id 7A37D1A0008 for ; Sun, 7 Apr 2024 08:12:23 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712477544; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=+5z0Hpl2n4Oq/dX0D/EbM3m7S0E2yJfLEJcdrg/ySls=; b=XUYmT7hOJOnPOF7bVPEtLnmFNF+7aTr2CKvULYJM78lK4aDytNF5aHlXvYZ/VDjCOuxwqq cmWAiFjsgfo2uWaksv5enHzLUxA5JRjrMVie595rpYefEAC469jkToyYCBiXUblD+fhDFH 0+kh3iY7g1YmEDPj6LLrIVxlt9bL+TM= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712477544; a=rsa-sha256; cv=none; b=Wpv2hItSbKPMJcnUa4yMKovBDnRcWxkbzQNxuc1ZGSg/Re63zkbokcwb/efNumdPj9ErX4 VOJMUSuuseBZ2lL1K4g4PkRihIbhVfzBhf7YNAcvMJeMb9Iqeu6u6kG0hLZpXlwqIUNwdI m+Pd0nXYzZOaAPRJAxivLtuHxGj0OzI= 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-Rspamd-Queue-Id: 7A37D1A0008 X-Rspam-User: X-Stat-Signature: w6nzoc8nrsmh55yjyh5dup9bw55p5e8o X-Rspamd-Server: rspam01 X-HE-Tag: 1712477543-179516 X-HE-Meta: U2FsdGVkX1/UofJIQBhrq8MXnCoWQv7gFoI9z8TtAEGyQDa4XiHx8mYFt549K/KdBTkCvDKVPLxtescJwbBPTWKvLfB3yrq/5PRNVEHTysdPhIh5ltR2ma0rvINC4IXD+fgH//jmjn1WeAMIcCwl2XPPNchsKLNDDbGRM6ugGEp3N31V7gUSHGJtwmaOlIKa6hmb1o7ATzc8nUCxmB+/eA4mi6KrhZQD53LzqdnG8xXsrBc1j8wHnViZ/fl4SxKgaKxYqMpAngHhKt40x39I+Xk+VghYnl4uiq3yULPdnWG4YcgL4i7pihxKPE+ft3TXWV5PR1ZViQQ1HnHJEWV9V+4rJpzpoDo832gWRW2RY0Zdjgu8ztxfiOz3CSW2F9VJjXjkg+QpRaXyIB6b9ZppFoeIQxQLmGLdwDw4ka3LO+7dG8reg1auK7PJbwtjYZQuB0y/mEV0udgXuBdqRUNuCvVrUBzQVKM8/R371KUXT6giJ/r+T+nv78IVBVzo8On7r41h/R9ReSA3ceybOkfLHUOgFgt2BD2XcESuJ/gFLnVKD6b1tWR9wP4ACLyeIDQHnSmMLsA2K+jcYLZ/98pKhtzbset4nX1/Ec7ZjR9s5KylVkZExYCgjsFFmesTE0Zz513NC+Um170VmBppD/9ZUpCVyUt/YaXKt2Jf0Q244SW6jGWyMU5+3Lj3jeObIypuZOtITnDWBiByyEefZCLi+IZH9CcEDDhgi5aUTyIygo1t0rSjpzdKvLsDAOZ2GE5BUnRW04gpxC/bKwfTpjmLD+HJHl4Xaga4mFlGF5CFQtBr2KDs56EqoIjCffFI4MN3zsjk04IDuywiTiv3wWTagAUGb6MS/Z+UCh6RYN2LCFGQ4XyfldOK4nj/rtmXcJsVeffMp4d5PZ8XR8zOdCHiQA87FfiOJJ08eKMGlAlBjzZTOBuLc/Cm4frUjkHdSLkIVwS5qYe0KxFquifPRrF lHuUULV2 C9KnMctnOgZNXiwLbkYUkchLlpp2rYuRPwz/gynCYCAaBbME7VfF1DWzQEMbEPWJg+3jTbCd83nuFR1qApaW1LP6h3E2nonEdqz79u9JAco8b+FAQUgcHhkL+EdDAqLpit6WI3Xm6M+VDLRsWZ55txCtRmG5ZJVGqF4G5bOcZw0ChbY8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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(-)