From patchwork Thu May 18 14:55:27 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: 13246946 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 8449CC7EE25 for ; Thu, 18 May 2023 14:56:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5836E280007; Thu, 18 May 2023 10:56:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E47C280004; Thu, 18 May 2023 10:56:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 30FFB280007; Thu, 18 May 2023 10:56:41 -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 1CE75280004 for ; Thu, 18 May 2023 10:56:41 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DAB7B120879 for ; Thu, 18 May 2023 14:56:40 +0000 (UTC) X-FDA: 80803677360.27.E069D52 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf16.hostedemail.com (Postfix) with ESMTP id 6387E180010 for ; Thu, 18 May 2023 14:56:37 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=dOUc4NJx; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QzSHztme; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.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=1684421797; a=rsa-sha256; cv=pass; b=Qzo6/5DDU9i0WS/apWZSN0AO99yKpb7C4NDXVQszKxTNbpq5QdJQWbGtat6Mp5/Z2nicGP PaO96bVsXMbF2d6Pxa3+h6KVovzd6ChXg43PtAZovXwql0waSiGaSNBy4FvJJWv6di2NpL JT0GJMGWc4yHdkb5AXWMCp1yG8F+Gsc= ARC-Authentication-Results: i=2; imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=dOUc4NJx; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QzSHztme; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.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=1684421797; 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=WgG6pqQbXrXhkyRXhzX1LF8QLFHQlNoDLQmXUrCL84JDzIUmz61F7QAL/RSd64VlsyjBv7 9sLPR/g+Ivav5BClYfEHJsGz29onYwEiu5toSveJEYDDMOCWheql2IQdWDU9RHJj7uds2c WLyY9qQ6KC0Lr8WEM7XB8fpDq4fRtGk= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34I6IoDI006511; Thu, 18 May 2023 14:56:36 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=dOUc4NJxGf4jRm8jkoC4t9FJ04fgyDLT8qz6hRSRwjCmlisM4ouXsc7xTweLJMvc8kkA ntqbZR7SsKVQ4zHi68je/B0A+YSwk7XHUUTNfkGTCsyIQf0pk3vYEnd4wdsjzu06S75F ZctWSG6C9pCgoQt1fN/gm+19DHPswj9T6IzFqh7VTHXl+hw3RBCjO0eqSHXCDGVvujHP A8s/LR6fb1i0x0D922NjlpQtkFvsuaO5heTuC3RxMCaiTQagH0zEShCFVnpSd55LaT8V u21L40odi/OmSBIolXM/3FuLJFjxLH4X6RJ+lnIQWDPheWKIGlwU4OA/RiH60mBzmCdg 9w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj0ye82q0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:35 +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 34IE2jRu025047; Thu, 18 May 2023 14:56:35 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj106vmg2-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sk2+3Zfi1PE2JV4TTCdnXCPw1v33CCp8afYud5/ZtTVZY3rPVwZ1qccf/R4E+UzE0SHRlJaRoi3GN9en5Y+bZ7K58J6Mo2hsUKiMMhLGErUxGaZ1RsyePzN2UDJqYUuV6zvSMyJnjmyrqtSLDd7XGtoLem4x8tEGXSUmyF1AQMgFRfO6Z3xxwZMtQI6KpDyshybJawZQDr1Osd+D+9Q0dSckz+vhXwqmY8oVTvhU1jd4VIb0J7/6bIPIlLzzqruQcv9zGOsvz+GwxvbrV+dvNdkPgvuErMacXPmNKuQ/cJZ9sV3qic5iZkXRK6Xn6EsWcq3y4F32icDOUw3S9DHbTw== 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=e5HFn4Ivjgbp9X47X9ogmqCbEzW31AjhBUgSXTaHO7YHVcmH10ZC3R/vRakYzrEbnOLO769XQb+lwbjGxtZRo0lpaUjJ5ePmwVBDKj5vUEGh1YS7cYKF61BMCIf3EYgIv4UvffZOF1usRTvidBsSjf8anBreIwfR0MM/T/GjXryp3Dy/8fG8Wv7KUazwLTWF21grdjtzAgpruNmbSc27WiAROBh7SPVckt0MnPGaAUiNDVGu885p2WQuUpC7+WXBFjgOxpoj0uI4arfaMAsL2jAEqGABhz99h7h9iW2RGLPoyNNF5vwPd1RJhxBxsJeOYLvzp1boIb1sZAkIPuY/cw== 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=QzSHztme4ajPtjSh00b+s6Pl5fBz72UvlFOUq92CP3VlMTy1CUjwLtxVtm39S/wVNowAbjWZGVzYG+mV1+Ujxc22jWdmvxSlC2FpVnDIP8GJmp8Hoe+sj5zg94vqFQl5VIdmRyUDetFxGEBTQUkEXv5gyl/IQIQCsNC7YJLBvYU= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DM4PR10MB7427.namprd10.prod.outlook.com (2603:10b6:8:181::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 14:56:32 +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:32 +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" , Sergey Senozhatsky Subject: [PATCH v4 18/35] mm: Update vma_iter_store() to use MAS_WARN_ON() Date: Thu, 18 May 2023 10:55:27 -0400 Message-Id: <20230518145544.1722059-19-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> X-ClientProxiedBy: YT1PR01CA0084.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::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_|DM4PR10MB7427:EE_ X-MS-Office365-Filtering-Correlation-Id: e7bfcd50-2003-4f80-94d5-08db57b0118c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xVau9lZyxifVZx7NT8ESzi+G/mvRqreev6gWamrHAQB1erShhkJXWreTdL/2rbuC/a7QXuAtLDgHJY+lZBkSHj/5L63X+yR/tSS5UEZJCh3dE1cpz+AsKOWdjjx4hVKHMAUuTbfBVmnRt2We/r/4H5sEYu2fakDcqVakqbYt/CAgBE9cmEP1pfGTDMgRF61bubZ+noMPq7h7MlQln0HE0y8b/Ls+eu9On2X5AkaJY6gabkbrYEA7zsC1RTy8zUGxhxq99HXGQK9AwYeGblRLIaV1/pi18gzhZpOYyJ9CDlgf2ShhcbyoGYz7OLU9WK0ACBhBC28Z8NrvEWzyv6FC2jhedfz5iY5Ux0CIOsLT0xn+bLbf/5zMRtNx6VLOJ48DAk/V8wEtvwRqvpJQR7/lfsKsWoG6s+krQCY04f2PeLhLp+AOinhu5wVprJi4AgBf5P4IivuuNq/c47z4UAGJdnqKK9g+ImKidvNjSH10b0hZKkDEV6Cg2qzQJMHQVxxluU3Sp5HaRkrdcSBsFcdf6WirlA6Kuy5q9vJyL1ysmR1kviWW0YnAl3lxnx3SVcy/ 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)(396003)(346002)(136003)(376002)(366004)(451199021)(8676002)(5660300002)(8936002)(4326008)(316002)(6512007)(1076003)(83380400001)(6506007)(26005)(86362001)(186003)(38100700002)(2616005)(41300700001)(478600001)(66476007)(6666004)(66946007)(66556008)(6916009)(6486002)(36756003)(54906003)(2906002)(15650500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-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/sx9XjxIYspd+Wb4L6jev8APLkrUBRONjISEP02GVWd2VHpA01XUMXajoP7q+P+VQXsBmQGhm2EslbzIMBokwt1vY4flWTDx3U0DNM/UoSxfD6S6CyS+PnJ6vYEk9PhQpMmKH0128b2h3PRj/5bBfZyr1dpF279FeQixdU0UZvO2MovE/rncHc0pirSpHKujwNQ/iuZxzhRpcoySkQILAe1pVe24G2PWCdfPJf4tasQTUtX3oTB4dyJTADO1aM8uoIAYdISCwUklgchMM48Hn/oANuex4JMEu+mBjQZBPqDIXcuHBGE4Y/d9yTk3OSLg48ctV2m2dxem5MWVpVuqXTOZXAlhvQ4XP2Bo1fxTd2dej9wZpP9ua/8KL14VUqz0nPBgJxdwX/cjJcR9lxWndZFde9/8Lx3w2AoHlj6pPMdyqjM+iHzBQVei+KpacWSCOdCLDTVdrWx2Idjdkfqzu5urwhSM2h6kRzegJePO3s0EFyGUxlZJhOHvwQIL X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7bfcd50-2003-4f80-94d5-08db57b0118c 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:32.4325 (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: 9FtZeMrzo+fr9H6C97+KJZobZqjqON1RrAW9s3oeOC3Dwh8H88YLm0dbjJ6MXqgsj84phdUi5hvltqypauIwIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7427 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: TjvGn7p7v5cv94hSr8X2r-ykWeNCozLt X-Proofpoint-GUID: TjvGn7p7v5cv94hSr8X2r-ykWeNCozLt X-Rspam-User: X-Stat-Signature: 5yaqediec35kho4jwcc4qft7nduc543o X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 6387E180010 X-HE-Tag: 1684421797-726222 X-HE-Meta: U2FsdGVkX1/df6PRT1Q5gxkGqo0kGfhhNMuliD33bq1GleLj3VNnRnR+QXOg6lHpeSW3Z0kNE+yQPxnghXqYnndllJMZLlezzK7k1LKBVvORnInqja7OmgeakDwM2ISaGWT1vAQnpoTH+wCldqWQbUMZrCLztminC/yUebfL0HnFF8BDBmn68m0I2k9iMW9rXdye3e+sS5KE+wkeAjkSFJk+/2we+UXHugKcrhWKaeH0+/av9Vrt7aZMeJlHgnf738+omjBqY7/5LtqWbYoVactXs08DLXbmWv0TJwozou4rw9XdK+P2eChcgsZtBWfVl8zNPBeHX8BWPFxwrt86Fw74dnA9iJExCp58BqedVRmyDYkE9vW4wOYGrzccMQUeBur1ngoIan/4SBD9gwiVVlOqlAas4INjLM22YceCNvO3+RaH2247Btmi/FnruhOMO8z0Ma+tsTvGPRJdA5NOJmGD1qT3JyJ3IKWA03LsAufgEE64xLDsI0U7M5kOVvqYaT8RL9LPpmhD2qDj279VTJohAP4kfGZo3VVow7GLIGm2BeMr9hsb1tXnw9QBEIKqYymv3ERzTx9dzm00Ax2izgg5EIReoqi2OQwWk3lIKxosvbs9K0uQWFcSx2O537xgl3i2lYGg+keOdoYfLXOO8+Zh9vwtLUuQrPoiRPKuSx0FzhciBiyFdy2Wb99jAx+GtWuPD2f/WHQGo9tt4Pg8vp4CX3e4nQZFlBddGzsYrhFCy6Nc889RlZQHe0jqo4iUg8e69pDF1nMmiDcpygtii1NWy0yb/nfg0rXTxRI6BWnNdunw6vHXidgMs8DBoOxszkm/XWc562v6AuRxjpq5vn8D7GaSFXfVAu0ETqdf1LVfsUQM4Xw8e7wv6droR+l9wWSpSbmPQ4OSwQqLJCwzScgXoNK2c+rqx1xnfn0AT3EInIvDtYCkEJHPD2l3+g8whSFrG3W2/QK6ENOB+a9 oJODLWky IHBfZmMfglMuBYAyk77KbJ6ETR1zo3Te/2gGUiX6PAKOtowDyXcKHH+aYw2WAPA8PwvV7Ob13u3Rnse+rlq+dH6HYivxcL0JMjV9W1eqiupzRZxbzpVuJMs+ah29DAuK1g5dbwZCF7G+rhLXKCQ4CeSkz0bZYLWUpJZ3cqxqayunM8cwOQ1fVA8j3xUr7MACw3f33Ogxckb3R4v55w5SX6GO27gD/ibbgmEYHzUnWuQpTs9ZhI8gCeJ9r4wmtsgP9BEneg1tFJeeKlW+NW13raiqVDB4GZ6R2h4o8wfN/j58s8itwlINJ0wB9jG+L2lSv1W7+uMuVA+SmXM2UScOy0ahX/c1roFwliLid6S16omrUc2ftzTMQOehm+mye6ap9pLpIW1GRPUKKZXWdwv4Dr48s3Q8UOgKTZyqQsOtKDgIZAEaKzGaHoaaqFFHhRe5EGfuRuQ25lHrA6phzZRPQdcmm2nUnemIjhYB05LbNW+g5ZbY= 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. Update the printk to a pr_warn(), but this will only be printed when maple tree debug is enabled anyways. Making all print statements into one will keep them together on a busy terminal. Signed-off-by: Liam R. Howlett Reviewed-by: Sergey Senozhatsky --- mm/internal.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 8d1a8bd00124..644fa8b761f5 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)) { + pr_warn("%lx > %lx\n store vma %lx-%lx\n into slot %lx-%lx\n", + vmi->mas.index, vma->vm_start, vma->vm_start, + vma->vm_end, 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)) { + pr_warn("%lx < %lx\nstore vma %lx-%lx\ninto slot %lx-%lx\n", + vmi->mas.last, vma->vm_start, vma->vm_start, vma->vm_end, + vmi->mas.index, vmi->mas.last); } #endif