Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1104472rwd; Thu, 18 May 2023 08:02:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66rPzwOoXxQP5h1dwUB6EJeGh+2gbfcVY15m+E1xACFa7t0PGYyYYbMkqNamY8PY55zVnH X-Received: by 2002:a17:902:b18e:b0:1ac:aaf6:ee3a with SMTP id s14-20020a170902b18e00b001acaaf6ee3amr2419534plr.32.1684422170624; Thu, 18 May 2023 08:02:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684422170; cv=pass; d=google.com; s=arc-20160816; b=gUtfXHeIFqrAZeXKmxqF8/fM6AGfVianD9S6ATk9ZGG8ManpZOSmepPMKA0flVHuQe Z2ykmifdBASGeaI92NIkQW4tQqfD2V4gb3TqryzKe4gjH6obG8kKI5uFeDaIOQslK2eV mYMpf3uFQzIFsLhUMJIyvGym4GT9W3KKokZQ3CseEQORqglu3pweGOwfO6YNbBHBa8To IE6e/5jwVxFXyXdRzKwPQhV/a1jF42v0kV2L2/dyPYiL1Xs2sE06TMC/QbNsJTcHVVpW Qbg6zbcaWWUY2vrhn1dD3w0zN/H3GGV6zfv69RMIz1LblJbNg8HXN3TDUd9PDSbj0zxg Ub3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Loeg5K+AxFuoMDuc5bDgd5qopMfTkWVEkjprcxbfs6Q=; b=ZLloElzyeNP11FFszaCz36OUB0549qeuZHpvfqLcBMHgfROztBTtUI5I6PPMdaDgX0 FSKOkdjfDi6T0NHkb+n95rCiZfby73qs3zS/XD2pv8PUShhgyNUar/MrqSwXorjQCTLV OsHzejFzRPhncvxGguSuqe0e19eti3dGHwYuY7E1kDtkFeTZOhkEZEVFZ6wlMg4mgUcv 77gUZzEzDC+tJbZLEarYWwOrxVUBrkRvis6/efGAdj9qHNMyjMcjWwopxlNSq6d7dvRM wpksVsHc9K3l40aEnUybg7d/qewbKD2CkhyvFS2Xe3RXJ/fmB4OHlI8NwJYo+UNLA66f IVsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=wyQWfPo5; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zpn7uxSx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a170902c41200b001ae4026d82bsi1650411plk.12.2023.05.18.08.02.24; Thu, 18 May 2023 08:02:50 -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=wyQWfPo5; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zpn7uxSx; 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 S231917AbjERO7T (ORCPT + 99 others); Thu, 18 May 2023 10:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbjERO6j (ORCPT ); Thu, 18 May 2023 10:58:39 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6125E1738 for ; Thu, 18 May 2023 07:58:12 -0700 (PDT) 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 34ICEtDO010660; Thu, 18 May 2023 14:56:26 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=Loeg5K+AxFuoMDuc5bDgd5qopMfTkWVEkjprcxbfs6Q=; b=wyQWfPo5jw+2YeoC9iwo/3lMYObpL0nKbARz9rosDIYXthg5Ky1n/LjF0g42yczvVA4H wFcItkynoCwBk5eZsClOpjMv1rz1fmoPWPslvt9au16yXy1SaTzGDI7dLiqmFvOGvWc0 DvVHspAVpyevr6z5rcM3i/dtjobGcIS8b8uozuSi/eYxD0oWepUyjmTbEfmaE1Wt+8OT mYzdIPqgKYog0h6ct2p/Qlw9EhGAmOqDNx6Qk4HFuX9OO6RFUZw0L96Sial9S4U5QKf0 qDVM4h7/hZy68FbHXmAn19sfGnOOonQg8NKe7e8H0UlJJykFiQ+gRXsMnxK3Z38Z65rB Bg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qnkux8ak7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:26 +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 34IE4GjC025022; Thu, 18 May 2023 14:56:25 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2102.outbound.protection.outlook.com [104.47.70.102]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj106vm9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jk1e2pUDdctgicmGdak76FX1biAeBLxoBXN4Z2txfuWPxgtbgWEw+eThyvDwzOHx+6IHfZRqQQvZS3/7DGlUQB/gLWqkMGI5AAUdR1co8FkgGC5+Ucekbb2MFE19paYZ6AFOGUE9qz5W6sCosybrv7RGPIZl8eTxD9o25fqwKd569A+4m3DwCuovXeckqymzaEGwwJgFHC/3jJXwNJkuVmkJ8+C7pzD6f4gs71Y8UvVWkYncbe8sDn85Qx2wN0rOSfeLEnFV8gpeOlmMP8v8hVaKO0J4s4tRGVGZSh58R1FrRVWAfueivfjTv5j8w+9M/DWpUC42fqWMWIpbL0XfPg== 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=Loeg5K+AxFuoMDuc5bDgd5qopMfTkWVEkjprcxbfs6Q=; b=U/0NVb9KSUSh9gBjeqhJV9F4aDP2n9vi2zFqKhj+Y/k3p+EJ9TojvruSmTJ4e5bIB6VPcP8FXS61dJnk7sf98OMQgNMJ4cafto7WUEQWc7Hr1ernzjzRzMDcPlzOKDCueZpITCsnBnk4hdJrtCCvBjhek52ZRVv51rm43VqCzzSWCmUMP7rtEW9GTTKkZENULm7rw8QpWALB6znje2hcaoxzZKD4l1QYY1mYF1oaYqKmcUSTNhJjOEyMiNUNiK10Pd+L30Gb6LhlRcI+SjAu30p4yRc1Z7AZXxJJYsrbP9pJDdGnMdQKZaXGj17XhMtaSL1CC0ONGUkyzx08EFdw5w== 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=Loeg5K+AxFuoMDuc5bDgd5qopMfTkWVEkjprcxbfs6Q=; b=zpn7uxSx/vqHUYWk5n72UYwpjhy92qbM5X9WlNXvUGVhAHuo+H93Y1SJ5v1m6YlGhq8QbOGGvm5vIwzDmUngPvncovxUppE0dZd5QtjHPs5KDT8ckQLvdTYTT7zmhiX+x3nkYzYSi01/yEOZ9C46RtFbRiznfjG4NgyDQPxtVJU= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DM6PR10MB4347.namprd10.prod.outlook.com (2603:10b6:5:211::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19; Thu, 18 May 2023 14:56:22 +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:22 +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 14/35] maple_tree: Use MAS_BUG_ON() prior to calling mas_meta_gap() Date: Thu, 18 May 2023 10:55:23 -0400 Message-Id: <20230518145544.1722059-15-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0108.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d7::7) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DM6PR10MB4347:EE_ X-MS-Office365-Filtering-Correlation-Id: a2aeb6e9-7406-4004-05c4-08db57b00bd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HWXZdMbxWCy+NY4XjImZXS27mW/r28Bs0fABoO2U0SJr4+bt+Az6iRmFBTfP4i6lOnXSB/BImTX2b0sbaf+RNP7zrg52PPeSL8UDDNf+Y0y+oShCyFOUmLg8q3k8/5yWFCGyfKHbIPe0uScy1uugDvEyIscgLsasMmfzY3omGq5aIqI7MixqsDIVp1BAiYrT/WiCe3zDPgqSu2t3OacKyuE2jfm5P+F9wGwgkSI1RRB7CiGNWXw9NoLq1fZm6GOAyQLOwkiIBCTdNoHaoa9DKgv6tPuUCtMWdh2BUA+aLeJ83D7PYFsZJZRM2lY5gvkRE7DWtjivrh602veML1bGec6IPwH6XfKC92h+Kc7uSnFgbPPOcwBu60SUjFqACUf0fT9yhqMkkmCI8jYaRUmnnVhGIyTEEHYdrpZibmQjAEheGFaPdBCqfA9XJSMISdcbksY/euSBBBc/pBHGRrwJtQpMY+DkRyacS6phj9BS4+HNziRv4IxYICiQq1JUzgN2d0XzIlzJPh3hh0f+CK0O3mklsTZbYnX/iE26KPP8r0sqWyNcxCrK6Geexci37v15 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)(376002)(366004)(136003)(346002)(396003)(451199021)(86362001)(2616005)(4326008)(26005)(6506007)(6512007)(1076003)(6486002)(6916009)(66556008)(66476007)(66946007)(316002)(38100700002)(36756003)(186003)(478600001)(8936002)(8676002)(2906002)(41300700001)(107886003)(83380400001)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?VVWpvfEsmBpmTEuKp2WMeWipyU5IXrFdJcz5uvY6RCrwoFbeSPoXHmMHQdRR?= =?us-ascii?Q?NV+V9YlEDW7dA5uuHieuK8PvbOepGePo5LGhdd/z2fDeTHu84v/TXq3mpGhE?= =?us-ascii?Q?QMGMeA3tlq8bCK6iMXJKHlZtNjx2b6xCgnIS1pfmDvcGxVqp+OzEoHHgDlCV?= =?us-ascii?Q?yd0uPurUml0IypNR6Rt9dfd68lThgtsXFb9ZecruYW5gCWZCqUm9/ZitmvU6?= =?us-ascii?Q?gmSwtvxGySxIS8K9lD6PDAe64aqzDizETFL5bU7cK8VWSi2GgtJhttmYXnrx?= =?us-ascii?Q?NZtODL5vxqbuULy0IwHOS7xntEuslAXRoCUTqWENVpf96sSpruNLg2eujSb4?= =?us-ascii?Q?IqYPbzkHgnwwIufeG6tVjdQ+fi2CvRT0phL335x0xWSXxHEsYM9fg7IUuSlU?= =?us-ascii?Q?FxQgGtQZ6EaRe+mPD9ngg2TuYeMUYXxjTkDDZKRVWYIdH1qyKVutTFhAZbgA?= =?us-ascii?Q?0zxLxsKYE1jnBP+nkk6WKv1UnqQ7uyN50fH9ksqKJ5WEqkjdmd5/1XAAmtXV?= =?us-ascii?Q?Kd4S4cx8XTBv8z4qWd4dasd98Yeg0Q7uZGNvRSfBH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6oS0bbyrnlz1SkLNTiML+MiySQH5Bl8DDeE5omBUvCmW6im72/vm0L7afUwN00clkPG3oJAx0dbjLlriqi2lgA5iBj3MEQ3OIjG+V4KC0y50yTqqChuB34J7a5003UnI56nQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2aeb6e9-7406-4004-05c4-08db57b00bd0 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:22.8113 (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: HWBpC/bGZY9Mcd7Aira1dXfUKpOi+HtEkgsNZ8H3IKa551kLKZeBrwvF3US0Fgln/p7e6wc5DTRRntMSrfUsmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4347 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 bulkscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-ORIG-GUID: hCMlzqsSuwi1bxTbegoNwJmik0KNaLfn X-Proofpoint-GUID: hCMlzqsSuwi1bxTbegoNwJmik0KNaLfn 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,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: X-Mailing-List: linux-kernel@vger.kernel.org Replace the call to BUG_ON() in mas_meta_gap() with calls before the function call MAS_BUG_ON() to get more information on error condition. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index d5ccf7bcf3b5..d7809a7000c5 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -963,8 +963,6 @@ static inline unsigned char ma_meta_end(struct maple_node *mn, static inline unsigned char ma_meta_gap(struct maple_node *mn, enum maple_type mt) { - BUG_ON(mt != maple_arange_64); - return mn->ma64.meta.gap; } @@ -1628,6 +1626,7 @@ static inline unsigned long mas_max_gap(struct ma_state *mas) return mas_leaf_max_gap(mas); node = mas_mn(mas); + MAS_BUG_ON(mas, mt != maple_arange_64); offset = ma_meta_gap(node, mt); if (offset == MAPLE_ARANGE64_META_MAX) return 0; @@ -1661,6 +1660,7 @@ static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, pgaps = ma_gaps(pnode, pmt); ascend: + MAS_BUG_ON(mas, pmt != maple_arange_64); meta_offset = ma_meta_gap(pnode, pmt); if (meta_offset == MAPLE_ARANGE64_META_MAX) meta_gap = 0; -- 2.39.2