Message ID | 20230425140955.3834476-2-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 372ABC6FD18 for <linux-mm@archiver.kernel.org>; Tue, 25 Apr 2023 14:10:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C6E916B0072; Tue, 25 Apr 2023 10:10:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C1EA16B0075; Tue, 25 Apr 2023 10:10:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A71416B0078; Tue, 25 Apr 2023 10:10:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 957AA6B0072 for <linux-mm@kvack.org>; Tue, 25 Apr 2023 10:10:33 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 509BF80219 for <linux-mm@kvack.org>; Tue, 25 Apr 2023 14:10:33 +0000 (UTC) X-FDA: 80720098746.06.3B4B81B Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf17.hostedemail.com (Postfix) with ESMTP id C522540015 for <linux-mm@kvack.org>; Tue, 25 Apr 2023 14:10:29 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=w6ehkow8; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=W2AZeCa8; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf17.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682431829; 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=aIr0SwrMirH0Qok/1cx1PN+5MY4i1PWV/gGH7bHH8uo=; b=EzVJtE9R4rDm+HcsvcmxxjhwkZemQPRm74wnvz9zWJ+yisxJ0de52kcCDtd+oRy/WMjAYa kCRsQnZEKFC7nkC/rSvlwORTXCSin5BzpFTih7g0W26Do/ll08alVEOk9zrHnpDoqeOgcO nM9y/Xqq2FzFiIsJph1F6pgBfRlojeo= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=w6ehkow8; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=W2AZeCa8; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf17.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-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1682431829; a=rsa-sha256; cv=pass; b=pxrkV+403q3MTa+MzX0ZvedQqejGikT9VlOvjKI048BCoz2ZPRK79RENe93eFVnRQJhof9 cQD9A3JuTBkielcr99tZN0uBaCY1BmnzV8L43EXWwlstO1yK6v4VBCaRm+eylXlgq/98f6 yjku8suLFUw0kPQ4SGHDcmMwbkGCOf4= 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 33PDhpYZ001836; Tue, 25 Apr 2023 14:10:25 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=aIr0SwrMirH0Qok/1cx1PN+5MY4i1PWV/gGH7bHH8uo=; b=w6ehkow8R1SR8F+ygXYJZkPySYjYPG+/1afnxxRSX377Tf9PZ8D38iFIP3r17ldQFH9K 8tFG+BOt+iZw36bUkLG2X2F0MmofyaAkN/ChBxnH7LYpypfLmivVFjcXStaHL3qNrAVE xmIOQN5S6HhDjeiTkkuhU96oFdpajl+1moAsP67hQeaRYZgMjgsa5jrPW2rqRcXAQc6F MmAJP755Lt+ETDs80F1i0gttB3SiFEfI6W5dV8fjGZV/WJB7zgycEwm3DdPuJ5urUWNC JW3jF0y++hplB03W2inIUHVxfbIOPBYtWicY1hDKibb8VknMnmuQrCP2oVh3x74McSlP Dg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q47mcwfb4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:10:24 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33PCeSeI013280; Tue, 25 Apr 2023 14:10:24 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q46168ct8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:10:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3ShGc3rqVcmlKgu+w+idzBzSVJ9B1wCS+0iSuVEXpEzvS1lut+Hay7Fh1GlqjXX/hefMzHLwbblqQxtkggTYIapf8H3HBduc6XLlTe10UI+l0MCQx9pjmdqV2vcJrk5oLNMaagS8wvkfCSlGZNJw/lhfQ2Qcc7Zg2rAnNpt/tNTc/r01uB2kR937BMqayZe11Xmm883Qy62mFBTC8pilC8WTuxaxNHhutQXgV6r7nZgETsX++/eN4o1JGukAtkpieiLRO5HAUidRFCSnkcu6PNyFmjdSqxhWk2Krhlvd4yp9nhIrnJ0nTburntQm+fb6i4x8Zg02UtiRoYk2kHcvg== 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=aIr0SwrMirH0Qok/1cx1PN+5MY4i1PWV/gGH7bHH8uo=; b=NcvMssJbbbw+X3nFVtJAhCJtA8pB236wAbhWE/Qf+nmHpR5OsLDkpOkVTVdwrE6xccApLK6NZNFcubn5C7Mszwj8MZcaCCNUfOJMo8VJWQNp43bzRiWELvguRuS1C4v6E5tS4RcKKDe1sWCwppVkIM3VLmf7uaioduz2QAyG7NIh7RwtXG41o2mABfvVZtHZhInqCCKFISBhiKLrn/ki2OerlwHwAW0P8gfg8X3uMp/Lr8zCTI6cesqF13GMheFympSNasTREgU/c5sTOg32YimnLmbwPMD9oUMMhIZg3sfRqzooS5flfoPkmEMpJbFUtdYpzEq1aMKyl4zTmjI0pg== 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=aIr0SwrMirH0Qok/1cx1PN+5MY4i1PWV/gGH7bHH8uo=; b=W2AZeCa8JD9sH4oSMSbNLQ5BoeILw80XAeMSwVqry446PWGZ+xxTWWV9kGYaUV+HK9NgzxQJptD1dbw2FDa+HWoO5A0K4tAXQx991usTWBzC/BRPSuyPm697qxNsrxPAxBtcMuAWLdtjNcEtRhvPEG75TCq07RZsUGZH8yProqM= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by PH7PR10MB6081.namprd10.prod.outlook.com (2603:10b6:510:1fb::19) 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:10:22 +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:10:22 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, "Liam R. Howlett" <Liam.Howlett@oracle.com>, David Binderman <dcb314@hotmail.com> Subject: [PATCH 01/34] maple_tree: Fix static analyser cppcheck issue Date: Tue, 25 Apr 2023 10:09:22 -0400 Message-Id: <20230425140955.3834476-2-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4P288CA0025.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:d3::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_|PH7PR10MB6081:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a7fb81c-d2c9-4fe8-cbfe-08db4596cebd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n9HaFYKdMsxxAXORa4oXLQxpHH36Qid3LWo5sRaEPtKrA8zoT02/XoFrwqdXNsgakHe3uS5NZZ1MieriXYxVXIhoV+cz72oKCrHz3st0jNks71VSrfz8d1SbGZNCFbW2ZqeyiPUruUbWrmxIHjNfT53tXXomHYsTd+4qskKUQ/5jU4NUAtbxwFI7UreWkifwHZie78VQKUhrTDjo5yvviqLcMxk51BJ/BwiXCN9TtokHzVy/1scTp1tHuaLe7ABzLwpaSNqF/ETdvIPiWN3Pl+MjU+UtJdW03aRk+ahPHpJgD+0sRe5579wsjn/ixT4rng5UGcR1oC90dVjCP3zVIp22AHuFRkDLd0AuJ51Qv22qzIpP6A3pwu30TZaEPktD545evMSUr6KjST670C1jJpgBsWIrpd/dsaYXMU0+mMDvCmJF3Nej5D/SjpBrqiWgeODqG9gYHhGNx3So9zwvhJTDkHeW8K+MDva7N3Nydeov3n8TJw3+m2hISlRA80Jbq6mF98+T/yfZoY7RJ4U/MRqgMx3322mV+rJLwgHfm96t8nSpYaToJy8itpO4vFBB 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)(136003)(396003)(39860400002)(366004)(346002)(376002)(451199021)(4744005)(2906002)(66476007)(66556008)(66946007)(6916009)(4326008)(316002)(5660300002)(8936002)(8676002)(41300700001)(36756003)(86362001)(186003)(26005)(6512007)(1076003)(38100700002)(45080400002)(478600001)(6486002)(83380400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DXORGrTGU5gjGAT8Y4CiROU8NlIEHplgq06jxo6lWN9Cm1NVwxuJHXFanDJk7Omols2GoTI95zB22jtGkuxDDMke9sFYGkRM1iVD7oZBR/RmCiQzNcj9DE2EcK7ppDc7Fnva27fneg2eB6AfKD+a7rnFyJliBzgP47AJ63qAXKHkWYqFsPRt9q3mncfXaxRsN3F6iYr8NKHgaCkXvVSyedH1ces7xMl7fUC+QLJB3XGgFawmtdbLHi6tu5XS6KGQ/nw6GRZzLpNURhSOycw+9r2s9RS9rbezEGpwsHDK5ZQSKau8kcpQM8w2ShysI6rDZ38L1MqID47Ziglb47mylOwG97KwBtdEVzDyrVMl9ORJFdsvJINSj7ZxDgm0MM8URRQX2i6MKixrWBI0GIAo2wQYc/xxahjwLRVu8BpMxebhcJ51xHKewxFB90eQ8f89kasfDZPa6e3oJGrEuPkeFxFfavD2yQ6xaxPuOXtAYk4le013Hk+fDg9Uu6nK1Xi3izfumuKKFsHQnuwg1yg8WCy+pxaAILNrOOt8kBVhDBN49+EjWotL/J9Dc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a7fb81c-d2c9-4fe8-cbfe-08db4596cebd 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:10:22.0358 (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: Qfv5BDzKLVYS7/ePBMx1Jb9JRrGHFfqtlH20XDHP8Nxq99PeKmKZvf6JgOqX29SToDmeJ347HaUrcemy5U82Jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6081 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 malwarescore=0 mlxscore=0 phishscore=0 adultscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250128 X-Proofpoint-GUID: VrUNUeLR3wUhKtWgBg6yepI8Dbjke9q8 X-Proofpoint-ORIG-GUID: VrUNUeLR3wUhKtWgBg6yepI8Dbjke9q8 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C522540015 X-Rspam-User: X-Stat-Signature: ra8aqxb9tsqhdu1xuwj69519asfs1kyq X-HE-Tag: 1682431829-240103 X-HE-Meta: U2FsdGVkX19W0MHjrPKqfU+LKcVTCgoZZrDpu7DTFfmbmlTLFoG3a5rSGVwX6zIrVTZ3gMKLVctD/XR4g+5XpFmDf7Ex9CECBFbA9ucbpVtVd1UhxnxQs9UDmpesCtBmhMnbY85V/yJWbR7YfdHXLILZADClx2ZxSnGAsceGMcT3gi/7WK6Wz3LeuyxsXwjycx0EW4v3suqxs+u0sAlqRe8umt7EyddijYVnEjDXQOjJlBOgwdS9NfQ9wbMmNArrzx0wgzgUu1xmflVxJE0C++qoVM8UewvAxh3J9Fi1Y8uFTFyH8FxM2ucdlZ7usFpj2UV3EbSJIJ+TDbXNIRSKC6YOMKxIkZriGau7dcgtRCiruzixJYtFi+FHh5RarAIBMCSgFAtWa5QEVLccDGWCbjVU93SG5HgWYFAV+IeQaVz8IgxPLKClYFNUZ4YlNcu+qBYwfU9bLgOv2g+x/6PSr6c5pkp9MUKirorj1BFA0AghJ2ZzyMMNuWur86O8KGYAabxPpUMaeow4J2vxeLdoz1y1SJ7nqJXOO4zeS9yRjyRydffeUSZt34Yn/2LgZvlKIs51enHWYfOYJQuYpjoMfLSnws+QyWr5TtwfJhE5L2Hw36S+3/uM1G3iazfxRnJ/m8skT+IMniNYZIN5hZJvIEH3zDdHe0lbIpgd+qzcpUResnHX9ys6n5VgwevWM7wFNxOd6+DVTbB9LThLdp+O44+8zhapq6zBWmpoQWsZFhp8H+CGs8C8CT/LqWr62UqTfYv85/O6p9mU6sCeFiM5Hrd5pSr2NwHZ+Xp8IcV+LjGYYQ/+z43AMLQYTxnwEv0yOPn3/oIqwn2Fa8AFph9ZQUpCCcVYDZUfZ6I+Bd85gT3hP+N+X1qTeldJ0CDybafh70cFyYAycQWPmzJlNJ/31i58NS40BZKgCYDpR+pw4x78r8QsAF0ahwu2XBeF/Cs4PgiPhQJCKoo5JMKTX98 op6cQKi7 2d9K2nasKOz/vYd1Yu0yRFuVKeaC9eGProlBsaPI+lds2HmVvCGqDx1zVayRt09h8hA2noEcpNDK5uisxEIyy3gM5RNh+O48gkvFc6ASsW7FDMihEHZTsN+z0T1EyZvDaDbr+xbLavFwk01nEA3Tb7gb98rO/m7IABJVINP3T53FS7THZfEYcDpOEnv+C3fqa6oaIE/Ty5fZhDroPo9RAniZo83OnYx/FgaAY0eQqUCygJX1208Geg3TZKe9EpRRVuYONYjF/BW+aXZ8DIkid+WhZaFmuY0S5O1MsMkfiJFvd3X7TPC5ktRsmMBoxNU5JKXIYfltCVmj0XMR2SVOSmc/yEsXyEotZzjAWe1qDNrUiTfOALkbqknm8n6FtqM8TKYudwAeYQ9GeKxGSsGwSRJAvQLgXDaWs8hzuwF/P8SNIhJulaTPv0aLrnsB0PvnPXMCa 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: <linux-mm.kvack.org> |
Series |
Maple tree mas_{next,prev}_range() and cleanup
|
expand
|
在 2023/4/25 22:09, Liam R. Howlett 写道: > Static analyser of the maple tree code noticed that the split variable > is being used to dereference into an array prior to checking the > variable itself. Fix this issue by changing the order of the statement > to check the variable first. > > Reported-by: David Binderman <dcb314@hotmail.com> > Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by: Peng Zhang<zhangpeng.00@bytedance.com> > --- > lib/maple_tree.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lib/maple_tree.c b/lib/maple_tree.c > index 110a36479dced..9cf4fca42310c 100644 > --- a/lib/maple_tree.c > +++ b/lib/maple_tree.c > @@ -1943,8 +1943,9 @@ static inline int mab_calc_split(struct ma_state *mas, > * causes one node to be deficient. > * NOTE: mt_min_slots is 1 based, b_end and split are zero. > */ > - while (((bn->pivot[split] - min) < slot_count - 1) && > - (split < slot_count - 1) && (b_end - split > slot_min)) > + while ((split < slot_count - 1) && > + ((bn->pivot[split] - min) < slot_count - 1) && > + (b_end - split > slot_min)) > split++; > } >
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 110a36479dced..9cf4fca42310c 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1943,8 +1943,9 @@ static inline int mab_calc_split(struct ma_state *mas, * causes one node to be deficient. * NOTE: mt_min_slots is 1 based, b_end and split are zero. */ - while (((bn->pivot[split] - min) < slot_count - 1) && - (split < slot_count - 1) && (b_end - split > slot_min)) + while ((split < slot_count - 1) && + ((bn->pivot[split] - min) < slot_count - 1) && + (b_end - split > slot_min)) split++; }
Static analyser of the maple tree code noticed that the split variable is being used to dereference into an array prior to checking the variable itself. Fix this issue by changing the order of the statement to check the variable first. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/maple_tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)