Message ID | 20240820235730.2852400-3-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 57C71C5320E for <linux-mm@archiver.kernel.org>; Tue, 20 Aug 2024 23:58:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F2C1C6B0085; Tue, 20 Aug 2024 19:58:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBD336B008A; Tue, 20 Aug 2024 19:58:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A24CF6B0088; Tue, 20 Aug 2024 19:58:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8080F6B0085 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 19:58:07 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2243C120123 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 23:58:07 +0000 (UTC) X-FDA: 82474289814.04.BCAE570 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf17.hostedemail.com (Postfix) with ESMTP id BF2E540003 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 23:58:03 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=nv4quwBW; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Dez7pu40; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724198219; a=rsa-sha256; cv=pass; b=yH5Rsxk4/GiTdfxg/qIw/L5EU7b9+0ZioyNk1X1KbdlqsdlLErnCVqi0xa/vQgUPFZ0kjC lMDHluRkyjZ02IVYXvMwbxKDOE0qDo1pYS4z9mtxU/nGq1MSYrUGA8HFXp3KHC3BbOmbjH P5zLpxs7tWMe5t+PR8360yUAmq6bgao= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=nv4quwBW; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Dez7pu40; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724198219; 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:in-reply-to:references:references:dkim-signature; bh=WZRaFvqKhmeZGOgIn0cNM+Fo1hKAtKZhH+jC5oCYViw=; b=xWblUo7CD9POee2YuAs1Sdp5elrv4nIN02a90cxGFljoIs43c2zgyOfinXBpHEoU+gJMr3 vAWX/cIpMkKiB/PQY7LPeBwBOY5/yvFpLQkq1xfDgQYNYAHYV4ctEiUlXWUOVKNjIcaEiw yRX1kebPxMe8ZjKYWfMf5UbCkWgirTU= 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 47KMBb5f017828; Tue, 20 Aug 2024 23:57:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=WZRaFvqKhmeZGOgIn0cNM+Fo1hKAtKZhH+jC5oCYViw=; b= nv4quwBWD7pYdG94/GKZ9vqqN6RPoLz6xpPBU6kv5jyZmhNsQcyL/PK6vCroKYQy wOo/molDKmTukHp8iaVzEEcVtv2cr7F3vpGXnCFSN/FxAx4P4OU7upsXt0U6Jx0m D0xBcvVlLsyE3AoMuDcV125aSWc+wUrV5gUnZKd9Bh04a6vE2txRP5XAtcQRlCB/ PTN70I4vqz/3HF9ImMUMiFEmT15sFUwiOX3X0NKSAm8I5PtpJjGxaluFA0iP8NMh bwPuEsInVG1nza7bsZlWw744ewJEEWO9zN0/DNDLVx9kD3hJzrmgQkVy5Km9u7+i i4WEely3orQl/pGksGIK2Q== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 412mdsxagh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 23:57:57 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47KNY6L8023532; Tue, 20 Aug 2024 23:57:55 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4154x78fsn-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 23:57:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V/OmLi9P0va2F5nd4IcG02exAbXdDsTBO03FASM2uO9ue1kC0za0qxaJdQk2wx0Hw8AM6whQ+Igx8dElJBfDjuqa1PtZe47+vY+w7ktsCvnHVzQC55PyPtgl3RG6IcmvUE27pAU8ArGAjsxwi6GsRuQzP2IUijptbMi6Ey35lvUr1jWj8jMseKB4QnVOTAQnnjAHJ6Ya52UzoidxqrzImJn2OUVTY1d9zz1KYRsgVJ3l96bSE0hqV8RGV8puDHgk+yVjkDhAKOY1g7Ue2mQeZPbpBpgLpxi3AQ/BZ6JMrtRcI5Pmq5iFVCN4x8jWdfm7w3QJ4108zUbFIZHmWgVPOw== 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=WZRaFvqKhmeZGOgIn0cNM+Fo1hKAtKZhH+jC5oCYViw=; b=XdjZ1IgTrSvQwfWJB5JRNf3nFehT+KVzrWi5m/iJFs0pXzfQFxiwFKpEmvDM4uBJI4pOgjQugOSQH+KC5SKu2SW0MbzBJ78RGd4DrnaZXclauc+Xom3+Yww3q5SFE242UKOctVr+BoDDJu7HEBfYLicb846UGxxSFiXKwIxdg5WpEmyHRblFGSYZYeqPa7DpBQLtTTcZ62Sk7tHmeT7RzgJTwpTYJ/y2XGqU2jAx1hYYsHKmFPh1Ou/YkWlxUu2qZe7OEUtiRZP++y0CZoGuzzBjE48Ho/nBVniNy+oeGVo2bQXal4/1Qs5k1IAWqidAD0QiI8coPBxOYqp85RoSYQ== 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=WZRaFvqKhmeZGOgIn0cNM+Fo1hKAtKZhH+jC5oCYViw=; b=Dez7pu40Oe1FtiBVWEkDQA9IVFsMkVi0nD6RCxcjjHQ/YqkxhfgfP4mycBtTm2wQaW4UrYMRaCYUKdExWpk6zSFMFSHi4XQkNjwYUWWBIyIIAsQy+y0tNgqAq54TRIgyQLV9dJeWJY8HGdYA8lVuhWwX79wcJpUNLj+3C7Q23a4= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by PH0PR10MB7099.namprd10.prod.outlook.com (2603:10b6:510:26d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.13; Tue, 20 Aug 2024 23:57:52 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%3]) with mapi id 15.20.7897.010; Tue, 20 Aug 2024 23:57:51 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan <surenb@google.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com>, Matthew Wilcox <willy@infradead.org>, Vlastimil Babka <vbabka@suse.cz>, sidhartha.kumar@oracle.com, Bert Karwatzki <spasswolf@web.de>, Jiri Olsa <olsajiri@gmail.com>, Kees Cook <kees@kernel.org>, "Paul E . McKenney" <paulmck@kernel.org>, "Liam R. Howlett" <Liam.Howlett@Oracle.com>, "Liam R . Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v6 02/20] mm/vma: Introduce abort_munmap_vmas() Date: Tue, 20 Aug 2024 19:57:11 -0400 Message-ID: <20240820235730.2852400-3-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240820235730.2852400-1-Liam.Howlett@oracle.com> References: <20240820235730.2852400-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0189.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:110::7) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|PH0PR10MB7099:EE_ X-MS-Office365-Filtering-Correlation-Id: 75c9c907-2a0b-472e-6f23-08dcc173e69d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: LKFzCz3SrF4Wc1UIFCCAkva8PqQhG2LZurC3Sqvp5DdChyZkaaRG1uODbNSk5DGHLbYAIXIlGeoCdWn97an0qZ1/M17lRMqCrLq55qxxmuPPLgp/OuzmM+pdVW8/+ov3fJTAiy6hbGr6AhMgMkiKo5fb9ICtbW/nCHSVzYIQU4IHEaUMuMTASnJ0DkWrd2+18yuv9xCP79pbMOV6pME8vmi+VUD+zhJKVIPw2Q2o8GE2iP03go+nGkvgc0n/CIdSzl/u2ULURZOsTbxd+nb0cGr9v3SORLDuPmI2NgPv2DIQgKuYJLSbElcVfPABF/Qt+zIr/EGCiHCPR9wk+lttPjYWnE/p/VY3opd4IBOKBC/Qtspb7+jyqfEmtGbFa8jmbz0WOpZAtG4/S4fPRXh4MaE4V3QmEdqXHbt1x98VIhIZpW0lRSfhG62m7JDeMs402rtunb0FHI9o4CApvp6UY3gdo8N7IBq13mOQwAwlRzit2+BBwbLbuuiptpptBGCb0NieS55/3opFGaX4BG0b53c0fVoBkD6nRw73RQxWwnbFtOzulff/5dSeGG6d56i4BdWxHXpvznjmvc90RDuOZ5UhsFQFLpJfs1tZezIliT+YbpeA9anybjbxf1i8gdTDbcd0rAIm1DGY4Zr8RCtD9fBlRQpq7uUZI/+WCTEuvEDrlZmRUnlz1BX//3fFWaiWNKkqgTcKM1RimQa5DNT4cUcalOJrCKUE9QMO98LBkhkNR7q+GjeLKOWDbXB9BzW2ff6iAYWXw15pyBgDSD7jH14AwKHIZK/sokLx745YfWp7m3MB84xSdhmbShIChBp4o/k+/2iTaht8dBzumTe4GfuxSrfVBpgTCeLKvLlS/9/OyLKCxjCya9DVlSg5vvGlBtQPxlPjzY0M6Q17aDalsbbDUNR/x8/ZG9ZeNR04e1+pELlXLyiJnK7gtZRv+sM+J+ZKVeCHmcTl8SXu2Oc0pdVyVgxkUejI74zIKSx3rF/aFUJjHO3WdrL7CoZbXgcN0efPS1KXy5IRqF4I3p36uEeUj3awbcNNql9MRmOb8UA/veBncu/Jyw4KIcmnohlE+6SMqDMliKsOWFxpA+f7G+TD3ygu6o6bUimWMrvyU9PHBExWg54Vocr/WaQyTl6VCryyxulgn/Wm4iukWLc51b+FjKMOCf8yIFxPQvHmO1LVGLCfU9YOQ4999L4jtSRpAsD464Ze4X58w/c11rYhiYWeNdEOoZbXS9aR3nfHtCFYims1TkL2Iv6fx3xSqWmhbJOiHzQ2ETBDjKMNCzEdkE0ccbREzeArT2cGflVNgBExKYuk6qQ0WCPdLQiC+KgvXo69yeZgHa53AQKyCuRGgA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB7933.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WAdoOczHvFH2En/0a5/ul/ZAgvbX8GCjsoqw9ssoxqrbQoWiJdd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JyDu7YJXEQtNH22Hd/ZFqvNlBO//vIH8HWR4mhAD99P4pchRwpE0mfJkZcpd0+QmUC/txmlO3S9sA4pu0RHveusFNPZfU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75c9c907-2a0b-472e-6f23-08dcc173e69d X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 23:57:51.5100 (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: ktSLuLHdDSJEAbZA5LCGvm1M1jFQXlS/s7d6yy6L//GdhyMgxuUGDaY10eOeiGZaz64Z4Usqjc8nNtFuxcHIIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB7099 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-20_18,2024-08-19_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408200176 X-Proofpoint-ORIG-GUID: NTcSUdwHOlOBrs8MHd0DWvugJDpDi-Sw X-Proofpoint-GUID: NTcSUdwHOlOBrs8MHd0DWvugJDpDi-Sw X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: BF2E540003 X-Stat-Signature: 34anpkwb55udqy566iyq6our1ikrbmoh X-Rspam-User: X-HE-Tag: 1724198283-308767 X-HE-Meta: U2FsdGVkX180aFs+UIlG2S8ZjWHkmeHo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dVsAg6gaPuDENo9zmjgVeu+gysSqjTluzHXRBnZPRFLHp/wu07V9BEEFyRqXbTgX/xenD9vQJ9kBSijhSyiHgwJ+SNS65HWy+pAyW0B/PWoKUjNLomPhZolPUELeNEakb2Eo6f2bpzrErWyRWj6V9B8Vi22nwSGDlYE7tpyiGGmNwyjp+1WxB9jyDs8SIVH09He2XT6TstzTIeQDHx+NdWj6it22WVLpv0D8T7OLM0PLGKxAuw1vmN2Qc8HvNJH84L/WW1IbvgOcvW/d+BPLydM/SkVskmIYEgOTBl54kkjufWIdZgnnjMzJ0lqwCIvcxemDc+7jasA4iyCV3OHA/ZEfCD23FCrvIJbpKAxyrMGNrHO0SB01mLUuJuLd+6C2vkG/IPEf8rYIc3tN7HGCn3YNaofYewXUjRp5w4LBQWbyiQq50w= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Avoid MAP_FIXED gap exposure
|
expand
|
diff --git a/mm/vma.c b/mm/vma.c index 066de79b7b73..58ecd447670d 100644 --- a/mm/vma.c +++ b/mm/vma.c @@ -668,6 +668,22 @@ void vma_complete(struct vma_prepare *vp, validate_mm(mm); } +/* + * abort_munmap_vmas - Undo any munmap work and free resources + * + * Reattach any detached vmas and free up the maple tree used to track the vmas. + */ +static inline void abort_munmap_vmas(struct ma_state *mas_detach) +{ + struct vm_area_struct *vma; + + mas_set(mas_detach, 0); + mas_for_each(mas_detach, vma, ULONG_MAX) + vma_mark_detached(vma, false); + + __mt_destroy(mas_detach->tree); +} + /* * do_vmi_align_munmap() - munmap the aligned region from @start to @end. * @vmi: The vma iterator @@ -834,11 +850,7 @@ do_vmi_align_munmap(struct vma_iterator *vmi, struct vm_area_struct *vma, userfaultfd_error: munmap_gather_failed: end_split_failed: - mas_set(&mas_detach, 0); - mas_for_each(&mas_detach, next, end) - vma_mark_detached(next, false); - - __mt_destroy(&mt_detach); + abort_munmap_vmas(&mas_detach); start_split_failed: map_count_exceeded: validate_mm(mm);