From patchwork Thu Dec 12 15:36:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13905391 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 7E798E77180 for ; Thu, 12 Dec 2024 15:37:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E51626B0089; Thu, 12 Dec 2024 10:37:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E02026B008A; Thu, 12 Dec 2024 10:37:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C53F86B008C; Thu, 12 Dec 2024 10:37:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A91416B0089 for ; Thu, 12 Dec 2024 10:37:57 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 9C0401C6A81 for ; Thu, 12 Dec 2024 15:37:50 +0000 (UTC) X-FDA: 82886711208.19.BCBB715 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 31B9E1A000D for ; Thu, 12 Dec 2024 15:37:21 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=bx3JQlXU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XTVZuNUO; spf=pass (imf19.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734017855; 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:dkim-signature; bh=gtZ5HjoSyylorDC+yChK39rYsCAHJvWgIXZqRNkgITQ=; b=SmsB2/T2J8zCcQcaaezvevD08gDDvBshL6oll1ynl5vr9cTPisyUGVp9rqEkLSSLfI+l5c i5Elach8GPuk7jq0bDP4R60Ec0bjmVAKAotXig2B0gcv/LyQeJ6Y6CX/08XQnHGsOcSeVp A7TvLCy/XQ78GUuRUHrpD645cW3FNk8= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1734017855; a=rsa-sha256; cv=pass; b=qgUzYB3MybwXS6wVblrekALWw5UCeVamOpAXKLgkZ7wJo4qQvyC/JvYu5AI4QWJUxwNjXk puB2L1924qoCQVmpdYWXqAXMiAEZ7vvqnCAHFAWqsSEBeavHeLkipxnPLrZxKP/jYl4wGM X80KxuJ40TrmY9oi4WqmId0WFbwP1oQ= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=bx3JQlXU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XTVZuNUO; spf=pass (imf19.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BCCMGnm014128; Thu, 12 Dec 2024 15:37:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=corp-2023-11-20; bh=gtZ5HjoSyylorDC+ yChK39rYsCAHJvWgIXZqRNkgITQ=; b=bx3JQlXUTLfJ6zcPGQa6X/enhLKxvpGE yJEaTdlxXsZ/GZaM/4Y3YQ1i7QmSEV0HssR1xfr08YZD/QJZoazX76Q5z0NYKTSp ncVWcEy1YbllP79wtbwVwe8k6Ylzn4PSS3QvhENITp+bMkCOH5lCoPTvvwgwTxUK eUuvx8ccUZIXdvm1ELpzm6i4z6Z7Sirh44Rdq12FDImxzU0Ry/T7pjOp5azZVlWL a3DwX4ihkut71a22SqTXQl3xZNYGs7Lqb483EG6Dys2E6EZqjvdp4Nzqjd8mWJjV zFfKLq5kzjRO2ULelY/1MmwscBsO20fpQiwFjOrDjIEJoBKwpmqN9w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43cd9auen4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2024 15:37:32 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BCEwPSr020564; Thu, 12 Dec 2024 15:37:31 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2172.outbound.protection.outlook.com [104.47.73.172]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43cctbap6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2024 15:37:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G/KEIGdnFcJrvVJ1K1etxMWHNTImgXM+1VxRcAOXgUlMoE1lbxRcLtXMVSGOgE1DkPbkzYL6KOafro4xB+OEwK+vureE8HOFvOUYxDZm/iNVbdYJN07RkoA5BN3LHxlSg1b4jr9yrd627nUS3wmUnLEokWi/w1QODz1pUgtFiS1Lxkug/KiXtNtOzqIf3l2MWHbbF3ZDQH5tQFaEMDMG/10pDXdY0yntrB1C35Od/nGmiEB/lhLq5j64zlkLQ/wG0kbf6wAs/KHhIJGZ/yLQrzyo6fSWDfOp/MdsZ3t09G6gKO7c6zpeuMkdzrkzT8Aw5wDVVUmTWOgmTUOAgkGb2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gtZ5HjoSyylorDC+yChK39rYsCAHJvWgIXZqRNkgITQ=; b=YO72QGZtQDxk9wQ+EEx/uKQP1ZJEVMMw8veNRdWcYli8lBtr5mRQOk0w/CmhaDMvhgqNOWgPQFouVzOJ91/96Ko44d/sSEKzkEb/q+udEXDiB4B/hSr6Nbj0jwk01IaUOj0lGW+gFeMPvdt8xZENmKXD73z7fey8rHiKinJA4zNeNd7lNcJjRMRk0L0Xc3iIsQlMrx6jcjASRuEGomVGpmLO+dntEAq73Y874B4B23TiOI61u/fRsEtUPkk/e8tE66ariKtAG/0TrojjWJI1vlNGKeN0sAZHw3YxgdGlZnRjp9vQB2lCiRWc80teaGV4aHX5WlalLFkxyOkb0doWDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gtZ5HjoSyylorDC+yChK39rYsCAHJvWgIXZqRNkgITQ=; b=XTVZuNUOwEJ8mMhameCQEJK+h/KBjozsueLFX9/fOeHESWZNQqxHc580CJwJ62JXiR7UdH9Esh7c6i/SijziN2YPOU0I4UZ3tah8258UdAi7iKsg6tCqhJwOaANR0gvM8aTIA2uUuUE/Sd5nx9fzvZrB3HZ3QA6JZ8Bk6yzNzz4= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by SJ0PR10MB5804.namprd10.prod.outlook.com (2603:10b6:a03:428::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Thu, 12 Dec 2024 15:37:22 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%7]) with mapi id 15.20.8251.008; Thu, 12 Dec 2024 15:37:22 +0000 From: Lorenzo Stoakes To: Andrew Morton , "Liam R . Howlett" Cc: Thomas Bogendoerfer , Vlastimil Babka , Jann Horn , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [RFC PATCH 0/2] mm: update mips to use do_mmap(), make mmap_region() internal Date: Thu, 12 Dec 2024 15:36:45 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 X-ClientProxiedBy: LO3P265CA0002.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::7) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|SJ0PR10MB5804:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ecd636a-30ae-4dcb-e384-08dd1ac2decc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: nEZaWEZQmAFbIFl13Zrk/Fr7340/Khmku/2DQT31muFheA00W8gstmPzb8BUQS78egjmK+NWSXCCBW5gJT4iU3rAK18ZcJOL3mdY1KlXCH6ESQrtwmaz/dVkwy/JnTqpZzeqVH8arPOpYxp04SEchPvOjSMAmriIVDOtsXHa3Q4GzBvsK4DcqDW/0bETL+ohRV/bw/lvr9KIR5nPQvDTFHQf1qwWmrWYaYMkYVPE4g3mLqWQNu0ufcKXGTVd2a34Bb8UjhEDLwcBep0wQIjGZNOMSMMNlix4ojohgVEOmWX0fayGBAv4rDQBitv6Su4LmYD1vV1Ozwv9hR0XwL6UlhzgftMSxYx0qToJMR0JvMI0c1hdq/68Eidukdozg0Da2c1HhFQcQ2Lk0bkNzPFLv8bXy34z10Tfji50RxkKi2RBrQ4+jgrZ250/UH5B0a/XuZ21doOiGFH5Ng0IbUA002FtCPlRRYYmDtkmBGwaXGA7FZztYyww8IuQby0iuhfX4Bu+ceXake6QFAjJfiHFiIfK425ljGqleul65j0d3m12+9ONum0FkQ5n3RyJLuIDsPBOPAcWDkJlcXrmoEf4zKO38dk4dh1+70k4mP1iMmjHG2dpzEK6nQLhwFDTOiqsZ0lUnY3QKkKQqC7C4GZNe2XSDzXpiZl7QUDJ+xkaQmr6lJ8tRIwJR546zYM4sjQ8xz3RP3AqDr9Ay2qJKHpi94sui+Q4zKiOAIAHHGEcp5YWfSp9bT6GPr8akBVjqm6jXj1e83SXqheGbQOYpVnUVavHOjR6tOv7kAWtWRwq7n+qRa0lvav8KM54XICLVnIopNof41yHa55E7WOIFm6gOZDI8ozb6lhWXmQX5+pLlD/Mzath2/AB25vrsCwFNNyH0xnESPLxFc4a4I/DL5SMC56Nlj9sBPFVSHuXCFhaXdLwfvLzKheY/QmX7qZRDYpD3Y4NELopaISb9/B5cZZFIc8UXP7qG07t2vJp1r+DZrnrVAqOx4NoNt/tOCSsMR/Z2Qjrc+BNZuGVG2Del5Bdn/hAt9nYUxF+JWq6o++St2VGimLLrsguvL0VELpwcts2mzcBmtfw8obWnAPQrjfoOqNN+sjrdSO/AcckhLXVo0JDp/iP/pCRN+ZNyq3H40wE1AI8MBlIJktdzKx9NmqP1Bexai9IycMs5KYm/Q3HHqLQcKUqKbIhO830dI27crv6vUEJ8fVofFCH1GfN4en8Ga2bF1fFIaa9TTjpqF6AZDByCLXiRu2AYIqYgC+BGZENJfPaQBS4sIJXZWQXo55bJfAPAU0AYHLPkkc1w7sTCjvWhSZasYIDkZeyFUHhI2Y/G4CQpqqv+JLKuE4izo1k5A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3366.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ztxUgGmgUxaGqZx6+o6wGBAzulhAw8b+QO8LZxCFFN5UPQbs4gxlMUeuX3b7PbB5/lPJkBF4oO0vznHVwWKMkqyG2oPb/Jq7F4bawUQ6ii9t9SJ1vMNBoSzDZAqAqsCk0tm3uVB7xFbOXLNpYuxRVd++zKJ2g+yIsnFgZjg4as0E9/TS5W+gJeQIyJmk0DMxEhHkY2t4xGL1SzlYSLz8T0b4sOb5t+BmOCoyAB0V85s7ANaCYaY7HI+DwR/aRpkqOMtHWy2QE+Obu8EZLxhWIjbUrwY06orUKzMjBZ7rLibP3Zc992SF19h5tplADw+EUhSGAhpBjhmV6faM7HTxjJz8Tf+3J19SHxjN8udbzjsdaaZXCZeb6Nuqrki1BWCbAXDhWftYSjRvxu71uMCpO62RztvDuKMqbOLNC2wrVpszo2hshAXwwbPMwN8h39S2HJy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u+UAHyKN8xU+aTxE3jJCJ2X0g0M51nFhxVCAICxM5IYcXZfA6AOlnBIBZXnyUTSMy/buzzDnDYqEf9jCQDUjAXQNaQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: A/zfcJ5uiGkeaTq9bmRedL7X7pB3sBZVIBzfyWMIEwliOSNYtor4s7H/zhZArhcRnIIPJSDF+KS5HrC3/tCkfCUXKtFv4Lk3Qop8zhRbOucIcst+mBKO0hesDMfKOOm1UGgDxjXZFzQj0EEnqVDt6+uZ+Ov3WF3b07x6KzlMBUmi+FurG0KrbgjT/Ti3jSWHmXFmK0nftUBABL8ApP/Vuhw1LxsuFguwRoJ7ucDG2c9e1lBkPpKu7Sp+i+CtH3NVMmIBmdDMptyX/egGkn5Pl+wX47KuzoNYLEOjzr9Vyksf31/u/cWD8vfyO21qjCJZ67KbpOdxzh21g4y5x8z5oZcZ/4QKkHKNlcqIGd31HQxvZPlcrFfh7osdaoSj5v3Jt4mwcKjUVXq+XidVPb00/vkjh6qn6hqZ2il4lF3WlVK7gjaCHCUu91ezwB1F/mGdfg+w5kqsgbSthWU0NdrgslvzQYuv2HUfkrXXyx7K3iDWB6XrQRRuGMG9Vk0QqgrKSIikuMkND7snbbmjRZmbi8dvvjZvMB0AHtgHIWjgY7L2Nh96PGFToKg2fqP14IlZ/MaPEZhfIeNmk7xFfdahpk9YVaqieM/Lu2cU+tNZuVE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ecd636a-30ae-4dcb-e384-08dd1ac2decc X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2024 15:37:22.1826 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BIDgR5L1ZnAebP/ttHl/3Iruuq2ehCA0gVC3p1c5dEHiY2i2BDpiN3xiYi5KbVMLCt2JxUBn5VyGTxNQdHm41nnC1ZzQle+4crWW9unJbr4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5804 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-12_09,2024-12-12_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412120113 X-Proofpoint-GUID: XpdUV9ORVYouFlervwXY2JWHPQMSF0nj X-Proofpoint-ORIG-GUID: XpdUV9ORVYouFlervwXY2JWHPQMSF0nj X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 31B9E1A000D X-Stat-Signature: dopubg5mdwefcr7ogatek3dhh9h1dof4 X-Rspam-User: X-HE-Tag: 1734017841-519829 X-HE-Meta: U2FsdGVkX18CZR1yNrCtdBFPDB5YhJ9VgH37PJdJ81YVY3oFiv2zdWqiG1LOzNWcUKD6HHeKkWsqLCENLJvGg6XDGdhPZzHbPEoT3eoGZThZx9PwC6VgcCBSwc4B5Y51ucgOB2JrqVtMWCbLCLzkevEIhAC1j0C/LYgcLkeZnVqsoNCKN9ymUwyQYZIFgApjaiPXNEk0Snz1QO2BNq5H1TvV7x/e4PJI8nOIJB9r3nvt21JWvWwj1jxMNBeqQRp0NLhjK2jsUIxrQfAkm7dr4OW6545rwzWCApTI2QSqtHGOu3NW75rejEkp/HRemQ8hpg6jOvouDtBuM8TkIju1WUw0S07rGPOljEo+Wc/bUcnmMpfbaeM9ToMm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bozdwwaOKeZMvb/zleo/6zUK8cdUv41QQOwIOQRxwbWbVDwXyfLWN6TSnKV6VLrQsAPnpCWMkq+A6wH7j++AB7WW1+i23TG59RCw5F+G0s+hNg5ydbY5iWO6Nf/DGYAulk6roUiWc9Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000246, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Currently the only user of mmap_region() outside of the memory management code is the MIPS VDSO implementation. This uses mmap_region() to map a 'delay slot emulation page' at the top of the stack which is read-only and executable. This mapping requires that an already-acquired mmap write lock is utilised and that uffd and populate logic is ignored. This rules out vm_mmap(), however do_mmap() fits the bill. Adapt this code to use do_mmap() and then once done, make mmap_region() internal and userland testable, and avoid any other uses of mmap_region(), which is absolutely and strictly an internal mm function which bypasses a great number of checks and logic. REVIEWERS NOTES: Thomas - I lack the hardware or set up to test this beyond a simple cross-compilation test, so I need some input from you MIPS guys as to whether this is workable. I've therefore sent this as an RFC so we can be sure this is suitable! Please could you check to make sure this change is OK and I haven't missed anything? Thanks! Lorenzo Stoakes (2): mips: vdso: prefer do_mmap() to mmap_region() mm: make mmap_region() internal arch/mips/kernel/vdso.c | 10 +++-- include/linux/mm.h | 3 -- mm/mmap.c | 34 ----------------- mm/vma.c | 36 +++++++++++++++++- mm/vma.h | 6 +-- tools/testing/vma/vma_internal.h | 65 ++++++++++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 45 deletions(-) --- 2.47.1