From patchwork Wed Sep 27 16:04:40 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: 13401328 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 BF196E82CA7 for ; Wed, 27 Sep 2023 16:05:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2E71F8D0091; Wed, 27 Sep 2023 12:05:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 296868D0030; Wed, 27 Sep 2023 12:05:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E89C8D0091; Wed, 27 Sep 2023 12:05:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 00F4B8D0030 for ; Wed, 27 Sep 2023 12:05:12 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CE947140D03 for ; Wed, 27 Sep 2023 16:05:12 +0000 (UTC) X-FDA: 81282851664.07.1E690BA Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf24.hostedemail.com (Postfix) with ESMTP id 52A55180098 for ; Wed, 27 Sep 2023 16:05:06 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=1jdKO0L3; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ua+6q073; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf24.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@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=1695830706; 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=i925ATwJ5OzaFKtSYuUijzeMW1Sa/u4mDt9np0ZF/mY=; b=xW5qO0I0teCpjrGMrw1JRvYn+kcJXqYI/Umc4znYUbUYAxN0IBBSP92Aps/xOWVq411aju VF0cJzCHCUfRbsoWZKGNySAE57tTNZxi9jUqxacD2Eg4wn5c9WcTUsSIg+yc80nIQEqHFc V2OzpsQWvS+NfJeRlrLM7hiwk3OgjeU= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=1jdKO0L3; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ua+6q073; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf24.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1695830706; a=rsa-sha256; cv=pass; b=XD9nhqVg6Gi3pslCTj9sCUVyfThGV7RhYXoMESQ4wp9xpVdcJ5CnG01DUiDaOFH4HVn6jX i77mjm+YwZgNvP4gn8z/R5cg37BPUlLIc8wOtIYL2JqbonYTyN/bPqULZDjBN3Q3UojZsA /Vg0/f7kXcFjPzf45z782jdNOmnhavQ= Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38RFslo4006104; Wed, 27 Sep 2023 16:05:00 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=i925ATwJ5OzaFKtSYuUijzeMW1Sa/u4mDt9np0ZF/mY=; b=1jdKO0L3+HZKWWL3pKCbHtSquVl6UdEeHRr1K+GwE7fjl7cVXri3gY3ozNFxKLCD8VZ1 U/uO3FYa7+VXVCp1nJFNvtWI2oZL2y/rpWJXR61bUpUhrDkdFB8aY161fCw0w3X/OWlC cPou3qwQAVdnoootIpZBO16fyVj2ERNdpat8DNh1PjyLVplBO1gfet930VJ+XitkPnpK xoYYUpUlTdtFu8HhVxlW7X0gwAwmhyfFmHZGRvCScOAkzBdSP35Hfrvc0dVxwygMk1Mh 1aKmhECllg0PvJFzvZAg9GatmR06XEb9mJgADO/OA+GOvWRT/i2x58UyufdNVTJMjOwq tA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t9pt3synq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Sep 2023 16:05:00 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38RFPWmM003267; Wed, 27 Sep 2023 16:04:59 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3t9pf8f455-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Sep 2023 16:04:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TfbznxgEpj8xT+wItVNoCccNzmHgk5Cu2IOo0NI9q2C+/51EsbeTPoVdWENJjvzXbUFO4F4ikgC1ysn/nqlZKp2KmK8eH6u6407Tm94XdPp2ZxkW6tIt1FS9qM7v16336H/9qWY11xIyMFJhIJ/kxMsNeeLXGymuK07VU1Jl4iPqVZA/wguWusrJTULcf2tAWu0pyLDV8ekkZPF9uzloBiSZbGkUoW0dMFVzQXGRCdFhYU6CecxD/GugD7QLbbln/tfxz/Jk+ZFMKdlEdCp19XZI9ffsmVgMnvbeIZvVKqWd/P33i2hXPt4j4isuhPMsOlf9jsTRxhpS33ERYYhLhw== 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=i925ATwJ5OzaFKtSYuUijzeMW1Sa/u4mDt9np0ZF/mY=; b=ToB/L2Ud5NJnF3VaXJ0UbxCScrHXw5TCOkqgBF9aaJnKCol58NAKKOb/h6+dyd4SThQPHvxXWQ6kYew9m4IDdljj+LcEO4/zG3oYpX1v0hM3ZQvmd7Jfv/fc0XDkNVAlUSri1G0Huy0dxOJgyxSlZzmHeuCNmS9VReEsXkefiNJMZLHjI1ojaoux5XnnCloUbZkt873f9P23qFmVR44+v5fskUCZ2Cl1nbPgrlbJgZ+8KAcWSnRFBqA1GKHFZgnLWj+GzVloLrtXMn/Q+zykOHhelenQMuEZggWgqlMHi6G83iJEs278cwNPJDzBIqY461RLWmFvUdhq4ZvXPtlp4w== 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=i925ATwJ5OzaFKtSYuUijzeMW1Sa/u4mDt9np0ZF/mY=; b=ua+6q073i8Xt2pnc2I0i8OU2cHZYe1tIrRsGv/j8bXlfh6uUCD+VZVZugtq0rz9zcpBAq+DXGyMR+lgioGfZCGfcty1EQ6LGWrRqnfPhsDId5+D8wspRiakCWhbAHMWiNV1J9d0hXFs3AWM2Nd5jqsItmfor33oGva02VqR+QWY= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by BY5PR10MB4290.namprd10.prod.outlook.com (2603:10b6:a03:203::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 16:04:56 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6813.027; Wed, 27 Sep 2023 16:04:56 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jann Horn , Lorenzo Stoakes , Vlastimil Babka , Suren Baghdasaryan , Matthew Wilcox , "Liam R. Howlett" Subject: [PATCH 0/3] Fixes for vma_merge() error path Date: Wed, 27 Sep 2023 12:04:40 -0400 Message-Id: <20230927160443.1927534-1-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: YT2PR01CA0023.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:38::28) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|BY5PR10MB4290:EE_ X-MS-Office365-Filtering-Correlation-Id: c88d57df-2d62-4c1c-07b3-08dbbf737e4a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2NDl0uvijYlmf+y106RpXh09KwTbmSwq8xbk8NKnQEJmcaf7OJ74u8kU5g5WuC7CoTx2TfP/EAOaiCtCLbajvqhhUm3CcaOv0u4PsXPQEPGUeLzWZw/Psy3z2kz4d34JjYnyGCJdfgQyj2YmShyBiuQ9pmzFWK3VuEsC0/1ZiGVQNNv2Vv9h2Jgg1J8jBE62yxeaOhAL0eRhVbo2TeKJFquPrz8bLnzoucJzJldiu2VBne4mqnpUacyVbN7uGF+6Gz9sPjeDUhyJ1RpVodMLJIdGrCaLZF5ustlJW7giYac0NhYZ6RrYPOcWDD4NuucTXTvpTlH2/970srg+lihL9pSpHJuqxz3rwNYkY/BJLxKxw9BChFLa/7KYVlTHGlLY5x/6TbBTmJ7DQIoiucyGdDp0LMlD0Grc5AM8G43XBqgsD3latHCjoFNfWG7aJMv3MfxR1gx2vDmw5cUDscD6orsUusbSmK/T2K1NTSdF8NR+xjS6uhXNydWnN4KviDjL9vdBhNN8J9ahzRtmN79MWqxm1Q2O46Ovvmba5/iTG22x3lAktm+BClR8PNuuir8M 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:(13230031)(396003)(39860400002)(346002)(376002)(136003)(366004)(230922051799003)(186009)(451199024)(1800799009)(36756003)(38100700002)(86362001)(2906002)(4744005)(66476007)(2616005)(66946007)(41300700001)(66556008)(478600001)(316002)(6486002)(54906003)(5660300002)(6666004)(6506007)(6916009)(6512007)(107886003)(83380400001)(4326008)(8936002)(8676002)(26005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: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d2y3U4nxV1cs/INTkodMELRYyrpfkeprPocLgftHIhSbVuXcsKjHord2HIGBnU1km0ZxWtxG5oAATzOsirhEDSR0h9PYf4VDxBGYv+Fou0YyOmfVGAm8HFk6MB1f2O76pcqTiMTvQfz0fGbj+jOwaTxdPmRnR7evmMBqhg45EHMUYSa12sz7B78msA/KFEPaiAenXN5E/J8zOp87BdthhLYR5gyJjnu+88BhIHz/RLAxGDjoSAwQK+Z2oLlAK8BwbsvVgqB9IjGMqqzjo38aegCJHAWfO2oNaggJK771vTekbe6XMx4VuFvkRfNtEqOEDNk+oTOGGeWhLgBh6dksYm7kiX58GS861kXT+OvmSobMwVxC8U1rEQh3IdYzDdaTaD8R1Sk5cYzV7s29xahJeXgK49af6RAvwJ7W1r31kBSpIVqzvY+4jC6UO4R0MfKvTiJWADO1otM/KidfvAsfRUsJamCupesOVcS7ic937+GSCHKRJRT86gcadWzKniLkXIC4KGPggcqzq X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c88d57df-2d62-4c1c-07b3-08dbbf737e4a X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 16:04:56.5252 (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: xi/OqPpAyU6QazH6VTuWkLLnHZWbK1kxKd19YEcycWnoXuSBc+PjDhMSiHjRqYNMpZ5FmEFqTQBG0ITjS1JP+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4290 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-27_10,2023-09-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxscore=0 adultscore=0 mlxlogscore=295 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309270136 X-Proofpoint-ORIG-GUID: xybcwYmAlghaDBQW_xWyFYJMJuamKdyM X-Proofpoint-GUID: xybcwYmAlghaDBQW_xWyFYJMJuamKdyM X-Rspamd-Queue-Id: 52A55180098 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: bgj319pid891frjyoy1c8odynh767chc X-HE-Tag: 1695830706-569035 X-HE-Meta: U2FsdGVkX1/6l+WoJ4Bz/DLta7R7pJEOdDcWpO6ElgpdefOTVC43fYBZh+ygtdMDZWKGoTw11/hq7hgefyH0XEcM82Jd5/qke8qRtdIfD0nQxtcZ55p7nd+2O8XS17OvXnu0VLcDW2vu5/7p8ATij5qXaamKM8FuYNhR1kH8fW5sK5qIj0CulHbg78uvMieFqgV3xLZk5n+kwr38EiyWe1I5Fc0Q2++6qBStfWbUZLSC6dnsWBtI1RPaBTkhrMfubP14TMArK1xbqnVxH64Go78hXe/3kCkciFtQ1Jq+arimbP5POcGuehYcbAtxVtyejHfz7wdtvcZ+fSoW7BzkWdTyNyvT6/kAEKYYwd06nilzt51YqRjbY/HUQVjAKNQt4GR6dB/BYn1PXgkxo6ITXCrA/mERyGBXOcSCqjpGF3pQPHll7//x76Zlk5E3yL7pWED7l6KcpynlphI4GDqQDjYRW3RcrfAUjfnA9Y2CLhHipUDFZMD3hC1yF6zkhBnMdMMT0FQAy7Cgp45JjucxbofCUAqYVKP1cnu0yhA/mXxagh6Ot3W9//AEyzxfyvaKc38ngeLdEjhf9nxzVZt4xnpvbEDZGUC7CU2elaTG2DLBE34l50Xr8yi5TlYqpVWtKnvEITofJSqAy6vepH0KkrsNaxYkInihTIOMA2oK4yKGvmhJnlWh4SuUGJETE/fFpt9wKa2tu+OdmH+oHxSLx9R16NFXB9FNmaXxBWZzoQD+S5XfpIFTispj2no4LHhgyyD0AARXWAr75ZMd0Vo5+aoh8dxDVUG95CiVpkc/U1+i0M4BD45yUhZLDFbKsnpQ6f2hEsvQgtTjG3KITKHfIJLqlHMG25Pg6a2tGrsUi/5QJo7pM3VkCZNxzkpIK0uD8EVBm3ZKjVR0gMx4hXhKLoPYXiqYHmFfvCa6XokUKEb1kn8YIodMSHdDCaOG6610lKmRgNHXXlpRCbKwFNs feFYH3/3 pLLl9BY4m34qcq4SDvK1UUNoBkYyhnY7pqCqxw0zSopMkM8Hkb8zHA2A59jgv2yn/mmAo3YFvHBlARRqP3/wemTrRrBDqL3Tyxw0KkqJQqtfBItiTuCBtxLLFlbbAsrv3HoxgVYSmprgFDqmjED+YUFAiLopAcBnaZK8AcaHM6ki1CYui5Uq31QksTfQ2AsGFjpddwMgGZc6WVtRsQHcwmFVzKSxgRyDNl+YcEi7SvG4LZBQL6ixMGUGpEhUTfFqHXJzgMy7b2mAc9Rj7cXN09nCgGxcCTgOCwV5yAuq7vYVNW3eJqpr2V7tzVMVsxkree+QFWMUAUf9i9E/vxY12B/xVy3HjohGqOULKA4hEtrVaH2XSuR3nUHLJkyMKOfiECeN3fa03yYNN+NE+1b2Kwzbt8g== 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: Jann Horn reported a potential vma iterator issue in the failure path of the vma_merge() code. After examining the interface, it seemed the best course of action is to simply add an undo path in the unlikely case of an error. On examining the vma iterator issue, another issue was discovered that would increase the memory usage during failure scenarios, so this is addressed in patch 2. Since it is unclear in the code, another patch adds comments to the vma_merge() function on why dup_anon_vma() is safe in 'case 6'. Liam R. Howlett (3): mmap: Fix vma_iterator in error path of vma_merge() mmap: Fix error paths with dup_anon_vma() mmap: Add clarifying comment to vma_merge() code mm/mmap.c | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-)