From patchwork Fri Oct 18 17:41:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13842117 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 6EDD0D3DEA3 for ; Fri, 18 Oct 2024 17:41:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ECC316B0088; Fri, 18 Oct 2024 13:41:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E7ADC6B00A8; Fri, 18 Oct 2024 13:41:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C7FE36B00AC; Fri, 18 Oct 2024 13:41:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id A71086B0088 for ; Fri, 18 Oct 2024 13:41:42 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 42969C0781 for ; Fri, 18 Oct 2024 17:41:29 +0000 (UTC) X-FDA: 82687440192.16.50E6A0F Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf27.hostedemail.com (Postfix) with ESMTP id D635240005 for ; Fri, 18 Oct 2024 17:41:27 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="aYk/SlYf"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="wfq3DC/2"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf27.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729273152; 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=tf0IaB232j/iYgc5Kw4DJ/6mPt3+Sd9Q0LX4sTxWpus=; b=xy3Eemeze+qO/ftVAf1B2KH6Ed5yIPsSiurnWKZditYaQWJAmeGbmhEfHghpXOy/eFQ+4G x359fw5UIwtnBqzeYrMw4BfQmmt3xliq/u+xTrK7obvpUU4Fuq0owGzKaW+uK5xN0U/fs+ I/yQawMk2FUXqOHFsOdUIq5DF/TAB5I= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1729273152; a=rsa-sha256; cv=pass; b=Ju95OWrzqeVjLWLYt9gL89aevUfQmGNjdC3mx2Razy46vDqeEMvdD7Mj50Rb+MdCWJjqv0 DK4XSU52u6L5etyIjLqR/Lk7T60YNsfa1wt63Cb8XdUt0PBiUB/1JYB2YpSewk9GgVCK82 ImjOQXGGkh6+6FeTkleDFb4OVUqP5ew= ARC-Authentication-Results: i=2; imf27.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="aYk/SlYf"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="wfq3DC/2"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf27.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 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49IEBg3s022575; Fri, 18 Oct 2024 17:41:22 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=tf0IaB232j/iYgc5 Kw4DJ/6mPt3+Sd9Q0LX4sTxWpus=; b=aYk/SlYfbJIR1p9wVG25kbvS2+00F2+l FHzMMO5kYqBbaj65wTBswA3AbGQOBoKDM+LoR1D0Juui0xrYJqvk9oHKrykhKRGQ UfXx1izmM60QDJ8HYtdSgjeqKDNxs0J0Nw/Y3u0SLBQkdo4kaUGWYw9C2oJ1vb7A IkYQooYluCvm0sIKnGJJbxcodGixJ+Z1zBBeGwvYFBB2z3U2qLskc058DSx8iOeB W2BLPaSHZNKmM31/EqppLGxpx46XI/76oFWCe5AmsAjaY24n4FxW0WwuOcLLftRp Y4GYOS41XhjGEcABwOZuDqsI6JUTtoassei607RwgjVJntxzX9z9OA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 427fw2shj6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Oct 2024 17:41:22 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 49IGMPTQ019304; Fri, 18 Oct 2024 17:41:21 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2045.outbound.protection.outlook.com [104.47.58.45]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 427fjbvx7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Oct 2024 17:41:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Krzb3a0RN5a4671mL3/kPUrQ/bcCLOHqL+NoIXx05TR/r4QhGWI72SNOI8qV74ewmkYvZc/cB8H84Sm8eL/sl/ZujPyJNJfdj6XJRyimZcTH8bHizcKNx1k4Q6wnYaffp6kmAF2fOIy+oLNrXFY13OOlLjvfjmJVhJu5RVy/2wFF6lD3E53rfoxvNljr/hI9TytF1UhKuIOr1wDE7wgJjTHa0q+Vtuaq6xVfwCSOt59TVlS8suEBcDOAN1lyInXNRD7hGZY8beIpD9BraxA76ehcFQt5fSvXIiWe4dJ6hRtsW1aiZHT/NUgvymmJ56gt5Vf6ecGzVTCnLWBr7sbJAA== 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=tf0IaB232j/iYgc5Kw4DJ/6mPt3+Sd9Q0LX4sTxWpus=; b=xZy0JziojLJVIk38e824NwLtWH5geJYfzgMjq79B2NeHQHtjKYV7u9KbjBRMjn8VYph9I/gxLA9N3TiSk2kUnSbZ1zFUWuCRhWpZG5Gq0UFWotuMCGgRnaAoL4nTUmzYTqg1tJf0UpMXXWpVsVntLm2wD10+0CESlGb+oBpFo4GoTcNyvYiCf5SuVMWKt7XxaX5MYLOCruQVKJQefghUq+2+8Il50YywLfNS1wGeZwVfPxSbdb73a4InUPxUXyGitX/rz9qoPXUbezIz6JqfcZVtHugJup9iGU1knyGOQqW7qpA3LeWesldLR4Shy9C4ENyRlLw9cp8mP2I4rpR2Qw== 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=tf0IaB232j/iYgc5Kw4DJ/6mPt3+Sd9Q0LX4sTxWpus=; b=wfq3DC/2Car3zJWN2sx3OGUo/bVVX7ZJ9uurCWju73j3nvICECS5DLEhzQIOpDbWWRhrQc9C87ZrDZqWPIdaJDUQgvUpPW9SrhZCgpvbggYSRGsWPEVi2dcEwOFWszyZWS9LZ2MTy4QqGdbfbk9hDJYaIUBnTnrpnnmedhIna1s= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by PH0PR10MB7078.namprd10.prod.outlook.com (2603:10b6:510:288::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 17:41:18 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%7]) with mapi id 15.20.8069.016; Fri, 18 Oct 2024 17:41:18 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Lorenzo Stoakes , Jann Horn , David Hildenbrand , Qi Zheng , Kefeng Wang , Jeff Xu , Pedro Falcato , "Liam R. Howlett" Subject: [PATCH v2 0/2] mm/mremap: Remove extra vma tree walk Date: Fri, 18 Oct 2024 13:41:12 -0400 Message-ID: <20241018174114.2871880-1-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: YT1PR01CA0088.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::27) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|PH0PR10MB7078:EE_ X-MS-Office365-Filtering-Correlation-Id: a79c3499-caec-4267-453a-08dcef9c122c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: Dk6YSMclaS8Gjy5nY3ARkzzpp+H34vV8KW+d2hk1OhVLZaCKffK8uTcSpiY4kze8zj3VIy9CJSL2wa4wE9HirQF95/9N1XicOYIge0xc0/i5nOPjTuRjyXdR8DxP67XQx9nEvNlvh7kVlmBAbu1QpRsFaqGWGgFQLzSxSU5mRfDS1jJAiKB4enEzZUZuqELc00QFespTx+qB3gSZsHGkV+RuVZ95va9+Vzdv/+RoX48SAFKih5uUrT6B+UauzI/VtV6P3WhE+JoF/IMjwRwZ4abc5XgNvnBVLNL569riuhsv0IQkoLWhXVlOV9ehlOdFEiVK5LpcQmYZ8cOr4Iolq1OOT+VxmevpCkDtSJJmRpf33Ah+sxIcb634jF2AWwIhiT97F4Kp+FZug7YsJtWdo9nXsQmOnAWlJ+iiKfnH23WKyAH4i2xwiBa5R01x/ViG+X7ZsMJLty2fzPcfLaagjV9XcRKPE9/ngAgW531LkKAOGwe8FZ7K3EICJVm/gbSwRYsh8hzLJWlIJav6QC3qJJ1foVi4Zax2mwtIiOhOthQyycknY8+HxJXBBTYNpJjLPr6FSp0HVrEDGbF2/DUTzvtEQh6jkuiYhsmA5q5QQegJRYIF5fpDlYYOXh7HUNK4whbNMs5tngpLTHdtXGv8IhcS57qyYX7rEclyeR72z+sG7scje2hjDp8M31SEFWqM0qbXepoGjKZ4+grkKvwEHEmyuP3/uhySffrNAJi1MftEt7zHGe/PJecpt6z4cChvK2OAtIQ1/YKcZB96wpGEMow39PAQnPWbXuCy1Ph8W5Q7LVv5tksTOj54n+newCFAuAfPZS6L7XvCo+oyBasWwG4/gC+rhY9gUC8u37teNvTqwW4pnbEfTPeSJqoLV/iwUsM5oWbbmp3pGj2dO3y1FqxnrCV8RGTAD2aMcPchOo9TDd0nQf7Tekw05oKhr7bo70YTE+ujj7Lx4OKYbTjUT1eyYSjFJIHY56/tZ/WkJARCKUcRQlgljK7gNfjwAEmmUEAwzDtU99sm4zEzVjBl8X67L/zR2dlI4gExETHB5Eso9kQJdKE6gALs2LuxcKS5XyPt+VW3idEKI9kdks+27qWVMWY6kEwzeMtJFAAbqzxlCMj802MQFr4ALCfDpAD5tX2v2DQ3UGzlMKTTSy8wgKyHKHT7jGw2cVDYfi5zer49wRo7NvR3luFhDQXjetPeOt/6897h129QRAfU27AGOxcWJgPollZ6+4pdAgreE4JC/N2D3WSjrOvVnVypHd23gFVJgDl7LdHCH+F+iWncAo4bi9bR/iNJrFMhEAqDJt9mA63PhB35rocXg7ryza/p 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)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dTH5NmKxgm204EiPj1UHqmsBtcQaOY2xiFnfNsShDa/TlHZF7s6jYh1hxyUGINchn9GugMUj6F5f7zy+ZvjsqqMeTaYEY9sK02ot64uuAuPs3IR9JTlOqN6PMcqOvZuxynsfv841YH/yVtfzQtGy6j88vQDNdFkNPaTgB5hWLSlxCQb//HubfVNZ7UQOXCocVUq4M4g0PjO2F+8oro4u4o0T+nXsApur6yjFTT0ItUwp1vABX/W82IvFpocT+nsSJfStn4LTvcOPki+sh+EGWMIP6xuoVdS38G9GEyJCKpf540Qv5kbjZU9tQ5zNDqQ72bUNQturYCOsUdlJShKgWofjltHY9YjCRaAWfzCx+Hb4HFsyINfFs8vXKMYIOsc0TV11qnMpxGNAUVzI13yhj2C9cyd6knJSOB6pmKCVT28H2x6+benysDgIv42Pw+4GAKWBT61iKIduh5YLhH7uBAP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kaMDoHV38KMOxPjhSgR/chp93lrGWTjCQzWv44qTfcm X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: epM5Fm4JBDJS/30axPrm0QL0clApU2fF5aClepR3bjVktYOqiE+V90uT0NCF1OdjbM0rqNX7P22pvQboZmJl92Mhxx8bshV+xsZNkww//XgZna/FCUvJv8cEClZLKM4FlRu6QaCtEpb08zD2HqdAbxIZCY8l4KT4GEPigONxRNUaLI+KAT8QV4ZVu1sxYavgLf01SaKdvntZ04mmruT+mFzCHx1wor01I0fRp2pGSVPuutGy6BdTE9WLswZeYBkVViF0fUFpPwDGl3sfSutSz8hHcdUTVP3XwTbHRe2NBEtIaXUtvyWoT/ZHczitv26W+wUfC2MOVZ8LFDxe6u0AenAGckr9jWsmrv9PNFtLYy+HDeIMZ08uEk0KsRKeXJhvt5A8ZHkJBn8EpH5R3D6Vg+gLJhqshapNii1zg5qpF6xEk262YTuXhYTcR0gPDO1eh0Zjyl4rdon4iTKGg5+1pNQvaMJ8tR8h4N5ALIfCzgF1fA3f8gVpeDfYesuNQCAjMZLCf/chvgcmWpO9ITmoOD02hEy/MfQ57H07SskpUm13fVLi7Fe9NBQtZ0xEU/CRqrJjpfPPbRNgBMYVOA9Sujf6fbzXSLe+tP9Vcp8YluQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a79c3499-caec-4267-453a-08dcef9c122c X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 17:41:18.0042 (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: hysbLPJnGI65U2LGfeA0wJ39/lvl+9pgg450WDpaEu6hhoQyTJnWre5+Po1BP6H32eS0R+lf+gAuxSE2nuxOgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB7078 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-18_13,2024-10-17_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=654 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410180113 X-Proofpoint-GUID: wKdwXUEC3jLSCZG7f7_ewh15ywV7wL8F X-Proofpoint-ORIG-GUID: wKdwXUEC3jLSCZG7f7_ewh15ywV7wL8F X-Stat-Signature: 4h9qbgwnbjkfzfcupgk1hu9itwhmusab X-Rspamd-Queue-Id: D635240005 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1729273287-29805 X-HE-Meta: U2FsdGVkX1+JTcFWw0agpy8f27zOXdjaJBVZnBdpvYJZ6d+AfwCGP/ra/bz0bZPucUw11yM2ewSBQZGnWN53jPuVPjImRkijBsXLhVx9K+jFLokVhNlqcJDSQ1/zdLQD1EZwn2oOMISLZ2KFoAaIkPH6HWXzhTLbnr/64arUMSiCmaG4Chtg2I5sA5/a7uVj97w+0DGhvsHoz6LdW+aOBlUMNORZa9FyupQEWy9F53zV1KNyEiMZJ+txGjyi2mcdmHm/1n9JSHhYzPPPDLmjJ0TDHcRRoaMMEIwM+CbBcphsC2dptLORoIln6hIWUl+HA0IqmEF3mHEw2MBCo+s6h/bfG8bASyH0po1UWRsB3IkvokTfS+T+HgHbgAWfArGx+h5uUqiexTg4EKW+HIcn7t/unXdqg8lLJX0lKlywflZPfw2USrvB1azWCkoYFhvOeRTECEXKLgB/ECUxnfQbywKOiMBJ/nXk7Hj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JJqCzjWIHmIUpzLA7sRt15Tfb9hMzUCzpI 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: An extra vma tree walk was discovered in some mremap call paths during the discussion on mseal() changes. This patch set removes the extra vma tree walk and further cleans up mremap_to(). v1: https://lore.kernel.org/all/20241016201719.2449143-1-Liam.Howlett@oracle.com/ Changes since v1: Change mremap_vma_check() to resize_is_valid() - Thanks Jeff & Andrew Fixed missing return check - Thanks Andrew Added comments to both functions that are touched - Thanks Andrew Liam R. Howlett (2): mm/mremap: Clean up vma_to_resize() mm/mremap: Remove goto from mremap_to() mm/mremap.c | 93 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 38 deletions(-)