From patchwork Tue Jan 17 02:34:16 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: 44435 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1519550wrn; Mon, 16 Jan 2023 18:37:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtgqy4Eduf1dqFGV0dbu1+9W9cWTH0t09/GrD55sJFjfaUapIBjASaP270uTPFvel1PRM7G X-Received: by 2002:a17:907:c388:b0:86e:65c8:6fe3 with SMTP id tm8-20020a170907c38800b0086e65c86fe3mr1308453ejc.7.1673923078700; Mon, 16 Jan 2023 18:37:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673923078; cv=pass; d=google.com; s=arc-20160816; b=VduGpjd9X0wDOPcWuSjA5d5jM7O/2vpkfOZgpk1sNq6uKPnYmlM/knKHmJcaLIzxAR 8vmxb/0YcG1TL9IFjNnpqiAyLbEI8FbMbVxeP9vq65LpczmZfk37Txr/T9rQeS5k4qmy CwLSMUlxIjjP2XmSylaOOtCC12uu6ncxduzC3SyBePS7nyExOnJY6pqDFmVm0PYrltzT 4gauWH7vjvqZ1dfmza4L5Tr3U2VbrS7NfWIQozPZzfwSWW3u0CRK8dzBang2u0C7IgpI n/pgPxLmYrh6iLerv5Px7jhTbQ1NGbmsF67KkHdtHk/91HEXM4unWPNpfXWJBVx554cB Ourw== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=7jgMvChxkwjpmNBsSLPkBEf800VrOzeU4TR5euk2NpY=; b=olwumcVM5WrSFyLRYqguVJcjIriADw4SygdFoeI0bTT2h+mRbrR2LQgJJhDH2neWrA m9sOTh2BjyZI6n/Yu2wZMkMGZJCf/i8o0+7zCVcIQyHqVZAo5cZj3S2jOPiuciOoEtlR O5VBGdTi2+nZcKPkWwP4wVU+BYQqOVZ0K1m5S5sHp62K0i2MxvBYUtndwKsUsXBWtt8M 1l+DtGTyMl8VaclCSE3PT/ikFKDlByD4kU0svAJJb9viZtQZByJtCh1Mu6D7DJG8QWQm a/lfwg4pvBPuDgOtgC2I6EwYFF1Q/Wr5zh+xjsJKReFEBLFWqN3UlqJ+FSXA+dYniizI tfFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=EQEq4J+x; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=fhFcvHWL; 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 xc2-20020a170907074200b0078c3197bf86si35457224ejb.533.2023.01.16.18.37.34; Mon, 16 Jan 2023 18:37:58 -0800 (PST) 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-2022-7-12 header.b=EQEq4J+x; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=fhFcvHWL; 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 S235539AbjAQCfy (ORCPT + 99 others); Mon, 16 Jan 2023 21:35:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235422AbjAQCfD (ORCPT ); Mon, 16 Jan 2023 21:35:03 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D852B0A6 for ; Mon, 16 Jan 2023 18:34:30 -0800 (PST) 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 30H091bm000974; Tue, 17 Jan 2023 02:34:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=7jgMvChxkwjpmNBsSLPkBEf800VrOzeU4TR5euk2NpY=; b=EQEq4J+xxka1oSunts7Qe47R0g1R89cebZvFbF8UCX+XVl9zi7LPBM8/KIID/OMxJ2dW hqFzWVIeNBEcdADqQM9PDUYWILKAmdufsLPL0UghUnXauW3fgmcuwp4IhNyZKiY+SUoJ fS4dbqV6X1bRxBDAJmOSLpo/pzbzfYaK4qD+iOV9TO7TTWi2pQ3Wuw8No9DTvAFwzKWj yckzqdSx9FFSg6z9DdRRI/bRVKVM1WWC0iOSGilBJXamV7vZtXx39Y75DgB7MjDxA4d1 YPDiaanPwgiJXZw/LH8zVco8ZHYza+1VblPy2TqAHq9MpInNdCRTVGL+w8qjEmh0prXs Cw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n3medbqbf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Jan 2023 02:34:21 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30GNXAUV020577; Tue, 17 Jan 2023 02:34:21 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n4rq37hat-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Jan 2023 02:34:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f1jEulEsnCuJhBuDTLtTN3qqhfxMbT7pWn9gnd6/rpWw8D7Ylgf9VN3uj0nGaNM2R3b7hHV4Ww7knwr7JWSAvtRwwjmfbyD4Z+7iduAQWwW8B+SlrUsJzQmKVK++iI6OIycu/uttsAKT1+/51lxVeZXXrBj4q4JNczdUs0msODAolcLp/1s25eKj/4Iuaf+ernM8pYK18LTyGUKiWFb050JojyEJQFb8k4LtwpEctJPxCrAj7xCo2p1kwKHOgJgvg4RbeDeoQJ7N6W7JgmRB0JznSGhBoCm4+u5L8+k+vmuL7R0sRxg3xgSlAfTuu1mo1VrlaUht5GUh77dh0Wo75Q== 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=7jgMvChxkwjpmNBsSLPkBEf800VrOzeU4TR5euk2NpY=; b=gKs/M1v9Ul1PxIyYBoerGCT8qmmMA9p7SFK1RVPcLr5+rYEsRkWbTyZLr8R/JflvXkPOpCUYI0Ci9nCU7MfenVPJQagvOB+QrR8NJiFwzCaO8G7nPWy3bAdTzr0u1RUiC6MlqjTa/UxyNHniDLfhypmFmVZcXA8QT4/SZRDR0VWl9Zp5gwkCNPfy/tZcZI2ce7xDOQ/bd+eu13/Qmliwjb+2ENgVmOnYtvmUqhwXpdTrPusQsPmXgc7aKlX0FBPPMB9cbxGM0oYKJtot5il3aYE589qeF7PaRjuO7xDD8kz0L+Jt2pRf2uyMvalHBIMWg3nyQAGhph80QBmXlSgTZA== 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=7jgMvChxkwjpmNBsSLPkBEf800VrOzeU4TR5euk2NpY=; b=fhFcvHWLLwL/HEHvOJ/O9eV1y/W11nYJdRK9F40/d3z2g7m7OYgZfHzyY/NWl/Sk5ItYJRkaNb8tKqDSH1qomO08Sl1GZwFfFQE8fesvBSVlBdidssnACPgVeFdsRpAIJO4OeuVjr/lW4h+zKnuVqjOwePyfPvQWnxjbhRfqP7s= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CH0PR10MB5356.namprd10.prod.outlook.com (2603:10b6:610:c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Tue, 17 Jan 2023 02:34:18 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a02:2ac8:ee3e:682]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a02:2ac8:ee3e:682%4]) with mapi id 15.20.6002.012; Tue, 17 Jan 2023 02:34:18 +0000 From: Liam Howlett To: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , "maple-tree@lists.infradead.org" CC: Liam Howlett , Liam Howlett Subject: [PATCH v3 19/48] coredump: Convert to vma iterator Thread-Topic: [PATCH v3 19/48] coredump: Convert to vma iterator Thread-Index: AQHZKhwx5K/ndsuvtUyB85QJDGkLfQ== Date: Tue, 17 Jan 2023 02:34:16 +0000 Message-ID: <20230117023335.1690727-20-Liam.Howlett@oracle.com> References: <20230117023335.1690727-1-Liam.Howlett@oracle.com> In-Reply-To: <20230117023335.1690727-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.35.1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR10MB3022:EE_|CH0PR10MB5356:EE_ x-ms-office365-filtering-correlation-id: af36f2f3-26cd-46eb-5ac1-08daf8335519 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +N70+PjlhVDvU/9DWoPtrUSfs7F1BGJZQ4eLMty34Uz5T85eMcrT+SaknM/6Q9qsI9oFfN6bfMBtYYabVp41L6wXIZGMSn5stpMWAiu3Vn4knY6GTy/qgNHAYu5sRUt++4ei1MC7eTa1CDQ7Ax2AARG81ADz9a/4gN/W+mZtoGTTRaMmvsR/kEIn8h9PVams8Uj1HqTGDK2G4n6U0zB0ibPWyH68VVvXJ1EBn3kHmY9zMCcHYyGDbpl7Co50zi17czOIE7SPrp3bHZjFVyrPrcR1d2uJrPeoCR2uX3p/nt/IWyptyCy5/WpAFqrsRT+67yEmio4RjK6jOx3vxoeG4v8z0Texr2+QJafmpF24Cv701FrVYvKn7pCEX8KPx2yfGmDjBY9/kjss6r91fnLhQRQZyEdHbvmkJAe7iRY2MXtjDDcYSurHEVPi7JKfx5oHbqg1Rcra4FKDzc5ol4byccpBEEsurOON5Xqo3f+d+iH95QoBphjH+gL2c1i9lxAy3+XT5W+KpfyUTgAIy1JG7WuDIJQb1YkIdJvoZPZwB57ZKfnzFX62Q94px8jkQIK71e9o3Au8hKX8MyiKtPgxzmPMGPWiIf20RG+2FzcWoXTInHed425R1l7bpnz5VzqtPmlJjQfvdahwRv47CgwRf/TYas5WPRBDNhU/8XtbQa8owXfzC7l+og1KAGmwxV7GtWlBzomo+BxzE4KqNld0Yw== 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:(13230022)(396003)(366004)(376002)(346002)(39860400002)(136003)(451199015)(36756003)(38070700005)(5660300002)(8676002)(44832011)(8936002)(4326008)(76116006)(66946007)(64756008)(66556008)(66476007)(66446008)(2906002)(83380400001)(38100700002)(122000001)(478600001)(54906003)(71200400001)(316002)(107886003)(110136005)(6486002)(86362001)(1076003)(41300700001)(91956017)(2616005)(6512007)(186003)(26005)(6506007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?as2fIsZFG7RMuWLqAHg+nVF?= =?iso-8859-1?q?LY1SDtgD9wcIltFtqxRohT90iqn8oo9nINtECHzjg97Bh+OMqPxkvZxlbjh3?= =?iso-8859-1?q?74a7EloLP68sr19gequYaDXPpWbUu6yvYw41xZQm9A4J/T7csk2i7wPWsXZH?= =?iso-8859-1?q?pZiQ/qE8HNK7L2fQEGU0sroPbhEHrnn5C46UYCsK2AhnNbFnA0SifNU9HwxY?= =?iso-8859-1?q?rCPgrjo9bGFYUxGcyQu9k6M9iTUTBKllYvaBbcSP04wc81GmIKyaCbDoW9XI?= =?iso-8859-1?q?9fhGzLcuY+ir/I/R+MR+BZz034r7e3e7EWSghVI7RoCJ0GK4P7O5CmAiJMJQ?= =?iso-8859-1?q?CowyL+lHQ2+FnlFF8KepeShv/ZGKwAUph4BfVCu6QyzwEuuLxKSJBS3iJ5X/?= =?iso-8859-1?q?q5ylA+RiFBxReA5mvOrsuKqU/XzkbjPGyTGHwzEGmFN67cO7I7I3UthnIV/l?= =?iso-8859-1?q?tpAzJLgiLZoLE2tyAiFsPfTDvWAewlUTLlZdudjirZ9rBGtHoeXJ5wTnYYEH?= =?iso-8859-1?q?apS7E4IIh/N4Bdl/GDGq3du+eSzY5cUjotOooYYdgVA3EXLwKnebrMPwwxPE?= =?iso-8859-1?q?MZbHQ9MSv4IFSmJsW6RaxUc99RLam68ywCs2ht8FWvbhNwfbXiBnIAWVG9Ug?= =?iso-8859-1?q?LsjXdoxB8Dhm1YX87Vd1X5b8LNzlpepWVRAtt3NrmpINl0wLYqMYhh6VuElJ?= =?iso-8859-1?q?pqpiuY0eFtQ84U7wyi+4/BJEKygdLEW8CyfSmAaXMD6Pv4OwhfGB//4a1ZHq?= =?iso-8859-1?q?7N/LTSdkueFyE22ywNkhk617bR769GUH+6h3EQXfLQrZTb8wlI3Vo69RaW0k?= =?iso-8859-1?q?/QHOTgmXNYCwAkC1K3rkZdKkut7Mo7YmoroRlJXTesdAtPxBZiKKU4h6CAuC?= =?iso-8859-1?q?CVCg4dZ10u+2ylO2WCA9JOJ1xRmD+bZ977cL8rnQI7SlpXc9gaj0+hq2Crpd?= =?iso-8859-1?q?dDXPHmzxkDXcy3Ibe2/YfuxDJIDs/RffCYRgWhuMQojI5YHnyrsTaDyNNQMe?= =?iso-8859-1?q?tZWY611dyKBKTvYms59VxGAIeQ2vLtO3s0vaIK32w6A+RHYNMwS+h1g4TVh2?= =?iso-8859-1?q?Tl4Kz4N2dEAiGCSxZUiA/omGz8SGwrzVMlVlJuQPYWpnsz9Y8LW6H3DLFSJk?= =?iso-8859-1?q?+jDOiadt84Z+4E5D3fDxI1cXQvNdS56Yp0xwaTP/o4Qc6hQSOie6V/RZQnx+?= =?iso-8859-1?q?M5dzRXS4EIskG4S39SVy5EyhhNMjR1CSmY3r41f1SnEFzzFjPl67cWt4FKI7?= =?iso-8859-1?q?jBnPuhZfyVvHTkX38EdYij8oKOb6rDtdvSN5sqI4WN1DSIe/+gDTfJ/t78vb?= =?iso-8859-1?q?ehxkICeGbNVFGolGYi6E6uszdZixWXRe9ivh1SmXN9O4jnXUP0W+qXrzR688?= =?iso-8859-1?q?MqUinmW188M8EKzHy8pf33JqWxTSy8xAdPFrP7HoEgmpGPNZKEcYDOR3BH+u?= =?iso-8859-1?q?DOQR25C5JT2EK9dumzGK7IMIqQYyQiuT0eROml0ZEe3D0T4vfCL0MVOI9XtX?= =?iso-8859-1?q?1YgcdduFMzf42ycweRqry5Uz2H8B3aUj3v5B6bzWjEUlIhOG78g5XgHcvod6?= =?iso-8859-1?q?9roNG+tsicipCm9UlWohWdWAcNXx7Muqrhx24MxmG6QL5HqzPhqoBTuo7FWN?= =?iso-8859-1?q?S2aLlDxA7mSMyvkWldeviura7TS2owx3f3Ud/dA=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ojRBOWblCB4LRdN6r5foGbi7f4ksYLFkouWYuDg/yY+KwxRttdYuuXmrMsVbhvF3uicHwai6OackUJxdg0O9ajoHh9ezdAZgQ+AkGzxOxGQkHKNRISiqjwl6uKOL7bRsL40d0ufBJ1Mnc/WFmrO1xlnIqA70hMnruAaQdRZiVj1rVTJX8V76Yhn7wj6ftZMARbaXetWuE9NDBa3IsKIVYNb5SsIQTSZZfGYS0r+G848h9UlF3bEUwMQPXJOwKrikd93ZfVmFaLLDgfhMuVje6KRCaPY7npDCBoRJp6wtpv7YhasxcOpqqBwCh7Ck9sBKCkfJZKJModBH7oenSrBZyBOicqUIt0slvubKixi0pAyWDCGTujYo8fr67qQnZtuqhOvReVkKUbqcWBSJe+RtI0pueI+TdRwEogEFvYLNERP85Ww7siywjXTlVEP5A11BPnKcgWkfOalerbXTBuhJtQJt2eGbyd8OxXE9NX1qHoszDKHTn5JXW5CoPcThgZkfZbBREbMXc4hTRk42RvmuVp6wq+OjgxD97Lw9MhGjueUWx+hmD0L3daVooDAGP6MG0yJvI5b7JA/FyFbZwPC9tnExK5YPtUV1hDF0c67sLFQIZL8lcUSL/qt+Sbk5+8NHTm03jw1LojQmpHt3k/x0gUnjbNCt+d5xT0ZRM1mWEciLe1wv2/UnGebX7QMs1XgGq3QfcPoVzJeOhFdGu267I0G4bvsKLycqhbNyPzcdb0XZIZqwg4oNNANtlsA0y/6fKzSvVsmi1vkJUAy22RCQuORw8Mc/KjoJhxGpx2bFm0etMizKgtLDrXKwngLSzV3aWxHBEe2dfNKWXyiHtZ7/oW53CDPXE9b/dKhXAvWjVqDVXvhuGK5j4MfwXtYKWk+rbsJdmUzL/CeL1HT3RIWujg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af36f2f3-26cd-46eb-5ac1-08daf8335519 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2023 02:34:16.2343 (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: PguJq81f9aRH/0cc7ZSvTnhd0t/Za2udR+6d6voGOuv1YDfFCGru8FOgKi7or2DyTrbJV/Xq1obLay2qjsNWpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5356 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-16_18,2023-01-13_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301170017 X-Proofpoint-ORIG-GUID: 3o6rVk6iiPtRjsow9y0PYlusLDcxFYEC X-Proofpoint-GUID: 3o6rVk6iiPtRjsow9y0PYlusLDcxFYEC 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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755235566584217473?= X-GMAIL-MSGID: =?utf-8?q?1755235566584217473?= From: "Liam R. Howlett" Use the vma iterator so that the iterator can be invalidated or updated to avoid each caller doing so. Signed-off-by: Liam R. Howlett --- fs/coredump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/coredump.c b/fs/coredump.c index de78bde2991b..f27d734f3102 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -1111,14 +1111,14 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma, * Helper function for iterating across a vma list. It ensures that the caller * will visit `gate_vma' prior to terminating the search. */ -static struct vm_area_struct *coredump_next_vma(struct ma_state *mas, +static struct vm_area_struct *coredump_next_vma(struct vma_iterator *vmi, struct vm_area_struct *vma, struct vm_area_struct *gate_vma) { if (gate_vma && (vma == gate_vma)) return NULL; - vma = mas_next(mas, ULONG_MAX); + vma = vma_next(vmi); if (vma) return vma; return gate_vma; @@ -1146,7 +1146,7 @@ static bool dump_vma_snapshot(struct coredump_params *cprm) { struct vm_area_struct *gate_vma, *vma = NULL; struct mm_struct *mm = current->mm; - MA_STATE(mas, &mm->mm_mt, 0, 0); + VMA_ITERATOR(vmi, mm, 0); int i = 0; /* @@ -1167,7 +1167,7 @@ static bool dump_vma_snapshot(struct coredump_params *cprm) return false; } - while ((vma = coredump_next_vma(&mas, vma, gate_vma)) != NULL) { + while ((vma = coredump_next_vma(&vmi, vma, gate_vma)) != NULL) { struct core_vma_metadata *m = cprm->vma_meta + i; m->start = vma->vm_start;