Message ID | 20230421135559.2163923-1-Liam.Howlett@oracle.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1089890vqo; Fri, 21 Apr 2023 07:03:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bp8B4zeDKg3i4e3GyaEJTRiMnYlnS6Ta2BaC7zBpbUxLA5LXfyvE6FT3o24lwMLgxvRE5C X-Received: by 2002:a1f:e2c1:0:b0:440:3ef7:35ba with SMTP id z184-20020a1fe2c1000000b004403ef735bamr768585vkg.13.1682085793984; Fri, 21 Apr 2023 07:03:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682085793; cv=pass; d=google.com; s=arc-20160816; b=hRS5rkcHE8nJkvTExWnGRvdfRFxpkhhYPnhD3JzkilM15Diqblku8Ma/07o4d/xcm7 WcEVxsnsIPz4fqKTYr6beB5Al5YCD/3xKSlfUNVJDXLv2g4gAspJ/I/gWczXzv2D9Fzb Wyi04baXfJu+wq4Rntj6pRJ8b7wJTcx0xGb1hkmTZJIX7co4Pyz5gjmkm4+9MR5DF7PF OUQLXE1kJB0kpjV52S1a3wYqCOzRYbgzgoRW9GWIrTzeSmJzwBP8crmg3AmebwUh/Ftt zCLSBsc/EqtAY74OJ7gpqE2vrejYNwMaBySaL33h6vuDgj9t4S0QKvPsTVAa6Z8Fw9aZ PJFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=uYAWVCpyzH9MIuX/naIbV1XFjIR8SNTM4Kb54o/jV1I=; b=gttsqz1v7PAxDhfKqgyTHOv3PaOjQv9mY1o7nBftJaSCacnnqHVLAvcCgpQU0rd6gl DwhIwJ/Rjh8w7T4VcDfAapbi4fIbcBTVJFYnYzD28TCX0T3q3xKrAY3+RGws9DQAuwWn +4iZzLztqRti69wDIbMymoT+vZjpcU+mOV44GezimnCQ713rgk1MtavE4mdAphVJebo3 F92qlmsyVPdRjJYkOigZhmSX87j444qIOl06eaU0zv51gNtKIvMZAOF5jdBpcaO4qBOp Olxs+ahh2UpcgBAxn8PP1PwE29W0Q7hrYYGcjyauySTN/4DFZK0c60tYRGYKvA5KHVjr g4Xw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=HETluDDU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="J0+C//0W"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a1fb401000000b0043fc824e887si1005692vkf.280.2023.04.21.07.02.58; Fri, 21 Apr 2023 07:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=HETluDDU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="J0+C//0W"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232430AbjDUN47 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Fri, 21 Apr 2023 09:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbjDUN4x (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Apr 2023 09:56:53 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B074559F9 for <linux-kernel@vger.kernel.org>; Fri, 21 Apr 2023 06:56:52 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33LCYhuD025556; Fri, 21 Apr 2023 13:56:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=uYAWVCpyzH9MIuX/naIbV1XFjIR8SNTM4Kb54o/jV1I=; b=HETluDDUNCBbx2p7zlBom28gP5zcU6NwrsP94GFBDSArwokrlZi2jBJ+QWz37lHHm5kH bOT3Yk7aMrjMIgSQ91EvfEkSOpyKDWvyEYx3xwMNxXSU5MrvBjJjKKCUFzOS/Ow1VSwx WwjaPb9ldTZk4KD7ymLCebx2Wh9MwW0OrP3esm25XXY3IBV59DYKeIj36iguNiVA6wFZ rQk6/c2dBqM0HonwGjtFYXlZAxP0Hs/yBXyyjSHH7X/hJnvzokBURfHj6jqrGcxfnEKw vuiPCkvQSZypYted9Dxnj5uqF/1nKBL2h5rYcTP2ZNf2bSPJ7C5p35e6ZmKROfVq2igQ Lg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pyjucdeby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Apr 2023 13:56:23 +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 33LC93F5026314; Fri, 21 Apr 2023 13:56:21 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3pyjcfy1d9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Apr 2023 13:56:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xj2b4VSQ+zMKnK2Bc17FGzQpslh1lYwD0JITgcSdNLBvu1q3Jp+Fh8Vy7tf7lgLwjcmkk7tfDN0lBfY5yMgqUyHjlQJYilRJ6uKdj2vKVSTTkFWbB+UuZ6DL+i1GmbsDiBh8Vyyc2QiNrybFAkulArYieNVIQ6N/F1Y5h74qeURjtrgbVQfTAkdBTMeTz5yjcbs6k2hBbTn9+vNl2o7o1ZgtQiaGzUOix7cMOgoSJj20RjuqLkBj13bcFrpkOdaM4tzZ2ktn4SqdUQuBJge1GB2bOdmM4kdnrNxzrQWXl+oWE3kNolYghknDKvO6A4MZoIJmXnH10suERMNAFC/H/w== 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=uYAWVCpyzH9MIuX/naIbV1XFjIR8SNTM4Kb54o/jV1I=; b=JWUr85aQGg5lzo6R5xKSJdDmVInD0DCTAfyRuTrMW7o74cEN5719T1aFmy6wCV4yry1VCb9goZnF4RFXmn+juvRX/+Xbhbb/koFpct8enkde1c5ByXbX978PqGBHdcOa22FT2GBCe3gKtvmtmt88YsoLEzcHKMByD+LRHpFKLLuLuP7C2dAK3LkLc9n93xuyFAPk8PFouCH7TJ9E4d5YS61s2u70vAKq5B0M2i3wmjEnc6DFbdYQhVq/CMIUUcUVOTL1wzuJV2A4PjI3tYa4EiROn14S0gtfR1189/3ziyaq/XRQX6z1zO43Kt+57qE14KIeF5jlQKZ58U9X3J83yg== 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=uYAWVCpyzH9MIuX/naIbV1XFjIR8SNTM4Kb54o/jV1I=; b=J0+C//0WnlWXqu3Lx32lNuHrldef6sII+hGLzmYxZqi2Dki7NoZGRh8HGvSTaRHHYcj7vrjMSkLwMbslkQOm9QiRJLAhTuUd8wzKVfYqor3GqQNSHBEfLfL8yXsqE2Rpn0jai0iS5JkF+8cqteSh8EMmXOjethGXw8fgQ4ARNjY= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by IA1PR10MB7540.namprd10.prod.outlook.com (2603:10b6:208:445::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 13:56:19 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da%7]) with mapi id 15.20.6319.022; Fri, 21 Apr 2023 13:56:19 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, Rick Edgecombe <rick.p.edgecombe@intel.com>, Peng Zhang <zhangpeng.00@bytedance.com>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v3 0/4] Fix mas_empty_area() search Date: Fri, 21 Apr 2023 09:55:55 -0400 Message-Id: <20230421135559.2163923-1-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT1PR01CA0113.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2c::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_|IA1PR10MB7540:EE_ X-MS-Office365-Filtering-Correlation-Id: d67ef863-293e-463a-9cec-08db42702efc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NXWYYwbMAKAYyZug541QNa0jgxjWkS2Y04MHwuhixJQWS32DiKTDEe99VbO36AhhTHPvyyfqgvYYzaZQF7p6vW5tP+jYZFRWEIiOscln/x2woRNX2MaNYkgkqJPmSnxF1cpDxehCpSdhey1t7WtGtGfxK5E8YQPYHP43Ahrnz7IhDW0Lz4wkaX8q+OcWO66F1BK7LLwF7vvCn1gYQOx1NAbDu02IpQAQWtV+phTGwt3ZykNf/l9gKeFwdoZKp9GenXDz9+o2uE78dyp0VDpTjOVI7aNfxGDL4lRUKgj0JKTL7nKCxvIufqhqK06gJAI2I/cWDWrOw5dyYCNhh4i4he6iSD9EhZSqCAtifMIy0UbsCw4K1D/K/TXEIuvr/6r2oLN94+ajeVIyEnH0I9uZ8U16hiTr1UIPSjXtWfNIHcFSWrqqBcYSLFzCA6/4jW+45tmNQEVz5bxzoaSM1VowvdlJXpuLMmH0/M2xnbm4H5/sWdIKtbhnDPD9wfyyDH/YzIHnh3/+qigTREkx1cdBt0Z3gsvk0rc81nXZ45P7GiuG67LHR/DSNlbuz1NqBgxnUTz1rSB8W1Qt0TZi4HfkCw== 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)(396003)(366004)(39860400002)(376002)(346002)(136003)(451199021)(8676002)(8936002)(38100700002)(6916009)(4326008)(66556008)(66946007)(66476007)(41300700001)(316002)(2906002)(5660300002)(186003)(107886003)(86362001)(1076003)(6506007)(26005)(6512007)(36756003)(83380400001)(2616005)(54906003)(6666004)(966005)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /TL6AqmAvfebHxf8Hpyop/TSZFwjgiPaEMpnrOsn8vBHp+n5vbYx0XhmAgeJetk8mFGtU9ZunxZEUXOuANJZKnUKl/kX8CBnex4jOt2fUVAfWQroVmCXQaJCRivL8WBX8jS76pXkXZ/auu14uJhMNPXYIJkUn8qNFshcNS4yyVlWNMsPIZuflHRsPD3XVbF+ZEyNrFs3C7gMSure9/FzKDUqjeM694QhoW6cCiOm7AMu1a6MvQIf5p9Pvfzo+CSVS3VUto6Hvg1T41bIeHIrxksGYgSKyRYCjU2bzFIWvje0ak23tgE+K0ZbIPvP6cR1ZazS2uJzzEOHOKY5t0voxzglVVxCz4Yh1X772LqMC/MsLZsKd9qCuF1QAHRHpuOeFyxc0ODbnnkWWQwNe/7d3KHuQB0CwtsOKfjat0dEd+Mg9kEXV3jR2ZEokS2nLpVGDycf0Ony6kyAYJMBBS69qBKbfyVuW8chU11MI1VoaoRz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UdXO47R2x1U9Vz6gr9VWA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d67ef863-293e-463a-9cec-08db42702efc X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 13:56:19.6284 (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: 00USB2EMvQlh9992ZMezxqLeGhjToxQ5vWPsbcJmGfsZwOHgV9o8gtdStinZTRquXlLuEs3utCkTSHzSGhrT8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7540 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-21_06,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304210121 X-Proofpoint-GUID: ZfPdlqGBWiv5EdW-KU_4k2t0u8Xslc-m X-Proofpoint-ORIG-GUID: ZfPdlqGBWiv5EdW-KU_4k2t0u8Xslc-m X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763794793489382798?= X-GMAIL-MSGID: =?utf-8?q?1763794793489382798?= |
Series |
Fix mas_empty_area() search
|
|
Message
Liam R. Howlett
April 21, 2023, 1:55 p.m. UTC
mas_empty_area() search could potentially return a sub-optimal position for a VMAs as it is coded. This patch set is to address the issue by altering the maple tree search and the mmap call into that search. Changes from v2: - Addressed Peng Zhang's concerns around limit checking. - Updated testing code to work with size of 1 and added tests for this case. v2: https://lore.kernel.org/linux-mm/20230414185919.4175572-1-Liam.Howlett@oracle.com/ v1: https://lore.kernel.org/linux-mm/20230414145728.4067069-1-Liam.Howlett@oracle.com/ Liam R. Howlett (4): maple_tree: Make maple state reusable after mas_empty_area_rev() maple_tree: Update mtree_alloc_rrange() and mtree_alloc_range() testing maple_tree: Fix mas_empty_area() search mm/mmap: Regression fix for unmapped_area{_topdown} lib/maple_tree.c | 61 ++++++++++++++++++++++++------------------- lib/test_maple_tree.c | 27 ++++++++++++++----- mm/mmap.c | 48 ++++++++++++++++++++++++++++++---- 3 files changed, 97 insertions(+), 39 deletions(-)