From patchwork Thu May 18 14:55:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13246948 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 5DE37C77B7D for ; Thu, 18 May 2023 14:56:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E3507280009; Thu, 18 May 2023 10:56:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE5E3280004; Thu, 18 May 2023 10:56:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C397C280009; Thu, 18 May 2023 10:56:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B538C280004 for ; Thu, 18 May 2023 10:56:50 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8250B140839 for ; Thu, 18 May 2023 14:56:50 +0000 (UTC) X-FDA: 80803677780.08.ADB570C Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf22.hostedemail.com (Postfix) with ESMTP id AC995C000D for ; Thu, 18 May 2023 14:56:46 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=kH6HK6Gx; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HltFhs7h; spf=pass (imf22.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=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684421806; 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=jgywN8jRiNRwTIyRRyz+BVe3XwlkNQkfDm5N7nxtCT0=; b=WD1iQaUSFIHInTSW2N5Q0/oDZhHEf4131crFLV2qckYFMn0oeYtAeh2OcnTwVRQBBy9m98 XmBe68RTMNKCSyh36H8JWGDtA14dzzD/Kppg9JfXutAAy/8FiGgemh34oaw9dnsgOhcTw0 EqQ8qtw2uUWf3ZZZ7tgVbipz810AP6o= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=kH6HK6Gx; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HltFhs7h; spf=pass (imf22.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=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1684421806; a=rsa-sha256; cv=pass; b=CpJ2LeXNuuAOk6+EbKWtatsP+87rHdoeA7KtdLnqNhx6p4IP/4tW37uYNPB7X778hRPRTM ocdxJwS5ydL2BiDWa/AnL+sZZCblFjsdfJQtrL6dRV3Pd3VQ0wKbwXi0lMSTM8FUTvc+pV 5wl+KlOEomkufhzQgF2dZ3vFu37o86o= Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34I6IlYr012447; Thu, 18 May 2023 14:56:45 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-03-30; bh=jgywN8jRiNRwTIyRRyz+BVe3XwlkNQkfDm5N7nxtCT0=; b=kH6HK6Gxj2S+IDz0cO9C8zLJo+Q59oBueWGwNXY950voWl4D95FH+WsSOTquWUj5xjfM 40Fc5KcJvkO7cekOyKjf1aIbIz3kxxKApIzGUVdhaVef5lAfZEmy7kJnVwZBa0Z6uOuD 8FdCFqrYPITEq4htsrdHD7CAN/zM/TNUPkPleczszljTRa7Lp0CLEwelwpHtZGbdj2bK drVH3Qjq2aySLBJ3iYUlxQ6mYuCCJEMFII2n0jU4BQhSKWx3gKd9ME1Tuv9VL/fSSt2u WqwA91vMbt31BxWZQK/3iZ4F34rX5yEzKIjq7n56euanSDgJwwpfQt+mwgmChQtt0GSN 5Q== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj2kdrh00-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:45 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34IEidhb036327; Thu, 18 May 2023 14:56:44 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qmm03w3tx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ej4njUs+c1MWR1ZoyVVAJuBWO4WbNagSIuBZjTlswtvtMy/k9AbZxCzzMSiG2w3DYdDANyodu7cedLhaTMSozniicePWDt85elnQGWpa94pOGS+UR8ZSjIsHFRDH0CZldUBGyWCzYi/GGBBzoWdUOBog7fkGBN99CDgoV9PkSagLc+ywpadxLv0kpzGR6bJuL46C9G9JKzZsmtP8NQUR5KNraGvEO96ZOpkL2lukZJGkEJUAJXWx/byBzJExxUpFatA3e0TkaqnkqnsQ6cWTXO+OnFY3l0+7G9zFR/UBPvoNlSfoj5NivKyCC31M1l9v2u/h2aGSbqnQEC2g15Ofeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=jgywN8jRiNRwTIyRRyz+BVe3XwlkNQkfDm5N7nxtCT0=; b=iguE3oZgfVijyH9+8noAzyrdh+INRsYwTRTGc8AWYkk5mF4NZoqJgd8FJoHWlYZK6sfJJB1TpgNEkdfTAzc3mF2Zi8mqyu1vacCtvfMq+U8Sc0PyJtSNTh9yO4WkNgV2157wQ3mQ+LU7pWYfu65d8gobOFNQRxIJl7FX2YTUbXU2HnMT7D5fO4PbKXPe3LhJ3KUXjK8UM+rGbzu35TcgcqfqVEBxPihTnb0HYuGQzwDJZR8TH1u57ZE9RVTpTUg1SZrg1eYkzOcEvZcbzZTRux28vOlYU27kIyUH6E2JsNNi+zyCX19pLEHYj44TMWJ+qCxansqj1ZojNeEPcui4fQ== 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=jgywN8jRiNRwTIyRRyz+BVe3XwlkNQkfDm5N7nxtCT0=; b=HltFhs7hrzf12wOmonJrhpV7sxZDY/P7xxqKym5wu98kFAIW7oObiH/9PuKBYVgva4FSA/F9iQsIwChmWDsDD1Cf7Y/ZEK11uAm79XqDW3dIKVBktN7u+O482AoiJVe1wWFFLTfVnfalxawC27BvmupY6gl/Nvk7wp6UWz2JIrw= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DM4PR10MB7427.namprd10.prod.outlook.com (2603:10b6:8:181::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 14:56:43 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6411.017; Thu, 18 May 2023 14:56:43 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" Subject: [PATCH v4 22/35] mm/mmap: Change do_vmi_align_munmap() for maple tree iterator changes Date: Thu, 18 May 2023 10:55:31 -0400 Message-Id: <20230518145544.1722059-23-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518145544.1722059-1-Liam.Howlett@oracle.com> References: <20230518145544.1722059-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0367.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:fd::22) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DM4PR10MB7427:EE_ X-MS-Office365-Filtering-Correlation-Id: 562db84b-bd89-412d-40ec-08db57b017eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iFB9nSxqfLDl2YTBgVnoJPeuLowhNMzBF2Q2a97DTkcoFeRrN31h8yqZJBrkGw5z0Qcg9J3E4Pm6MFUq3ARsD9WiQjjnA8FnS4O9aRxqDuBCTFaZh6kuthVoAe5uZJ3FMiGbD3HZSEkFcnJFSMPUwBIWvlBJcBRav5pAf3LIWWTC/WhCk0Dthmclnev0uCMcopM7gkMlXOQl+nI5QKBsnMlnc9YYCh9Ku+AIAV96Ty5iqly6RO9oOQLKUtdRiNpZ2kuf5PDQoFt77HsWR1Z9MJQQ3ykgMg8bjMKU/pcXfY4/vakLq+U2M2VwG56+IxTrB2BfUQxmM1RZc9v5MnS1Un2SgD8Qyn48C7nVzBipTf+DpPmIgT/KOQWnRpxvWcIHWOg/8bymp6yoKYBS+sBblWrRGNAsTdYyG41DEGa6TljGitJY1IFRVHHzP6MHFHWxDAzREM3JIUwnoOZVmrB8tDcDVRF33BEJR81jpnqiSNj58ZwgsMx5zyZTJceZOwcNX++HSvgFoTVQZiDNW6/C/y5kbP4gCfEMFx2Q0qpL0YBT/sq67KLyNxF69H1Ewkrh X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(346002)(136003)(376002)(366004)(451199021)(8676002)(5660300002)(8936002)(4326008)(316002)(6512007)(1076003)(83380400001)(6506007)(26005)(107886003)(86362001)(186003)(38100700002)(2616005)(41300700001)(478600001)(66476007)(6666004)(66946007)(66556008)(6916009)(6486002)(36756003)(2906002)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-M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bhFxQY9aLssgLeRUd7OWDf+FzjO5jY/ITGCYjLhxmXZxcMkm3l8uBVfsGTwAd7ZxBJAjSwbDyao3BxDlxVBSUKpqpGq2WfS4Tw3rS1vifdpTvYl3ikwGHu644d1ytSLP9Tz1PhERAGCzQYS7iwbBtjlOPZ0HVYAsntR7iAzJ9BrPiiWKj48CQTpKrmmiGfaOYppjUmnBkkpv/X9AhSkTp0TI22N7KDP+LMJqXCvsLCGFmCF2G6V0iSIfwVBgNjHg/+cu0nPt4Oy2NtIZHimpALsFrHhlumqtRF2HH6JD/cxqe5/0Gij/QbE9bNHdR7K914BH10AeVmjwi9Od41U2McUSV2Z4GYE/legU7MACTm1++HWaU2TLbhT3L0jvRZ0H5r5WS9yU0Uj82IE+aFXlRWDB761EBICPlnwlWQ6+IPM0uYAXmP5wHZG75ACOt7eMEh8FEV48q1XeM35AGXqywGbXgCbOv5tq7CynXWA2Q== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562db84b-bd89-412d-40ec-08db57b017eb X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 14:56:43.1198 (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: hezqRNr93dbp0EQ5zJEy7IL7BF9QQBrbKzicL70f1gOe4O4ZS/jJ8/i/AHc0gvlhoqUZ+GHrXpQf/YcxZtbWPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7427 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_11,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-GUID: 2NTUNuCQ95Lzfw30g5KPpFc79bmv8ea5 X-Proofpoint-ORIG-GUID: 2NTUNuCQ95Lzfw30g5KPpFc79bmv8ea5 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: AC995C000D X-Stat-Signature: 3imrm6xqogwk1xubffjte683wndqbzcz X-HE-Tag: 1684421806-270184 X-HE-Meta: U2FsdGVkX1+cKQ3cygHMatUScm2lz6OIERWhjzATRmb3Fww/H0l5toQHW6SelkuDACuZWc+tmC1psVQbxiIQOdkhkYKVp35g/zluc2k+UfqbBG+0ohotmJicq4CvjBbk/FjVuQmd6CGdjZ7PDTpkFE/o173DzWV5PjSJ3Ob3QhATmEoth2F6PCCop+XAveq2p7H0oIC/yC3eGZleUahb8/e43VVqdaYB2fimiEQ84FrZufUyhxTwGHLuD6YNfj2xyJIpgDyOjiAiiQ9i+MvHJHB/lZ1JU7hdt4SecR96eIx7GPFSyOJfoUy0DvzHW9B9URyqzHw0FKmXov+puLKwpZYmSbEOTlkmSUR40MwWuBblZqcpBVMSbA6eF9iMTMcCvQ19EDzDBP9XSILT8ITsuxJTVg9C+xPTjWi+lxL2qXTr9c34Mqov1LK6GQ7GJxP0NoKKWKBEcoxvSfFRFphPLzxhJkmCUM2aaasD/xsedl2Vrk5Kaskn0Kn4oe3AJBGVu6EEE/LiZxT6+Q1N7JGWaeVB0O2+HiK6Lk6wlMbL+rdaYKrBvjlcBi8IUPpuILIOzN4F4sGdR8Dpt6sE3OCY+JmEsNW1K6nCQxAKyoPA0HxggmOLMFArcK83GMwBWezWsIu+P8FHQqe9i16L57H+xe3ExnNpGrCy1237g86PnEpN3/FE8ea8KLqmHhEJaTwwF7r4dI3NmdSK8U5MmVTfnoD8OjwgPriF3Bar5NzqRjzh/SF9rscuDY7Rl5jZEAzzDJHnP+rSR3BSe0hLh/LDvuTKU5FlBSs4bEJQWQorNV6f+JrOtCqLEI2Clc3f6C6Z2x8/jLfSKOz42b+uq98fJrsZT8l64Lq0FDOfy1VQeidf1+Iuz4AnS1PPeEpppCHHe4unQCPfYYpOy4C/jEeV5yMhMFBKZ7CCmQ6cnYRm//4Jv4Wwh7rNeDJ6f4PosT4fvh/GD+/ug+9gjwpUV13 G0Ght6rw /M+ehI+sUi+J41e7aEPsYK94G8QKfyNDnGFG40tUT4h7rP4js2yoquu01V6qt8l103B2uVxEWu+R1WY5qfLjWHm+MvQC72KGwuo6su6jKrt+zJDSh9QQlXgeFSxRfpgaYVrCosf5lPaQFtF2dia28xnqk2bhrRzcpuX+i/vGDDC3DNB69DbY3b2ZFEC20zRiwqMTeTo8T5xydJwjPnuqKdyPVkmSsXfBI79Ht+orIIXEQMPyKUEa0pCTGSlasEnQ7AZ139LGZ4WMUui0i1iOj0j0/gYeqpLh3JiXZlJAOZGSHPD2C4vy6KVGpG1NvCnxXlP94XoSfCcXvY0/9GsyZLrvvw/qNkSubQXpdbMyz17QPIaNb5QnSXUdMXepkJOcckqOSowbvrMQnRmcOzyS//9OcseWRPHczw4vd0ilb9B/RKB8= 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: The maple tree iterator clean up is incompatible with the way do_vmi_align_munmap() expects it to behave. Update the expected behaviour to map now since the change will work currently. Signed-off-by: Liam R. Howlett --- mm/mmap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index bcebfd926632..1602c854133a 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2418,7 +2418,12 @@ do_vmi_align_munmap(struct vma_iterator *vmi, struct vm_area_struct *vma, #endif } - next = vma_next(vmi); + if (vma_iter_end(vmi) > end) + next = vma_iter_load(vmi); + + if (!next) + next = vma_next(vmi); + if (unlikely(uf)) { /* * If userfaultfd_unmap_prep returns an error the vmas