From patchwork Tue Dec 3 18:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13892793 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 6C771E74AC3 for ; Tue, 3 Dec 2024 18:05:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A33BB6B0082; Tue, 3 Dec 2024 13:05:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9E2D76B0083; Tue, 3 Dec 2024 13:05:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 80DF36B0085; Tue, 3 Dec 2024 13:05:42 -0500 (EST) 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 61F4C6B0082 for ; Tue, 3 Dec 2024 13:05:42 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C15ED140B2C for ; Tue, 3 Dec 2024 18:05:41 +0000 (UTC) X-FDA: 82854425556.02.33B8D96 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf29.hostedemail.com (Postfix) with ESMTP id 6AB1A120015 for ; Tue, 3 Dec 2024 18:05:17 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=AB2IShO+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hA7i061Q; spf=pass (imf29.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=1733249122; 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=pVQZ7IZpM+mrxkcfX/JNZAZ1VT43L7FRc7e4RZtzlc0=; b=78PNq/sn4pidDHutmIO8tD1NtjuSyILIpiAZC+3IuMqqmaKUNe0iDYzKdTVsRdCHKWCoid 8iXmjgn533vL5ShOvLjh5FdSALk80P6CRztKsXc3d3aKu+rM/7Js2XNv5eJpQBLW7R4Ocs mwpAm2XlIKAuHlCQE2LRvZdjtfkK8jA= ARC-Authentication-Results: i=2; imf29.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=AB2IShO+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hA7i061Q; spf=pass (imf29.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-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1733249122; a=rsa-sha256; cv=pass; b=Fo0goPSH1nh39oJD0PNeAcNel/6NsJPuTPgHcZPAG2+etI3DZss40xklGUtCan0DmJa8GI V6UgHrBLqk/2Gf3WeFI3RwFo6imKwDLHAOHIwp+a1UkPedFM8vAUnQatm0orfXBvAgpM41 HIwyheEEA01g4IsdAqQjfrlFG9ugwCE= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B3HtarJ032563; Tue, 3 Dec 2024 18:05:31 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=pVQZ7IZpM+mrxkcf X/JNZAZ1VT43L7FRc7e4RZtzlc0=; b=AB2IShO+gNXmkDpomgn3Jg9pyVALYfHL NreATOumtzg66f6NECdOnIYCHMz/URjFWSBZ5j4bI1WUc4W7BFsuw+CVWTuRsBaI unzpQK5fpscyzyWSNot01AcjktlumhobXdOKPDMpHNElApVPH7UuizD4zCwR8lL/ +L5b8JsPJa/C7RzNMJTA2tGX6VgSKxuo9+lEUIQT89HA66HNswWYbNocyVHbhce9 Tb9XZptRaeL73vePwtuml7fLtWAaBZOuGCg0EyGSkU0j49n8mWJaAOxs76hjxLpK iv1YhcQpZ1LnAJQ7RHuhzvbgRf1hBpiSNWhS7vN2EbWnwhAmlG/HKw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 437u8t6mry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Dec 2024 18:05:31 +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 4B3HArUa031178; Tue, 3 Dec 2024 18:05:29 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2041.outbound.protection.outlook.com [104.47.70.41]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 437wjcupuw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Dec 2024 18:05:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qmirec2opiW7xndR/PJxi6Q10maP/B4EGLKADK3EljSVxq10EROn0D141Tu/8F5l7ViWacNzfPhsjE/AaujQXtcpVPHx6Xgv79h3y+EG0j8YFOY5o87cH1jZYKJk0uTvRrOgLrhlO2/J+rcjOE6BOSqrBHpg+2+/Zl9YxtZry1x9ATNieQXaiVQxBcQbMK5tbcuRsc6XKxwoKQivGAlU2KwnJkZyi5k11h8UXDJtbVK3gjEzdP64vGI1SDZohQiKtQm7mr8fd9C1GxyKLDfGfdXx//kDUAJ4tx8+tKR5g684Ke92Njqqqrl0C2BiZX1ZAZmVzatJDn9cAV+DjEl1/g== 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=pVQZ7IZpM+mrxkcfX/JNZAZ1VT43L7FRc7e4RZtzlc0=; b=W4EY42YHdf7AmwYglVUfD32geXMV5Hew2yuhigdf5ClIc/I9u7Pyh6ZRl+wF19hcJWmkCkONgBxJQf8zFIxUor60SXfqpz0xbZFXjF3RdqyD9X3HsR8rSgkF+B0Djw2Ks9ME8PlAKMkcUnonEYVzhKaR7TmSa03B3euATZlWInyL6XHRhnqLqNh1xbGWWpEFNfM/hg6Mcpq4rNEcMFTAVNhUByERiIyyUSEQOLr4lSVj1xunIaKQrlc+nJHnijY/Emw9Fhp70MVGjV/DO5Y5JFNw2VXmvs17yCb7MlfdFf/uwVefYDYnOwbHTDRhZ8H24TaHfiWidJRfi+lWebgvhg== 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=pVQZ7IZpM+mrxkcfX/JNZAZ1VT43L7FRc7e4RZtzlc0=; b=hA7i061QDFMkVkEvdcamZy9YTHAt0WNQ2BjUr37r4w+54/5kyZsSfHArD26djqJwbBG1+WjmzZW8LsidLh90hZIBkvwCO658boZf9Ao/anZHLvyFIdtwcOjiuf5oJmZBwEAz224gzqBc1BjqOeVX3NcyglZFz6x/PTwEBOT9Nfw= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by LV3PR10MB8129.namprd10.prod.outlook.com (2603:10b6:408:285::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.19; Tue, 3 Dec 2024 18:05:27 +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.8207.017; Tue, 3 Dec 2024 18:05:26 +0000 From: Lorenzo Stoakes To: Andrew Morton Cc: "Liam R . Howlett" , Vlastimil Babka , Jann Horn , Eric Biederman , Kees Cook , Alexander Viro , Christian Brauner , Jan Kara , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] mm/vma: make more mmap logic userland testable Date: Tue, 3 Dec 2024 18:05:07 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 X-ClientProxiedBy: LO2P265CA0253.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::25) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|LV3PR10MB8129:EE_ X-MS-Office365-Filtering-Correlation-Id: 5798af3d-d7a9-457c-9751-08dd13c510a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014; X-Microsoft-Antispam-Message-Info: hjr+I3Cm+u0CGuWUVo4Jggy1ylJ7Nzd473Vx+lKYrg2+yhU8LA0hnqaYwMn+KPH4qiYpx1INLlhLo52n+RYVUiLW6C0V4sZs2ycD/MpQnl1qJw7JH0g3sk0xppD8TnJDx5OrnaR6GJgz779+odoi8w8ayiPDfW6TAi+6C29EILnQmvsIbOG5pzSl8gjesaP3TzYPWJZrgXHl5zl7LzCGldk9rZ/GLbHt7ZxYsbFGrgCfq0DPlDyA4ObisYJ0Y3g0nREnywG21kxR0m0PmFhStnF/LWj6kpDGktHb82UYmMGFFKm8HfDpcRHB1+sBWZGE1da6ApppoTUOsXjsWdoEKhpi1kY9d+PdGv7T0cAKWFlaEH7ajPAyV/ntGKCXfL/ItVcVwx3hLfDl6xT69PUkFq9vwF4veE9On+YJ0IXyB+xNjQs0aJOGwhNUftMTzfbpXpisyP1Bs+D5G7PRvTDCsNnvi3gaSgBHQw8arg6jdfON7LtHx842OlYb/t/3DNBTH9cPJit1vkoCUGzXEY1CYxHQIMZX49ObODxV4dEbSBcughsowezKLEIJvgqJ94nOS1ofGVQy8atngCVcUgJqAYWzE1yotrlgVGh3iz08pJ79KZ2YFfSPwhkePvV9Pl+OPIL8s9oXK5xbrH7sKCDcr+GOtjsS74Xu0OX1j3sMUsXDfcBtoAw4WX/IMiwCCqtolROOlWkwh5PWn7PXpb6rChguOBKlozCj8lAfl2UKSKUbXLqw69bQIKEjaDeqkIFL5U3gNGfuaPl+WmMf8lRy4Axo4gLnNxaOIlhNtkYWldh479pvRX6mHqZ7z+lmsgvl7jDRe/UObjDuYQQ39H7TzUeqLXr25EFNge/19azdovyacoKRl7+IEPw1sWG3CDdVibnYpd3FVbgyemYZQvGto+N4nU/UQXQa7naL+2lDUW9YiaQrHsBW1Crc0F5BVFszAfTI2Ou2gCq/sfMqRTuumeOZZwU2GC3LKFenrfhu99D41eyLoaSJTAL0rD375e38KrG4lFn/ZnxOE5Y07mE2c2CDbCFeJsXN3OjcGKA/oQwLRYqcm+FDb9KcLRdoaUncekvy5SVUw2oVoJgjkuTJEO7JZQaub/Aw5WiyAI0pIB1+WBf5l0d17m2nMjUTpAjpw1/eGbzopNUZiWwkzjJZbxEoWObEoUXtdI3Kpmp5f+FfSRqkWlJ6PMlKrsoAKzb7hxJ7bjRWdbazRFiOmmVBXX7W82BV/DvqXKNpcHv/ylVLP5jAJG991u5U9Jc9lm2uRaAmMagwGizEWp2ksI3bDpo2VJTA1cLci6vYxFqJwkhVD8yiO7fMOaXeOoLFEsyQxdrocuUPbsFf1gGJluczgA== 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)(1800799024)(366016)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eR1eFiiesklYC14hhsMztG8PP6mJQ5Q2unGSFt21PFAYs0R1QNoag+tHS00kEFYcVjmVJb8iXXmoOK6vtEdQD0V4WBEpxn+r/ZCwKmU1fimpXQsbHXOTy6ah9wuOaIGtLuhR3mvmA/G07Xt3QSzIlSCcAyz1nr74XN61TbUHLyDawjyIUFEdOWd5vKR6uS3Bs5QIJPFMgADIw4MekPVH4Ex0ZP1KEbnF/hi/mJZLND31VEsl3uzFfTRTcIxcDb84bRcfn1pVE1n2PACFtvyV27jJ8TpiEnKwYbm/O7jHKyhyAoq5rlk/XFgNnsUTi643N/rdRkX7Db89WtOgjJICUCcm/d4y4a1RfVGQ9BRz2Wpu/7PuED9R5CuY1Hr7y43V9DUkflnGT0FxxVuZyS3bnRdwY3XGo/zmEXvlGvzegH96oUmzv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R7PwUeLVvAz4Bp8NKS1fEFqMrqL3TITHLvyLvTDcauqIqZQ29ju0wM/5r6OndXzgtgj3HUGcvw/lcywR1XP/rNL8Ww1EUnffj2qsW6WjOOt4wAePB3+5kc6Q== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: zV80u7FA5qX6KoE//yGVLoPQQ7TtO5K0bttKRvG2jqaUfuFJqTJPqkcOvDRz55ccTJ5t6xbmgiko3CnsxViftuIVk6R5XYdPF0dCHwqeIwxBXyfEwKVTuJFV43yNdLSQNcHbqsiqgHnnJa3dsN80rje7um5kdUPO4+NNAI8GUphZVADpT/ekoMjyFUj1fZCQ98yNetwVlueFmMzslk1Rv2LbBKuoF1Xcv9Ww7XxTGJ51Ix2z0iqu2KTRfsll76ZppkqYAdoTCgOv+uQPwusXDbkax+y6jCTRSSe0EMl0slEdR8gFHUHFX9LdEU2dVUu1pqPzlL//Zry/+wMdxlOJt1f0R4Kq02eXMJ3RQo1dcbcW8cGbNDqlAOGXeDaD2hejVFql/GIPnKkN8DflLo5SBwWZlFulSUDKTTGFGzpTEfxKxlpIVJFGJnUmaEmOv+xMvlzFDuKFLLITdWYVb4zZbU3ZR4fvAytCt+hJpOd7JzGNoySSYRR6nlMGFkQrNCaKLWeNTxaAvGD5I9UZChyOTBMO6Ig5hfGefpC0uHT2je70t9T/3s9dh5z0jjZIcsQIUkUX1OU+/d7ZZJemCaSU3duRqOOqkPASEnTqNXi7MOY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5798af3d-d7a9-457c-9751-08dd13c510a4 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2024 18:05:26.6570 (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: eTpwRfow153VTw39AYgzB3RovVZKfzgPmsWYUMQwMNBRunaKfyvmGpnFRAPVUSsd0o1ZNdZVCpnWSEC+h0SpnlN1kQY5aPjaZiI3e4qidic= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8129 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-03_06,2024-12-03_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxlogscore=998 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412030151 X-Proofpoint-ORIG-GUID: P8KLB9qigLHGue4HrDNcMuDMkXB_Pp_s X-Proofpoint-GUID: P8KLB9qigLHGue4HrDNcMuDMkXB_Pp_s X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6AB1A120015 X-Rspam-User: X-Stat-Signature: gd7fp7d8husodwwzzsocoh4qrcy546cs X-HE-Tag: 1733249117-843625 X-HE-Meta: U2FsdGVkX1+u63zDkdI1ilLz8zfF1hr/GMWxkuEMDVDuvdQBr1aFApmeUV2rzB81CEQXc1uPBylmNVqR34SQ8MvJRWJhC0mUngzYhKjJcZmWZxRgoVZUkBXAc5/fMs0jjLwZ0DRhDUhrbfkNytnacXdT11AGNzgm7UImsUU9hSDaUZv3RwFReTsTezjgNVjSJnGG3KbpBU/uQ9ng+15BYTHh3mAOEjkswoHBRJFMIJaQMqk6PSq+QyhcYV2149WoXNAq4rU50kH9TfHNfTZWkZ2G8erWVRRWHhL/w9HmEmWdtzSG5BPBeiEUcITE3gGKnFBUmF1/fHu1niMs/dZkOOoZ9WBaNsj/Oy+YHfewP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L8iLiA9FEt3Fiblsuzi6iiH2Y3ueg8dHuITATOzzlhdp3U92F2cQEPbpi5268bXIYEno+Ssh//ZZWfiU+1tZ9vNiIHOCDev2iPo= 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: This series carries on the work the work started in previous series and continued in commit 52956b0d7fb9 ("mm: isolate mmap internal logic to mm/vma.c"), moving the remainder of memory mapping implementation details logic into mm/vma.c allowing the bulk of the mapping logic to be unit tested. It is highly useful to do so, as this means we can both fundamentally test this core logic, and introduce regression tests to ensure any issues previously resolved do not recur. Vitally, this includes the do_brk_flags() function, meaning we have both core means of userland mapping memory now testable. Performance testing was performed after this change given the brk() system call's sensitivity to change, and no performance regression was observed. The stack expansion logic is also moved into mm/vma.c, which necessitates a change in the API exposed to the exec code, removing the invocation of the expand_downwards() function used in get_arg_page() and instead adding mmap_read_lock_maybe_expand() to wrap this. Lorenzo Stoakes (5): mm/vma: move brk() internals to mm/vma.c mm/vma: move unmapped_area() internals to mm/vma.c mm: abstract get_arg_page() stack expansion and mmap read lock mm/vma: move stack expansion logic to mm/vma.c mm/vma: move __vm_munmap() to mm/vma.c fs/exec.c | 14 +- include/linux/mm.h | 5 +- mm/mmap.c | 469 ++++-------------------------- mm/vma.c | 478 ++++++++++++++++++++++++++++--- mm/vma.h | 20 +- tools/testing/vma/vma.c | 11 + tools/testing/vma/vma_internal.h | 152 ++++++++++ 7 files changed, 681 insertions(+), 468 deletions(-) --- 2.47.1