From patchwork Tue Apr 25 14:09:39 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: 13223383 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 92338C77B73 for ; Tue, 25 Apr 2023 14:11:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4BF26B0088; Tue, 25 Apr 2023 10:11:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FBB86B008A; Tue, 25 Apr 2023 10:11:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B1376B008C; Tue, 25 Apr 2023 10:11:10 -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 6299F6B0088 for ; Tue, 25 Apr 2023 10:11:10 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1DFB11A01F2 for ; Tue, 25 Apr 2023 14:11:10 +0000 (UTC) X-FDA: 80720100300.12.0BE937F Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf09.hostedemail.com (Postfix) with ESMTP id 8B1B214001C for ; Tue, 25 Apr 2023 14:11:06 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=sWlFQZ+q; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=FSHJM6h5; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf09.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682431866; 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=PlmOS/szkQ4WyeioHt4vufA0c5KhqWY6gRcjYbxG4dA=; b=sk698bM7Nrax3MnP2ouv6XRBG4ahN2qLWTLo+Un3GOxqqwybifzOtQmHZGJyKNtncBMD4e O5SN7iJ91GJkfD0iqMgYT5tVI5I66j3sdGWInCL72Hoc8qP1MpDPfiQPAPYF9PRuT9atSA C6lM1jMGGgk7kh5TC3GgZOYQ3LSZuBs= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=sWlFQZ+q; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=FSHJM6h5; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf09.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1682431866; a=rsa-sha256; cv=pass; b=IDcB2pqekdSnmMhgOoWCM1ddk4INi5FusILC9eGaoLyWO7boUKKPt+sgzpuDRmg3BbwZoi pe/krBBvjCW31lX3R587J448Cul7z6nkXLjGZrCq7Nrb6dU9KTr27JOZrG7DA6KtGbRuV/ oEARh7OAPdn/WJYeiiMVecSo9euPE2w= 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 33PDibcD005249; Tue, 25 Apr 2023 14:11:05 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=PlmOS/szkQ4WyeioHt4vufA0c5KhqWY6gRcjYbxG4dA=; b=sWlFQZ+qgJKWKvJ8tGfh+pW8GvG/RjcSdBYDhSwItekx3ppKcjEXQSJHgA7h9J1Jd8cn etVSO1TKCMkdfLJYb6o8cfA1MI0xqme1QNWs6SdwRtOjiq1lJnsqfYRh080koWFaFnfL hqEYGNmb+U0U6v+Ww/l1qcQ8cDtmmQ+nJ80Ef4ENu14CN0Az0WQvmCOVDjW1CMNblOsM 80O5S0GyFc9plUkZKKnX3h6sLnmHf8ca7pzCpH+6d4ciyzS1+o60An/dQ6D59GwmUU/h +/mUy52tHjDNFRQzzPKSY4kvra9uLmEiMoXq5mQh30w30S4eW+Y4shnAxre1Je8KN9VZ Xw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q46gbng8y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:11:05 +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 33PDwhPV024866; Tue, 25 Apr 2023 14:11:03 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q461crc9d-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:11:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Duc0siHIquKObAEbhJEGKiN3+oqmvSqsPXpRaytDB/Y/CIYpCP3ZrQGP4UFjZp01ilzV0+EoonFAvQgpLeQ+QWHYHSetaBMxUgB4vpuT0FrPUVECEX6sIFD5GQu4jXOq71u1VaKbvPEdNe2oKau0MIKbpQteUeFxQTwpQMuDsCUhB0v1saGQhLhDhkGosfokBBouJJN9DLuHq1UFUHe/RoGZB9VqlfS9JZFpOO6fVIohcF+VJ90JcARpKcq9AqQ9XRmeiJYmvI5/vJsC38OUwgEL6CDN9mc7kBlh2gF4M2DdqRjQ0NhEliDkF2S8Za0zGrysaWFkf7hyU4orCW+Wfw== 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=PlmOS/szkQ4WyeioHt4vufA0c5KhqWY6gRcjYbxG4dA=; b=IWM2upYHMjrwqQn2c1zncD8A2P6YtY0AprQgNlUHRmkBNc5rgjF8O6ACh1TWQS/D17V4uvzKwYvggJ1wDzYlNB//wDrYcEfNTfrPVADQePT0knpMYhTya5uipGcNYHKg7FsLb8/6SH5JWW6S64NtDcmvPDFmbJ1HSUBlbJK2V7BvGG00yz/vEvTRiPMiSYxiBxOH6J9MPdwxLCJ9hQaRGB/ug60sDi+4jCUKqWluPOzz0RKd3GkWFVTStMKJpsnmn1k70inoi3sO/L/YLyKGzzLfS9OFSipO6Gw309sI4XE6JJMBaDNAzUtrC1I23GCKEJPVlbZHUJqceU2UVKmINA== 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=PlmOS/szkQ4WyeioHt4vufA0c5KhqWY6gRcjYbxG4dA=; b=FSHJM6h57HzUFZ9drklWs0zWsLNg97yL2mBotm2bxYxFfCkXyGioDeiZU7oiffCZtQDY/yYglWo1mtBV5zxFCOq0rdO3OZuOC/VZ6UmXpAnqqJpsVoPgz6x/HYgMAGxgRQUNpEsYsg60w2sTRNg9rm1+1YMRxlKvhIbIDmb2mIY= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CO6PR10MB5572.namprd10.prod.outlook.com (2603:10b6:303:147::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Tue, 25 Apr 2023 14:11:02 +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.034; Tue, 25 Apr 2023 14:11:02 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, "Liam R. Howlett" Subject: [PATCH 18/34] mm: Update vma_iter_store() to use MAS_WARN_ON() Date: Tue, 25 Apr 2023 10:09:39 -0400 Message-Id: <20230425140955.3834476-19-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230425140955.3834476-1-Liam.Howlett@oracle.com> References: <20230425140955.3834476-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0083.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:ff::10) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CO6PR10MB5572:EE_ X-MS-Office365-Filtering-Correlation-Id: a4f1e9c3-6bd8-4a6c-8028-08db4596e6d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K9KKxVugNrc6XiVSyZVT5W5wWVwX8l+tOYr/1+B8LNt9j26cbNCe5b/GO2eKmTrq58VK2mUgzDB1tUbUsTsoFL3GsV+aBbq4Rkg6OZS9fcXbcFoioHCBGF84dsgo5HjXDcSO+kLYJQ4Xw1iI/2xd1Lgzb4/61A0DzC0XEgnWaXPbMw3/lBX11ZpRmjp1ioQF3jVe+jg/Akmbl8VSbpNRJkoJjy5UFlxafaQGN3MC9tVZnQti5o4FBg64RhJJyO6v96MIgcyde+xC3r+HBu8tgcVIbg1Ah5lU4eY2teqZPDJlCqO3SN5/R9fyemVcjqygTVOvOcQ+naZVn/or+Mu9PhrvwJWYH8bUlNq0ZmBt6oSvq6tnPnBeUrUFDNdC7VIMERr7XDgUaeCzAhTQ3kpi0h8mF+5Bx44ZcsgtCOTEhTURi/oC+WMgZzTZm3Kngn6jTVkjK+r9JMQFwzT8NcqG5w0jpklxCkha9tL+pZ6lw2Nx45XgnzJUXFmPEudI3D8NUU7aCZfrrYz93/gCD8dxiOSacGaRZSHzq9aULj49m4iybjaP7Il3av0Ir5tEe1pD 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)(366004)(376002)(346002)(39860400002)(136003)(396003)(451199021)(478600001)(86362001)(36756003)(107886003)(186003)(6486002)(26005)(1076003)(6512007)(6506007)(4326008)(6916009)(66556008)(316002)(6666004)(66476007)(66946007)(83380400001)(2906002)(38100700002)(8676002)(41300700001)(5660300002)(8936002)(2616005);DIR:OUT;SFP:1101; X-MS-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zYzIk3EZKCvo1JPHDtTDFKXqpQc+VEnBasSjSDVH3Kenh54lFpy9Uk+7QyEq36nrAg/lSeU2t7oEaqo5mTP4B1re8SeYXfVk1OwF+h3Ey3tOli4yoso8NN4Z0BvO1tjgs3rMFv5Y7Ro7YI6MHKDUeBv+53Z+fgAPkXcdFi6YkGBvKcqM8qG0rUIeJjN7qxm8aCU55nAKm4XJcBGgnPhRdHiEpEpqSv0dE9wSflmR+nxuz0+GedB064HOVa9C7k963oJ27XkMOiFB7WViuD2yvTIidEEuI2KAAyBwyjxk+ngJEcxKPfWW7MP8miBq0PGYerBGEI83rVURCJhGYd36/ayLMEOplCAX/0W4G/6JijNtsQr30v8Gu/cMdqzjxtaDJGT8nHhZ0TACuae0P1HXsSnZ3RJocCvhph4N+22Tvsd82SWZPC55TX6pILI+azfJ/AFK/krfQjvYizrMYNQfMJl7BDfLF+THZ5j7S7yguqAfcu+rfI2nEJ79qVjkP/xA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4f1e9c3-6bd8-4a6c-8028-08db4596e6d0 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 14:11:02.3701 (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: KJdyZ5pEjlo6FRLjYS77igpTZ5rH7HVUSMBqOBnxiDGE0GdXULqKiVyJ3jA488rIaH0gzxLhM/4X3oRy5+GUSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5572 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-25_06,2023-04-25_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250128 X-Proofpoint-GUID: 13y978_N0BgYI3m1yxMH7up-_yVuiL7c X-Proofpoint-ORIG-GUID: 13y978_N0BgYI3m1yxMH7up-_yVuiL7c X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8B1B214001C X-Rspam-User: X-Stat-Signature: gxps6eysg99azi1f77yijzphyzqff81b X-HE-Tag: 1682431866-66068 X-HE-Meta: U2FsdGVkX18f0Jb47M3frRsawT20Po4XmQE6rjoGfCJt3lLgvuKmLbojKyyoQG82/ntH0HugspW1hqGa3Jvfaid0Wetjux9p7MLVXaY1vQgZOLDJSlmb8rTmQaNR5UBKpuLoE9RbVvIbuWg8uQq8xiCREP1yJLNI3EGOjwknUodNgjUj0+gBcTG1S8OozkFIxcBzwYUpRLU0gykvSZPQZeI7bp4jTGJ1dBwrhumPrSTg05CYoZq9uNLL8oP87hgSBAcXlc4T5wCSdT9Yt2Zh1D0bi93RfCm3+EoHn4KocflXgDE9LLBfusArVcVvXnhy2qs++gan+xCLLKp5OzWg8oYwSfH8x2QeTZntTENdlhlyCB/VRVwlwPIXa3zT+P9s9pskeBE9xIqhN9w0bfmm5p2Jle9PoDyD+YA3cRVpvvNDM1ogsMWCkACMsgsVWQfw6kt9AyoHPYjgI7cYotcoGLwaR1XKcS6VYSQ4+YwFimQyrv02dTf8hBs1PvegAUoEfUHZ9SdqyBTbFtcNJrNl5GNtOyTr8iDZRBt7V8adizk/EgkcAQFLYaBsq2JC0pPlMSboust4FdhlyGXVOyrYtTKgB+Wi/7jEyXv7L3BfTe8uLtZ29qoEqzmgm+f7JhMyGlXY0j3BhoXYuuxlqtWJnUJhHWLSNNsxwNrC4vj6GRF56ZhBDdKyuk5/16TWIMZzeX7BgdiDNFXrVZFxmA5NtOMJJUgvSZTQFjvFKEW72duz9IP83PM1nLvF4h+InDgXhpVUXz/1uPjnTmahc6RZPGKraSuARHW7GBR6FJH8L6D3jNolESSDRdB2tYeyQEnsYZr0v3yj2YDWdDAVsAivOuk5MWUb4HKWN4ApBSsxRp1ekSjOxc/qMddPlUt6pK2/Vaq5TPcXT05j36S0kT1lzgLgJpdV++Ofn4/GOGvP/NWw8f4OZAuVWa70PxEhhIKSeHMHWPNCp7SqAjBXCnn gJckzbhe Hg91TuJXRp42Rt/jukWO2QRjAr5H1J8YjS7TpyWDF5uVH8Ut9wErjj2DOSog/A85IMKxWrnU5cS4bZMMSNX4jhle8h02yHX4ZT/JjgjZjzGhCJXklwEIPWDgBQYO02kw6hbXdHL6UIvlUKGJC1nKIPux4NuhrJXXStLeKxcGzi7BxblPx4QX3Nsphuia69QvpiYNW7W3JKnBASsM2P7SKDgR9+Ol0Lb+yYfNUAxl/p5JxEHlfgY5i07NdncJT5wUYrpZbLwMQw8IWyBTL7+q9U8JpIF1OwUo102DZtyWnSkTP5+mMica/bH16suSnW4WvY0+5qge5djpIoV+5Y7nMApyFnTMbFIoZ85Vh8+2sMWJBpuow1Vxgd1GPXYsCmsyGJnDTU3y75WQ/QSBWwxV7yC4KtcCiIrLYeS3Cfe6irNLHee4= 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: MAS_WARN_ON() will provide more information on the maple state and can be more useful for debugging. Use this version of WARN_ON() in the debugging code when storing to the tree. Signed-off-by: Liam R. Howlett --- mm/internal.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 8d1a8bd001247..76612a860e58e 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -1047,18 +1047,17 @@ static inline void vma_iter_store(struct vma_iterator *vmi, { #if defined(CONFIG_DEBUG_VM_MAPLE_TREE) - if (WARN_ON(vmi->mas.node != MAS_START && vmi->mas.index > vma->vm_start)) { - printk("%lu > %lu\n", vmi->mas.index, vma->vm_start); - printk("store of vma %lu-%lu", vma->vm_start, vma->vm_end); - printk("into slot %lu-%lu", vmi->mas.index, vmi->mas.last); - vma_iter_dump_tree(vmi); + if (MAS_WARN_ON(&vmi->mas, vmi->mas.node != MAS_START && + vmi->mas.index > vma->vm_start)) { + printk("%lx > %lx\n", vmi->mas.index, vma->vm_start); + printk("store of vma %lx-%lx", vma->vm_start, vma->vm_end); + printk("into slot %lx-%lx", vmi->mas.index, vmi->mas.last); } - if (WARN_ON(vmi->mas.node != MAS_START && vmi->mas.last < vma->vm_start)) { - printk("%lu < %lu\n", vmi->mas.last, vma->vm_start); - printk("store of vma %lu-%lu", vma->vm_start, vma->vm_end); - printk("into slot %lu-%lu", vmi->mas.index, vmi->mas.last); - mt_dump(vmi->mas.tree, mt_dump_hex); - vma_iter_dump_tree(vmi); + if (MAS_WARN_ON(&vmi->mas, vmi->mas.node != MAS_START && + vmi->mas.last < vma->vm_start)) { + printk("%lx < %lx\n", vmi->mas.last, vma->vm_start); + printk("store of vma %lx-%lx", vma->vm_start, vma->vm_end); + printk("into slot %lx-%lx", vmi->mas.index, vmi->mas.last); } #endif