Message ID | 20240820235730.2852400-14-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 2EE3FC3DA4A for <linux-mm@archiver.kernel.org>; Tue, 20 Aug 2024 23:58:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A278A6B00A6; Tue, 20 Aug 2024 19:58:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B21A6B00A7; Tue, 20 Aug 2024 19:58:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B4FA6B00A8; Tue, 20 Aug 2024 19:58:25 -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 560FA6B00A6 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 19:58:25 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0EC721605F1 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 23:58:25 +0000 (UTC) X-FDA: 82474290570.12.E91B7FE Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf04.hostedemail.com (Postfix) with ESMTP id A421E40006 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 23:58:21 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=feJQT9lm; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OtDRbanS; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf04.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=1724198243; a=rsa-sha256; cv=pass; b=JSd/k3o8G4XdpCMFj0i4ncsGlDoMi2KIkw3wh+57STmkTfrSJ6rM4Cn3vq42Usha2iKGzy GK2Sno1BY7JQ6keD+NRHMIgYeeV1IE4z2byC7BYUTwWmIBqtybhj2Mx0C6tU+PTbB7M8Gf 0DFoJ8BopvFYFb5Aubi6XH/5JmN+/Vs= ARC-Authentication-Results: i=2; imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=feJQT9lm; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OtDRbanS; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf04.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=1724198243; 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=9tEwNxjNGC3trfidDDdxabxW9yBYLd3veiUzYxgKkUk=; b=xcKUIxFwbwbtIDnsktrGcBSwK8MI7cWca+/70fqUh9sXwboKuSlCMcc72BO+4qLuVqVZng h6QKLtMrEJgp3V8YkeygS4RhF5y9lKpR6OZ5mmTg1BQDelQPUbaMUvN9tN9dMn+i7fyCJ6 41lahppyiXZvyGHX8ZxL0B/7TIjF6IQ= Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47KMBvvu005187; Tue, 20 Aug 2024 23:58:15 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=9tEwNxjNGC3trfidDDdxabxW9yBYLd3veiUzYxgKkUk=; b= feJQT9lmBfiCQdltLIOr9H71Tbb9D5W1WnPGkmfXh/Q2O0d9d2xPXWLeRRHVpUEi OnnEKPIoeaTOvNsAfhjNcFjK6a8drX24UGxMSgc6hgfvK/A74VVsI+iaM+rBtkgf zAA+D1gwb143wEp4AXGNopA/wXO84dZ1TluSyVULlPKrD4wAX2Nzz7DqWedHa6Ri k17OB1XkPy5u+rZDyZg2/0jKDkwoiX0vm6agN+svTzYFFMStciAAo7eNVVhoqX2v LeST2Fnd4LGUWMaqtHtxx8hcc8nZEWUiy7lfGi0Wfj0xXzJGMw7ua8gtQJOOlcBv badeWHAL0CbS009QyHvGrA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 412m67e8qp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 23:58:14 +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 47KMinOH037575; Tue, 20 Aug 2024 23:58:13 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2170.outbound.protection.outlook.com [104.47.58.170]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 41546yhr0h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 23:58:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oQvz2JufbVaXr8YWR72BQs2E4XGMGdeWjkjD+9KTP7PaE4T3jvEpIlaLDFsaCeC86uugbzn1KxS7X+ABVf/iKcDj3o8+5VOvVafTTVadvAKN+fq4wMlSognzOjCj2hEGAnjJ/aMH+GaWr+UQn851iLaPscu0goQR4atsafg9Vjp4ttK6SKGTZZ9cWQOA4+BjeAnTKe4GSHbrVJTQy7zdTq0ZJJeNPXpyhC1UuQaNGOdKkTfgH0qV7MwLgEEBVxOc9I32SLZPmasU1HNyyUF7vxuU8JNqwVDsml7bPzrXWq/krfRZQhx7X1WfhTcHyFbV9CyTSR6H0L762dpGmpsM6w== 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=9tEwNxjNGC3trfidDDdxabxW9yBYLd3veiUzYxgKkUk=; b=DTMI2XeKF/3MF1CtaR2P9QlXOq7bO7C9frnFVhRjMIx/i13w+xWdz/KPG2cdMGpEFvRlVjapf7hBFbzBnCyjiiFNyMS6tC4+rPN2jOUKWwDpTddCNGn+0EaDBps7nImb+lePXRpsPit1yi/5Yjng2tL+pvnAD5FrA78WcamMhvh+uvlYfjkewr9a+erQ3EkhmFKVjGw+ytK7CRYfddh/HzzN8MjCIe2mpzvstT333R+nhbzbKMrORKyDEfo4YVTTyyJMBqBMvqjVzKgFbj06cc5rLTA1UscSARo72EvTGUo3814lE7mdOwaZmFpPilTSNnuXWJ1yOsn1wXbxV1TIhA== 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=9tEwNxjNGC3trfidDDdxabxW9yBYLd3veiUzYxgKkUk=; b=OtDRbanSUvjmIz/LX15uM3q3bjopkozc9dVs3NIyBDl4IicpJBv/KfHEUsCbwXmg6ZT+sc72KICh2OrH/qYKnBzCx+Rn0NdGKq0ZyTmnnfq0LnEAkeCE1pS6sh3nnHVc8TavJjQkUWKjwSvaMCOSrK+lw/mD/SPnvHVq5RujSMU= 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:58:11 +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:58:11 +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> Subject: [PATCH v6 13/20] mm: Clean up unmap_region() argument list Date: Tue, 20 Aug 2024 19:57:22 -0400 Message-ID: <20240820235730.2852400-14-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: YT4PR01CA0320.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10a::13) 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: 72dbf3ef-7f2d-44cb-5824-08dcc173f25a 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: NBRhYgEja2dGfwRuyZ3ERSzaNQ/Mrj/8/RAuUNh4lrgtkmKwexMxO/aM1Gq66NG0WwQ312YuIbC5pBxi83BgrRG/azl+ydo/5zRAeg2LtEBk870oNiqSjOU3p2yx538gYD3pqOLJVUyINqrZwCWfh38e3TnWItdMQC1ufu3RkEsqJLBQB/cO10IQyD+Gc9oBD2CFUW4x4D/CwYbCRQBGTip4WA5BsAbRhKbJT8EpLpNurmb1IRT4VWV1AwYxwSGzQ77K9ZbaRXhWUrpU9XCMW3mqsH99LacBe+mDTrAE1kiEK/yeyDos/X/FX+VgGcvs0RSawxVNNmxBQb9QXTYQ878925Tg+fTP9jscuSg1+liBsG2JBE2Ce5OiBqyyqxMCeoTsT1ELnDC82Qet7o9j/oXARtGJTmtPLVuGMvjclRciDD64wUaxw2zMI6e60/N50LnnYJgdf26Jiw2xTLhw0naS6C7LXHpvgSJX809V6f9wAmSVYi7mFaAWnosUYwBmtWvt+uvEO5SKkUwDbh7pSlq9NwY6BISkFutcj3WPfTtqEhT2riSG3oXJZonPLJZz2n2OI+ppBONfzgM0BTZ1vvk4z4NEQ0jPVMKr3xDiKnNooiJE5dozaq6vi6Vrs2mVAs7+xqVV5OAeuIuF2xgh1fhxLdwuzWV6NDT2mfOC8Mzrp3D1K0HnxR1HqeCTc6/8yfxDuBAnc2+8NEvMDcRYKm5q6dgpVK835P96KLnlxH7YMQZFtDZAfXjcajUyMs1oiQuGCTZqD0IRxm7GqA23tcxMs71wwYKY8UJuUnO24MA6+UlW/hb6ZAZm5QAOevvHZ7+5X1qPNgCBV1hYFgvaEiWOHDwx/TpcpoIns53qBmKV/qXetHPChT1dRLP2cW4Sj7BCWcEh5KUPCViaik/Ik3DKQnCdOJzxIG7JQYdq9NTdhT48rVSrgz+uyONvT9W0PSguDHnozG5QcyLLTTCnSSmpiTFEtxbPHsSIh1T67GMP7IY74ro6HGOIJ6+PeJ0M7VqONlze78BW5QLFrn+ZyrShFyeYVI/uZZygb2wWwp37qrv+Pn1Y/h9+kYW96I4Z5KBZK6dGi7NoTT4QXZQzxqMbmSgPZlDKloUAJ5hk/g8Ia5hdk6K3DxngNmic73KN4ozXSi1OiBo/rCA56EYBl1WsoFSjX659BVnbZA1ZwKouNOSv5GX1+muoGOESCDC8HWWnq7ULiuZuX19aqwt7ZI3BsvjKW84geu2mvl9OgyZuhGY0QxgmwAP6ysP8R1Qhg3I3miX5f9ZAOUPD6EVNtUFEWvp9C7wJukKGrbXY3Q5GJNJ/xqRHgBv3kbbNpEgdsdTzqMB6gt7A7JB+1I1ZOQ== 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: VB2WvdRVax9cgc2YPVbJ7HxZBn6vuVYHoMxioBHrWbK8E6Y53hq6+Iz9DhBFZ3CFje+/4lgeFtsk0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8qRxzBVOabAVWmQDySpowMpck+sTUWBd7lreznaP4Dg4zo8aD1MRWQ19gOT612DdvAX5zJc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72dbf3ef-7f2d-44cb-5824-08dcc173f25a 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:58:11.3421 (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: 9w34LRFph3pUA+/Ft/DbM2LSZheZAqt7izAvYf6RiwoxLNaLMJAWVxmprGvMnkQX5rWkSt/VfKJaHB73IXwJSQ== 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 bulkscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408200176 X-Proofpoint-ORIG-GUID: rlsHmofMYRIYAkEi1rr1KqAbo80L70pT X-Proofpoint-GUID: rlsHmofMYRIYAkEi1rr1KqAbo80L70pT X-Rspamd-Queue-Id: A421E40006 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: bwxtoh4op5uhst1mwzme76ewb1zjoqjh X-HE-Tag: 1724198301-413949 X-HE-Meta: U2FsdGVkX1+gYh0YkHS2Efd6axq8XuDsRk+u73XYzG887J9x5hfHYq7+CgeFngQQ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y25htQKINym1BGxTU8y1Y2UpehixSaCFjOrOS18/uX2HhAVuZx8EKTz1+BU2dsZSt+uxup5B9K3+pAyE1xhTuGOP+IvgkalAYUOzELO33kAu4R0xKYB/uhacZ9svqMWxvX5MFkvnESyhNpLo/thxLFA0t++jdfXydZtpFIrM0pWOgIBc1ltDG/Hyzv/u2Ytth35McQlJDPhuWL4/gBwtms5JyVmh9E0IciI1/ThBoQWitHVJELirmQoazFrIYVtFHu3uuu0WYZe3X7v5Du8YSgDW9b0NZT9Ns7Y3MKIIXuFm4R+YVgvDTXHB+zmKoHNF+gNRhB5NeaN7bAyAO6GLUgQfJU6JOser8NF4rs7L7BQQSfBGpi84A7i2B/vksYOlXRWSAzpYCe5cAmRXUKIUf3n/Mam5QaqaQ== 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 9285bdf14c4f..71b2bad717b6 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1613,8 +1613,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, vma_iter_set(&vmi, vma->vm_end); /* Undo any partial mapping done by a device driver. */ - unmap_region(mm, &vmi.mas, vma, prev, next, vma->vm_start, - vma->vm_end, vma->vm_end, true); + unmap_region(&vmi.mas, vma, prev, next); } if (writable_file_mapping) mapping_unmap_writable(file->f_mapping); diff --git a/mm/vma.c b/mm/vma.c index 5ba01dde52e7..7104c2c080bb 100644 --- a/mm/vma.c +++ b/mm/vma.c @@ -155,22 +155,21 @@ void remove_vma(struct vm_area_struct *vma, bool unreachable) * * Called with the mm semaphore held. */ -void unmap_region(struct mm_struct *mm, struct ma_state *mas, - struct vm_area_struct *vma, struct vm_area_struct *prev, - struct vm_area_struct *next, unsigned long start, - unsigned long end, unsigned long tree_end, bool mm_wr_locked) +void unmap_region(struct ma_state *mas, struct vm_area_struct *vma, + struct vm_area_struct *prev, struct vm_area_struct *next) { + struct mm_struct *mm = vma->vm_mm; struct mmu_gather tlb; - unsigned long mt_start = mas->index; lru_add_drain(); tlb_gather_mmu(&tlb, mm); update_hiwater_rss(mm); - unmap_vmas(&tlb, mas, vma, start, end, tree_end, mm_wr_locked); - mas_set(mas, mt_start); + unmap_vmas(&tlb, mas, vma, vma->vm_start, vma->vm_end, vma->vm_end, + /* mm_wr_locked = */ true); + mas_set(mas, vma->vm_end); free_pgtables(&tlb, mas, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS, - next ? next->vm_start : USER_PGTABLES_CEILING, - mm_wr_locked); + next ? next->vm_start : USER_PGTABLES_CEILING, + /* mm_wr_locked = */ true); tlb_finish_mmu(&tlb); } diff --git a/mm/vma.h b/mm/vma.h index 7bc0f9e7751b..6028fdf79257 100644 --- a/mm/vma.h +++ b/mm/vma.h @@ -147,10 +147,8 @@ int do_vmi_munmap(struct vma_iterator *vmi, struct mm_struct *mm, void remove_vma(struct vm_area_struct *vma, bool unreachable); -void unmap_region(struct mm_struct *mm, struct ma_state *mas, - struct vm_area_struct *vma, struct vm_area_struct *prev, - struct vm_area_struct *next, unsigned long start, - unsigned long end, unsigned long tree_end, bool mm_wr_locked); +void unmap_region(struct ma_state *mas, struct vm_area_struct *vma, + struct vm_area_struct *prev, struct vm_area_struct *next); /* Required by mmap_region(). */ bool