From patchwork Fri May 12 18:20:14 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: 13239620 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 01763C77B7C for ; Fri, 12 May 2023 18:21:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D4AD66B009F; Fri, 12 May 2023 14:21:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD3186B00A0; Fri, 12 May 2023 14:21:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A3B476B00A1; Fri, 12 May 2023 14:21:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 8341F6B009F for ; Fri, 12 May 2023 14:21:32 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 496DA1A0FFF for ; Fri, 12 May 2023 18:21:32 +0000 (UTC) X-FDA: 80782420824.05.D55939D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf28.hostedemail.com (Postfix) with ESMTP id E0483C0004 for ; Fri, 12 May 2023 18:21:28 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=VY3D3WeT; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hHlZVYFf; spf=pass (imf28.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=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=1683915689; 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=fS3QzFuLOtxJjXjPIV+nCtOmoBdMiTTxr1dJoGyuKyc=; b=ZO+AYjSQ6k5tq9ZgjbS+FrniHDwmtEGvk8wWoH+dNwKPSd52LpS03nUMOgX2Eha9qUAGER 3lxkJ+djNejt+sZ2ArJ5a0LkZo3q2o8jwtXy1lBtDFkE+MEfGhqjRaZrnO81PyMkot6OKE ExMnQJJpV6WxOlUGVQiFKEPsnJ3RL4M= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915689; a=rsa-sha256; cv=pass; b=owJC4owMcYjzw5w5Axgm6fXY6ZB9oOG+/RTH9CxeYR1vWQtcYC0AvAfXQyAbL0MwLv2TBG G/5kpS1uYLKVRiDzkasLi4hBzL0tOLidZPAPJnQQpQgg3Bq6k2vXTjtK73fjcYn45U4RxO KsaJ21Exc6XsGG9gorCABrqjCIbNw5s= ARC-Authentication-Results: i=2; imf28.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=VY3D3WeT; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hHlZVYFf; spf=pass (imf28.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") 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 34CF4AGc017810; Fri, 12 May 2023 18:21:28 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=fS3QzFuLOtxJjXjPIV+nCtOmoBdMiTTxr1dJoGyuKyc=; b=VY3D3WeTDdXZZO9mFtcbkrStY+CK75PL6OiICgyPnrc/E02PzlLOApRb1FctgA1yBuXM ZB6fqFnNTPtYohxYnIA2ZYtPJsLZRuOFjOTMNBimTJ92KfKeLYbPsMdgWmiyCi66o/gG 2s/WbeCMiKroz11arnpqlJ+AFqak3todu9SlVRgISygp8K4le0D05WohgBmrbfAlVdxN JR0YpFzMyKUPKeLstZMptCgqKkJ0b1pLBWDzgBF5TfjbEH+m/96Bm15pqUQIoGeaVFpR 0Bx7wxpzUY+s65X+Wdse/JgnOxYaDn2IcPhSVsxs6r6/dNqifkotOhG1U96j+KriaSOZ 1g== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qhje7j3kb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:27 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34CGbZDR011613; Fri, 12 May 2023 18:21:26 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qf8156ymp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OfGrjmG16/bprGRCZmPgwyhfyp3GYMJJIVBpzSn5TbUPFc9NRNHC6vofaMNM+2HJkFzbIqq8iOisB+rS71qcYAFdj5zaDLhp6CaLSJKaYMv8oU1Lw5r+pNf0apIy54UG+QZbXAl2HA065DhP3O5uSg4GPX0BEOGyC3I42gR7VgITZxZUHjad0XEP4GZNdGtEoxxRIhA256F4mfucexLQrSLGn0yRib5WA1rSCjucF+DcAeSy0Z8BbuzYr1D4gVp2bGfUJ6GaJ7ljtNfW2Pox5Q2iApNJ3bvT0+1pz3Gao1GJsl63yfiTB4rEeAbw11Enrs1jl/nmiaYg26H59plkEQ== 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=fS3QzFuLOtxJjXjPIV+nCtOmoBdMiTTxr1dJoGyuKyc=; b=m/Br/aL9RmqOYWKL+2sM7F0I6ChQCuN2M1dvR3U2fAt8Hmzq5qdoNwKFzonu12j39XRXKLA5ej/nw/ndV0c9UJtIHUupDWuUBdBc4Kz/8eiYnC4WlgYwrAiQ6XX/JkPot56fYtNV23zfl64R2793hGO2xOmkZu+8NE9CDsoYzgyBoYe5qT6HB7XJ90UGte2WDPkXE1VdDGsbDwjD4CiNIvd7X8JPXSKOk59RIXh/hcU0UyiF6CCtCEfQAmh8V3bLU4vAq5ljkTpIrhmZv3IhIgkm1h8vuciWQ8o26aJkVNr6fyquDbYF/HF5+3JBuKMqFEjfQvbKaTeQYAK1BWyEQQ== 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=fS3QzFuLOtxJjXjPIV+nCtOmoBdMiTTxr1dJoGyuKyc=; b=hHlZVYFfx0+sIXLH9ZTM1XrYDUkH90YyYxzKwwsVjuryQaNDnZ1tW4Y7GgAHcEfGhxOvqjZ75N5N2WyeC2yfZYo4Yjr5kwhWMj9plAcHDnMWqs6XcTrCrnay315AU8+Oc1wyplvknrw//uVVcUgfiJ6fY/BkLXYuxK9aPt3FM2w= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY5PR10MB6143.namprd10.prod.outlook.com (2603:10b6:930:35::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Fri, 12 May 2023 18:21:24 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c%6]) with mapi id 15.20.6363.032; Fri, 12 May 2023 18:21:24 +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 v3 13/35] maple_tree: Use MAS_WR_BUG_ON() in mas_store_prealloc() Date: Fri, 12 May 2023 14:20:14 -0400 Message-Id: <20230512182036.359030-14-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512182036.359030-1-Liam.Howlett@oracle.com> References: <20230512182036.359030-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0117.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d7::23) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CY5PR10MB6143:EE_ X-MS-Office365-Filtering-Correlation-Id: 360ee9d5-b4e6-4a8f-e74b-08db5315b1e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OCwpBMisa1FhyJNoyry+5ICG4eRhPo+7iCKVywVCVPmhY/XOGiyJ2+IV7XV6RKXG/Xp9/kNGltgNzdWk06hQ3QoSwPnrOC7Vb/ihHPrjSLpxMyPEENifkTShmXxzzJXmHJ6qX+ppoTrq1VkN3lbmiI10VLuEgVuu+6D85QvQ2w/qgYfzpwqsa6aqYKlVeM2DHA7j52i2ubh0bdDdpPORuzglXPbXBs2fe0UJ2/X1Orf/MMGm8bgORIP3+yqMTZzL67aFZHmKYDQEyhLlzcUDbeR+p3x0zcMrQ84/0gEqD7EF16SRVoolEJ5UbSxQvv3jn9mhsJ+EBJNfF5BARyfclKDBigQ+ZJ6zdynO+jrIitM929pPjLuTDoVsiHbxbh0QSF0NKDUYGjVxnruoNhuWkN/rX7WhjkD/twUo638fOy0hPojNQLOaTCSRnsrGiznOtvLYdUBjN0SvG6o91FiOPM5w0If1krd2G74lPACfp63yyKk0hV5ssTYjvZpiBEzZraPvu3ItBI8zrvtuEp2yTJuvJ+jpzJVAi49/Ln++YbtRRjjpJV4EnmBOIQsvL9Ot 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)(376002)(136003)(366004)(346002)(39860400002)(396003)(451199021)(4744005)(2906002)(6486002)(66946007)(41300700001)(316002)(66556008)(8676002)(5660300002)(36756003)(4326008)(8936002)(66476007)(6916009)(107886003)(1076003)(86362001)(6666004)(26005)(6512007)(186003)(83380400001)(6506007)(2616005)(478600001)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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1OuDx8uAHRumGDJ0DvlEFaY1uUc9pcx6Dm8kll9sQ9Wj0N9ttzMPIgMACBTNFa+pqrdGTkyH8lsfAuMr/CWq7WSNngMRh9+hiueC9eyhSkrYb/g6L5wg6+u3czKU10ILgPw27NiJTkrN+VNS+eF/hpYZQG31zNQj2OfE47SRNOMXT8Yov4WtmdXmW/ST7JrGkeJ2QRl39Xgbwx3Aw2SB1OEzeHcIqynyuxmwAfU9DthMeCdWow3drhM89xkyFVLh7cY0WH4rNcyb/mN3pcmNNce9Vu92/QtwLcy9P3oGYlZQ9WHCFIZp4x5NgUuOn9wlzjxWgF8z04eCtMtkTQCeImxCWBXcBm+G9/a0tRrhmUosvc1RHvBp1BAP6kApc/EvmNQ5pwH0WnSvuphOq3DLxMEZXgVK9VdOqgJ5slzFGroJRYomOYeuHdtjOPznHjGHxT3mSJjt/aWDuzV3HXqclus0M8uyx+hwJJQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 360ee9d5-b4e6-4a8f-e74b-08db5315b1e6 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 18:21:24.8380 (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: Bad98YVxUI5KKslH2jVqzYMrYvz4qkw0jRTa1nYhnFy+0shNXQ/43d01dVIZNvJAgMc+bp9RPx90fWfvZJoMpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6143 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-05-12_11,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-ORIG-GUID: J0Ehsb18eLwHJv3mBAP6oqTisqhiT0Ef X-Proofpoint-GUID: J0Ehsb18eLwHJv3mBAP6oqTisqhiT0Ef X-Stat-Signature: dfoqo8rfpyrrkeacokba9hbqtazgw68y X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: E0483C0004 X-HE-Tag: 1683915688-26208 X-HE-Meta: U2FsdGVkX1/k4Lmtek+zgZc1cm/FE/IlZwMWP3j7Jjn9Ve5Ko//tNT96Ka46O8PAMIf7CQ8ISYbi5mbGB7ZXp++D0ZB76F6U/9Xgoy8mWmEt9JKa02Y/wrFg7tVkMa6lul5wGtLItGI/FnYDgECpnWwjSwXDOii3uzRz5XUeFlhiU98nruvlAnmP+k3RepzIwMe+bppv+FAJgXNJ7VhYd7WS9Q0KVPj15LDdS9aQlQ8NxCqfuywxk97UnyVjflxS4VVGIGKTUvziGTuu93Pl0u9RSGeK68Kb5HmVU/8Z01bM5xKLI3lQ0JQa/yWpJF0Xvvq2JIausxGYiJVMjlzxKY6SSQBtUhdvfhbVNXWxbd00Bb7kAYLMbckWQH4V7di7O0WT/qGckWjJTMLQeNbT74+Wh1YbpVN45Qt864C4cEDBFWodw1GkLUtLMGPq4iUjZN2VN74ep6f/Rfn6Nl/0wgGHSBfCZrw5qdbzkc7MFQhxpcobfmMcX2TfbSZGRPkFkFc9F5bAkGm87PHEZhKcPfygvJea9OXLhhcOIc1d/SSbNxVSb/eHdVda9itY0WCGbfiSWtDkBegmgeRv9opDOWJTNDTedkeL8eUZOH21oe5gq9CWqMAqdH1XrwqVqFmX7rTtKGBTMTw3i7R81vfOxbCD83JMaYk8upeK+BS/T1xUctXGFQSlEoCqOfYZBW4a1R5ZAE3qOPT/GcClqbcHlPAE7eQadiIWZc46dMkbXP57xez7PwsxGCoLhEYyWuG9wdPCRo7flvCIx9FK7Zyhjo2RsPjlK1xBwKROyXq47jQBEpW1Eb6F8IkUwd8a8CARjf8Rn7mPsd3QIEtpHxzMWrJzDubI30yMJbavnmZIlAe9Pkf1sJqHKIsgPAzJy+jof7zojL/cl3Ai0/ZkW/72VYzpsViiIUVr7czZNy+JJC4V9/5F0gFgbO5L9PogiZ2I812k+6iOBegkLuHNMTD WJ3HdLmw S7GKTfwgUfp9xzvmJGipA5AJdhqL8tBj6UnyYbqLNGVmTZE/zkYNnhr4CU5mBYke9ibGeAqNEUdYkmZ910XVSchYFjEM1ycKvNsTecB4NhOVgBq9K2epbIAs4HHC8YOlPLflEXRWYvcEkpyZK+XrUOKEwsoZCAj7+qxNsG5P9Ktc0m5BOON/5l2xlSPjteXGNxzPQ84izkT0Q5NSxTTMpdirIG4k3NGD3KMpbhUasdFeOBE2HHWR9FyO/jNYN0ytXDFVG6AWUsaBFw0su9sisDDsDa9EoaZ2Tqoi2S38lukOqyGbd15ZUNdscY/Nwb0Cg+zssODXCt/bAb3r7MbgkMtw0ScpEVaVodacswuJLvBCy73lMQzYEt99XSXdHadQ1qrm9O9XfxrFFEtBKC+QKpM0kG2SjRVjrmp3tCB4TlJJ8YnM= 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_store_prealloc() should never fail, but if it does due to internal tree issues then get as much debug information as possible prior to crashing the kernel. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 824967872d426..d5ccf7bcf3b5d 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -5761,7 +5761,7 @@ void mas_store_prealloc(struct ma_state *mas, void *entry) mas_wr_store_setup(&wr_mas); trace_ma_write(__func__, mas, 0, entry); mas_wr_store_entry(&wr_mas); - BUG_ON(mas_is_err(mas)); + MAS_WR_BUG_ON(&wr_mas, mas_is_err(mas)); mas_destroy(mas); } EXPORT_SYMBOL_GPL(mas_store_prealloc);