Message ID | 20240717200709.1552558-8-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 EE4F0C3DA60 for <linux-mm@archiver.kernel.org>; Wed, 17 Jul 2024 20:07:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 86D406B009A; Wed, 17 Jul 2024 16:07:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 81BD96B009B; Wed, 17 Jul 2024 16:07:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 61FD46B009D; Wed, 17 Jul 2024 16:07:45 -0400 (EDT) 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 3D4DE6B009A for <linux-mm@kvack.org>; Wed, 17 Jul 2024 16:07:45 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CE9B5160CA3 for <linux-mm@kvack.org>; Wed, 17 Jul 2024 20:07:44 +0000 (UTC) X-FDA: 82350330048.03.6CBA7EE Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf11.hostedemail.com (Postfix) with ESMTP id 92AF240030 for <linux-mm@kvack.org>; Wed, 17 Jul 2024 20:07:41 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=YnCg+waC; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=0N3mKt37; spf=pass (imf11.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@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=1721246808; 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=R72J2Rq+pSM7hD2A/i8y70d9fRxZSFkCgc//56gCKE0=; b=Fib0a7gjsoeYYT09MBiQ1tsLrpbbgfJpGlSqDKGNltCxW0C2cVEkZmruVHtCKepa2l0vM1 ikcMVUhos0AjRuqByMueCrUYgZovNdDEUntEfzSqg/bPpBuxzz020Dn+V+tojBp8nbM41q S2ZbohtneSAOBBo2HaJn2FrZvEzqUoo= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=YnCg+waC; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=0N3mKt37; spf=pass (imf11.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@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=1721246808; a=rsa-sha256; cv=pass; b=PMXUxRTr6Be0sOxPAtr9+DbImpGo0kdZOu1yFQYfVAJKE14jW71ZL9odgqhJTz9I5HZliP N1SADVPJhyaXZwGPCJ7h1+6lBZ283DPUMaXnVg+pkkXYVw7aVry3Wt6cCBJPaxgof7XOXJ GqRvLBtRbsX+r5GGGtSIN1WiP5rVqZ8= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46HK4ww9001760; Wed, 17 Jul 2024 20:07:33 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=R72J2Rq+pSM7hD2A/i8y70d9fRxZSFkCgc//56gCKE0=; b= YnCg+waCSG6RuuK/GLj84Mntb5/ucduftPtXPkwlmsMp+LPXW9o4Qd+ZPoFaLVRW PYDfmD+sJL0dwpEzFoZWTAfSmtYQfmvobDaLSIXxFu2y/g2yJZJszb73kFk9MmSP XombzOSC4bzOz6chZ/r8psvwbZ9tT+BHNgGH76Hkng9pmtYV0NWihp840WZr5VJc n5QU7DYmkslW1Tvba7ShztRIGDfEW/WtKtBjoHRYEp+EAayjWUv7uBpJ7C8Hbt5q XlwiStWuLqASrEVq+u9Rjb7Tzf7k9cBppqAhWG5eqVwFoQpz7bVF4Ue+VbWgE91f 0PppHHV5klbkIysRI0X/hA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40emp5r07e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2024 20:07:33 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46HIrJXq006940; Wed, 17 Jul 2024 20:07:32 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40dwey1fcb-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2024 20:07:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=afWhwIemtrElLX4i+QbK4Vl8ERhZCye+kLI/KNx6FJYXGIq3y5E+3OHpFmCXksZ5iujdv7ycFqLSjXs4N7GpK9cD6Mi0c64u/iyi8F55I+NxNwCpk8zldtkBJs13fQXWjQ3YRnwoRIQEO3OKX80r5efSwiGHgmVxyXFYKotNDS7fDP7UJBxxQO2xgP73/ZwAbnZyaCvw5EXmneRtnorFUMy2T4hHKp39O9nxWNZS/7oFIrMZZgMlsNhxqjPQcyMZQZPYsntqhCKH0W2SrsusKN2kxtvQxUOm93o7qhuVAj/fVGtvStntHUU1mJ7FBcmKx8Tk4+nxPPBXPeh+I2z3Mg== 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=R72J2Rq+pSM7hD2A/i8y70d9fRxZSFkCgc//56gCKE0=; b=EDQhMJ3FMwPIi6FJ9DWaEl8L/ZzZvfQjHiS2wfaXG9ps/lrOrplbiDYcm4S0WlSIofEXzDBtWfSUKfDaPlCk/rXX2pSolquWPCOStVxP2udOtG9NCnfDJ3utfaTKB3bW7MZisCLs5PvE2CJt7y9CqwdK4NJQGYwATMJS8JK9YYJXD0ftMu1pIUhU4AiRggDzxEQOpG1O02WMSoSybncDrz8w9NN+sLtefs6sS6nuWFb2iBvrfa+JRSyXFNMbmkrIH+qHiNH3O1CLlaETyA75CdCiK3O6DoRd1uDbWks8n8r7rG4eSB+0F2oCqQhIKOtLEn1DMvUaqD5LlTSvHOqdhA== 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=R72J2Rq+pSM7hD2A/i8y70d9fRxZSFkCgc//56gCKE0=; b=0N3mKt37eX7BEO86r16/p8a1fYT5MykxS5W4SnGB88SIG8ejAqHX5XbLhukJ6bUHaMfejVyumhFwabi2wMWxtqR1vSKamnoh8bHgP/8UblK5PDjgRDf0yo0f1R2Cs+rxHQsNSC9s7hU6eiVWGaJM8Ek7Ltov67ez8+USnKacs9s= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by IA0PR10MB7303.namprd10.prod.outlook.com (2603:10b6:208:40d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Wed, 17 Jul 2024 20:07:28 +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.7784.016; Wed, 17 Jul 2024 20:07:28 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org> Cc: Suren Baghdasaryan <surenb@google.com>, Vlastimil Babka <vbabka@suse.cz>, Lorenzo Stoakes <lstoakes@gmail.com>, Matthew Wilcox <willy@infradead.org>, sidhartha.kumar@oracle.com, "Paul E . McKenney" <paulmck@kernel.org>, Bert Karwatzki <spasswolf@web.de>, Jiri Olsa <olsajiri@gmail.com>, linux-kernel@vger.kernel.org, Kees Cook <kees@kernel.org>, Jeff Xu <jeffxu@chromium.org>, "Liam R. Howlett" <Liam.Howlett@oracle.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Subject: [PATCH v5 07/21] mm/mmap: Extract validate_mm() from vma_complete() Date: Wed, 17 Jul 2024 16:06:55 -0400 Message-ID: <20240717200709.1552558-8-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240717200709.1552558-1-Liam.Howlett@oracle.com> References: <20240717200709.1552558-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT2PR01CA0002.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:38::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_|IA0PR10MB7303:EE_ X-MS-Office365-Filtering-Correlation-Id: 96490cb5-e445-4164-255e-08dca69c1552 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: 3cuBf45e3BBp8JbBVJAh3WLSLtq+OjPRc/qlSsPhQwTcjkOg+Lnib4ul3r2jCyRLK86B+chKUeaC2KfhCA1RyrQ1AVz228DCjf3QCxhDwmzJa3cJ2/Tw7JvQIHBUSQ4t2/iPUKpx74NfXq2sRakN9l0vCyLyIgXJOa1vn2n+nf3m8inH1Hh7DwW0T9qHfnmLNrtgg4R82CHsn5OFa9n73+SROOlTQLQWtv/C8jTD1OmufSoIpPPkZWnzfD9UbD+ikOli6QL51ASfZ73adr1lHYaLOLaLyBX+uSKu4LxHK0CDb1KwXNh8TmWPz2EPCHI7avPZ0oRVayFjteYExX037w12eRsABKaC+CsMQdaYJXh4bVd1TODO8mvvzd8r0Zws4TKt2opo2aH+LZV5lix8W3JZq0xk/VBS7F1Rcpcs6gMjSTjl7FGMP3AuIGhuwQ1HUjwLtS82iv+DNNzAvjaZ6flzdaPfegA2J7pH6QN7Ij1r+dFa3Bi32oq+oyJ1CSeDUMZGktPfgXkUjhR/3m+0suGjBEEGj+BQWGvz+rOZIUUJpYkpNCCwznZ0kF64qr98jcAMxO1OcitAkUbuRYhbE9Wn+hjBcz9ovERWotYwpnTX0f6iWy9T9DzgS6LfRVgsCvW8PE2gtdMhD1acZMtH0zGkY9HGkT0OUVIG5iidJy6Z3J1c7DJk+Xlr+GADqzVlnNk97riWdrVqJ7wtg5G8U4ssof6L+3b+MGj1bwfTLHKYzZ4XmxfrZvQwa2S3QHfL3OQzNtgt4W3zorMu7wZbtwkdxfVDfux+4SsZ4yHiPKwEVw5GRI018LGWGhqel2SqSS9j2AVB1/w47pAXZ9nVFsZ0GACj8GqZGfJxA2DKA7uv5XcDMiapdz4JrdshH7Y4PCS2Uk3q4/FjxOzm5GlLn8fgh7fvSxyEyritaYPLCFMTwcP2vsx5p9SYS98eHkfJBjS5H09+MfyRHzZ6BV0xuqqh5+o0fspIcnxNaF7dY24EGktONh5f+BNfdjnxyl0QmElux8VkGF3vmigN5sJoEFFMiBOgr9Rl8mqGejNDu3/cjGG/4clG5hkSJ6sx7d54OeWZfVTuSuqto+wvzs8GCVvEqT1fjTcEGGZj5XCKTa8fnIl136bV/Zj/xx22irdNuNzArhpxbIr2P0bzCFRXWuKqpxwrXFEbn2T16VfI5fkoRlkS1IBHlSRBfhKrQLFyDDQytPYKFdHrSVS1PduQuKPaezhhmy3CFsbgzDLNrfiYhd1j3Mt40sKtzydqs/5pKp2xNjlM5JkxapXPzXtKSzRP1EGX+L7aMHi3aqEF4WRYkO+zU/tNtAkx2s15StDbvL4GkBYzbeNdIhL6W2hQNw== 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)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WE15ZjdNkp4V7zVaf6V3gbWBbaOYjLr5P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BuD0Yh7yhFVZfqeTmQZlfC4L9xk+N0A2GsFU6xOeniy8BTp8bSTwmACvokW8u5b5XMq7SpBScc086hrJg+Cx7uvIaDh46FZlkVYMi10Owi+HuwqxuhFWKOGso= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96490cb5-e445-4164-255e-08dca69c1552 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2024 20:07:28.3994 (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: fvfhnHAjnSjwMxY/pZriZ9KQrL7ZHHL4EX1fRArRb5lp6a7lH6tzjLmWtbJoQzLdjPYiPP4huU1D+y8/cs28jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB7303 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-07-17_15,2024-07-17_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407170152 X-Proofpoint-GUID: Cp1m-mtI6d2amT0j3kFnT_RNDrFgb7RV X-Proofpoint-ORIG-GUID: Cp1m-mtI6d2amT0j3kFnT_RNDrFgb7RV X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 92AF240030 X-Stat-Signature: d98xjzeuwikdw9ftbquwtfexa8rhy6ky X-Rspam-User: X-HE-Tag: 1721246861-820916 X-HE-Meta: U2FsdG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PhQZoMrQ35A7D6n9Nm5PYZO1YSL/n4v4ymN//W4/XuoLbgkfV1LpWr2IciUFthZ94vhOOG3QL5IDpXoKDrPz0cDkCDsNl4xRLg/l01QAz7bikCx+hhdjbM1pwLFLE5RU2AB+9Pt0yhf32FcUlq2rt6dWDk1Lz+6bZdfe1gmRfn+/rCvyQmk8K4aH2tWpYQVFPJBLJcneDfQDN7/R6zvmtoUhDM8aGzHkaNe8mb0Fb+1o9HcDesvHwO9igB1ZrOnT7v7L9KULYLn8Bcwrw/KqPIP7iCST+63a6q3wEvYKitiVdYzt4SQbHdOhrDrDu//z9H+e2B7rLJWNkiDarHioY6kngtW6+FgrGV8SQKXCHkdZ1imFG2CW/NBGtDF+/iQPGNjmGswaw5keTEYeMDinnzgqLGHAPSxvO7pDWdmwRc= 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/mmap.c b/mm/mmap.c index 62ff7aa10004..1c9016fb6b5c 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -646,7 +646,6 @@ static inline void vma_complete(struct vma_prepare *vp, } if (vp->insert && vp->file) uprobe_mmap(vp->insert); - validate_mm(mm); } /* @@ -734,6 +733,7 @@ int vma_expand(struct vma_iterator *vmi, struct vm_area_struct *vma, vma_iter_store(vmi, vma); vma_complete(&vp, vmi, vma->vm_mm); + validate_mm(vma->vm_mm); return 0; nomem: @@ -775,6 +775,7 @@ int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma, vma_iter_clear(vmi); vma_set_range(vma, start, end, pgoff); vma_complete(&vp, vmi, vma->vm_mm); + validate_mm(vma->vm_mm); return 0; } @@ -1103,6 +1104,7 @@ static struct vm_area_struct } vma_complete(&vp, vmi, mm); + validate_mm(mm); khugepaged_enter_vma(res, vm_flags); return res; @@ -2481,6 +2483,7 @@ static int __split_vma(struct vma_iterator *vmi, struct vm_area_struct *vma, /* vma_complete stores the new vma */ vma_complete(&vp, vmi, vma->vm_mm); + validate_mm(vma->vm_mm); /* Success. */ if (new_below) @@ -3354,6 +3357,7 @@ static int do_brk_flags(struct vma_iterator *vmi, struct vm_area_struct *vma, vma_iter_store(vmi, vma); vma_complete(&vp, vmi, mm); + validate_mm(mm); khugepaged_enter_vma(vma, flags); goto out; }