Message ID | 20240830040101.822209-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 B663ACA0EDC for <linux-mm@archiver.kernel.org>; Fri, 30 Aug 2024 04:01:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4B4716B009E; Fri, 30 Aug 2024 00:01:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4398E6B009F; Fri, 30 Aug 2024 00:01:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F0026B00A0; Fri, 30 Aug 2024 00:01:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E671B6B009E for <linux-mm@kvack.org>; Fri, 30 Aug 2024 00:01:50 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A1004AAF4A for <linux-mm@kvack.org>; Fri, 30 Aug 2024 04:01:50 +0000 (UTC) X-FDA: 82507563180.30.1F6653B Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 4AE69A0012 for <linux-mm@kvack.org>; Fri, 30 Aug 2024 04:01:47 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=g1nuX0OQ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=WOGOJekv; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf15.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=1724990434; a=rsa-sha256; cv=pass; b=rHExjUqI9Y0FGbK1U8w/ULNNxGT3HWrg8sjUlYx/vuaT0rIvBtW0V+rE/UeWx7tvr5k3bO eQcsc8cY4aK2ikzlZYQawxE9nkNa4P9OgorBF4TDkO9rUXzgLUXGGL1CHFtUR2fdz/v75I U8pI8LkKiZEeUYEJrbRrjDjNVBnoAGA= ARC-Authentication-Results: i=2; imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=g1nuX0OQ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=WOGOJekv; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf15.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=1724990434; 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=76Q2ukEjjb0hEfT086y7aNLQ+jQfS3rZu8flZm0AWsM=; b=q4TGDQQJ1JXmwtCE9/KVch+GvWRGwhHTzMFTcnN2g3rMEsEAk+zN0kJ4Y7D3dEvN0qFcjx b4qlcE2BfmE2JARRnrhP3zErSbLT2uc2fUbhx3hOl2fLmur7y9f//6lp/4v3te3sTLxKyE Qg1oOn0P0M1/cu4xkStTkm2XRBXhqL0= 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 47U2fV0h022842; Fri, 30 Aug 2024 04:01:40 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=76Q2ukEjjb0hEfT086y7aNLQ+jQfS3rZu8flZm0AWsM=; b= g1nuX0OQWE4Gh2cbdG7TS4duqWOKl9E+eRv1X6cHJ85+LCYxu6/+Uc+oDKtDRxP+ y2LS7Od4xquAeocczc2inybnYt9l/GFkSizHW89HaXHZygT2iw9XFuGKrzKZEdML F4Vgyh+UkGdXNPwYKqDOPudwpZQPvrh0QPV/XldnDpJRANvdeUD5icGtKPXt11xF I0miOZX3CXOrgnC5RPtSpZlaXf+jarkP2j1lm8dotsHPkDyC3GRZIyvica+IexUy Qpgy8/fb0b+E6wwfXnAEAS1DCI/1qdbiAmjbx4TuVpYYfNclmI837FLMjDbC09N0 FakENgSS2OpS2wLSPKQcNg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 41b28508nv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2024 04:01:39 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47U3hBLY016852; Fri, 30 Aug 2024 04:01:39 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 418a5vy50m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2024 04:01:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G//IAJ2oms38khheTgJTqN9wmmcF98bsWcz58NRX/O0lwl6qh+gV6Xu0yLiQxMnCLz/7MH1uoEpzO2Qw4EemAN72bc0hYigRDZZIVbADQR6oG8ICnwjj/h7Y1xqrnfcsq1NL8eRGJFI4zzlHtpaG7aUAFv/gvFfOyiPtDvCyrHyZpYBvYeai7PIY5mb9ygc6iGmrmamLlg5QDXiqeMqHvNnM86E0+oz/mTukU6VBum+n0BDbgQVjE089QGCioh4KdnF45oY/gag3YEWiaSY4WojFGSYqP6rvETNOCKQa+RPHb3JmH4+7+YfIijP9UWCdHz2SK+NMFhOtgQ3pcoSneA== 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=76Q2ukEjjb0hEfT086y7aNLQ+jQfS3rZu8flZm0AWsM=; b=phSg8iBiLVFqdHO7wcTrJbSbbFgcWYWB+U62xLFz27FWRqZRDjMUrKlZNBfq9lKAy1mFE+/K5Nz5oRGHqbP3514decOoSljwEdUxwVVavnKLWP8xNTaPgFOmrfUxAVIjl56SmB90g5uqHNKzaFeaaAnWbjvACn+o6VmQHoNDXiz1UohsL1TrmpFtuvh0g/lk5FfSOutIjn9W2g3gHsxGpN2FXYrGC8eRPQA/IClN+PCNddoYwwRevnnSHNy0MZzMT77HCxkn8c3Nfe4XSnfoYFu46fOEA5eGPmbSURMPqMvHhlRgxYO5lEVaWg9eXg7l/G74TE3AgSUISnAOU1cVrA== 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=76Q2ukEjjb0hEfT086y7aNLQ+jQfS3rZu8flZm0AWsM=; b=WOGOJekvxvwcTinf4vrlEtwzWfNltT6Vm6p9SlkXUvPHKWWe/4zM2atNoeKeDcqd1ns1u/sCPtxGV0l76YoULwSeD5aPgzsKgGUr8bNXUbdIzVMe/eXNHLQUgc1OCsidDU4uBWF5lK8edljjB3wnXyHQ0/NYdQYJNoz3lUi0YZk= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by CYXPR10MB7949.namprd10.prod.outlook.com (2603:10b6:930:e3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Fri, 30 Aug 2024 04:01:36 +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.7918.019; Fri, 30 Aug 2024 04:01:36 +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>, Jeff Xu <jeffxu@chromium.org>, "Liam R. Howlett" <Liam.Howlett@Oracle.com> Subject: [PATCH v8 13/21] mm: Clean up unmap_region() argument list Date: Fri, 30 Aug 2024 00:00:53 -0400 Message-ID: <20240830040101.822209-14-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240830040101.822209-1-Liam.Howlett@oracle.com> References: <20240830040101.822209-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0170.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:110::10) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|CYXPR10MB7949:EE_ X-MS-Office365-Filtering-Correlation-Id: 9142e4e6-45a5-4951-e3c9-08dcc8a87145 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: T/iJNEne6aF2T/rLX8iiU0BEdC88FDq0ny5mYE/fjUVBk0F5aUFQJ0Ih97Zjm2WUIx8e7EgnC021M8XYgTnWefl9Pwmg5t170FpGmMiaK5kMRqI/OKPcRFy3iSDbQClDq7zUDI3too663vKd3bRLe30f4MewYBJhX7Sxam7nKEVPhMm5DIz/B5FF3H4X2buG/PoCmt8pOhAIVdy11M0LPzzB9+11ca3jUPCzr2NBx/S5yDAkdqVZr5l/3RrPcDJCFAm1BQPIdIueZ1MLDCVc4nvEJMEO9OSDdDyZyjQ2BciI1ag4nRtSiCegDOAnmTuROg6IwmaPh3ustbw2kicQ3qDjO83kjQ6YEmHAWXuxdK2cMu6ZGHkMzWV7WYvTQvfrlaMwr41XL17JGF0mrYiQ4VaR6zTLO90gQREifKUu4fH+Kbz41AHIp3PEhDj1mFbtdyTKKUKc2GZCx5dcP6R21+dT42tBvce6o3bAnBFxDJseBhKPTAnqELrklXj12/r31YQt/UOOTjeAQux1Nqj4qilAyFmV3R8ZnP1SWRUFLiwiMwvdyCkBoiYbT/BOPFHoXWfIMoMKu5s+fyYS5zEE2SSOc18j8t9zIH8nykd+vffO8hm+Dm/aLAGxhDOTUO/MJ2T4fvANKc/tG6e9XbBiH6ERPRz3gVBnEj5IEp8Hz/O2cVRBSbeHW1KSDfCXUaic3udloQ2NRz8l4Mem4jaGnlEl2U4j2UbI6cYl+8T7/D/7kvJTNA0ztLSba/iCzjHizHTfsgKT3FarHTmiQsWv47c++trXtqlRGM3fumq/sqyY8cFFw8Ru3pqhKK1g1D0zVMlzxPIakAESV+16GZWAVr5iCes/sKr0HuKq4YX0PD7k3IjQP+KAwjWAGBp2YZCooHORFbp2eeWmi8sGsFGnJc/wPTJpKO2acAyw6FbMStz4gKhH38Am97rOh6It8pP6qZ2ESzc6/8ok8aXbXUU7C2fDC0ARAXTHRdRY+ihGSfbumtcWLzkPf8wq/UrVRnAbNgezDhjO2pThldaxVHqbGsdpegx2YUjuT8Jpq6L3qVox+4eULgoVajC8p8hrusDkPRzc3EdPOJtJvZRXXTM0hj4PMpppzeMTieK3YdleMYsa+8alnFFgnHqHdSjF1ZmrwcdfmOxGOyg0VXXp7AXcwvxq1QW3++ojpG9PlmVeIYNA7zSvtQQNTwHAeT/1YPlJwpgfeHkdkZkjzCKY8KHagCNzsnBhmYLAXuvRyJ3mqhKAPXHImSCcox2lVD2SrxhitsZ7khfvaNdPmtf4p/lRshXEmD1+usbJ6QL0nut8Hyjp6S0e8dw79iRLlc0fdy/9FxYuBFYkxsQUAodpDGFngw== 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)(1800799024)(376014)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aMuinCNqFcj+tNUxoSNpomxwc/N5uMVEDXmF+Kz/HiO+yz5cPhMNEJsa9zHpDsB4/8I18e4jJdc01wUWCD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vpnf0QbCD6HcR+7XXmQR4DQil91vvdClmzaZGDWFZETllQNeEkfLsLDAZHFac7FYT4LM7zUALLVsgkE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9142e4e6-45a5-4951-e3c9-08dcc8a87145 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2024 04:01:36.1205 (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: riKuEO0cB54gEVl/A8cnAnNMpSeXf1dREqKhFr283FCMINMKSi1aeHtgxPmrxOYqyA2/IV3FAOMWj6EvuKhrNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR10MB7949 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-30_02,2024-08-29_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 malwarescore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408300028 X-Proofpoint-GUID: 6g6YUpPvGEfzmkLgHF3vEdC8_ZUWdpVO X-Proofpoint-ORIG-GUID: 6g6YUpPvGEfzmkLgHF3vEdC8_ZUWdpVO X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 4AE69A0012 X-Stat-Signature: t97fxemm6i48q5ifn8dgupa66biht9xb X-Rspam-User: X-HE-Tag: 1724990507-833488 X-HE-Meta: U2FsdGVkX18kQ5hkHleSk5JyebWzV/s7Jl+muJw7RMkYHx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pu+ZhnmVVnWsTV7X3Oir047HBKcxM1vzWcHr5UPCw12wBwikS+MeTU6PH15SuREHy17p+g+sZgL9UpgCHOmNmJ9lePDHnFRbThbQFlOFff5N90Z9QZD/hkMXnq97RsCtCs3qBXxJKSEgSrs7b8SNwHQUEin6TuxOZ27k6QxhqULI0rTMerrzSMYwySC7lZTbmdCBQ7j2RIjibLNFyUOgUwufqvv6+vfZhvF6uFkepznPkIEYeDQrJDP7pToRGVbV07ISYqVBPZiiBREHi36VgRl2rP1HAivUbH4AuUPNsW7KEPgOTur4TjFU4UddhNT2Ylz6DFnPSOthCq7g5V4I00G0Gj4/vVAiJZ76M6hid0XguWMSLqgNaogqNk3kP8grnXP+ktu9ir+biLW9Pi4Y/LO/ytv8hyGnJe+gDa6ChMpbJKM3uSFFFxrzCg4RZIwHH1w12nvZLb/Xx7+0c0fML9yk6TLhY 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 08cf9199f314..304dc085533a 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1615,8 +1615,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 c71dda026191..83c5c46c67b9 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 8afaa661224d..82ba48174341 100644 --- a/mm/vma.h +++ b/mm/vma.h @@ -149,10 +149,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