From patchwork Fri Jan 3 19:35:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13925827 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 B8506E77188 for ; Fri, 3 Jan 2025 19:35:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B1696B0082; Fri, 3 Jan 2025 14:35:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 261346B0088; Fri, 3 Jan 2025 14:35:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0DAC16B008A; Fri, 3 Jan 2025 14:35:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E42F36B0082 for ; Fri, 3 Jan 2025 14:35:58 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 59720A0288 for ; Fri, 3 Jan 2025 19:35:58 +0000 (UTC) X-FDA: 82967145996.10.465B496 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf22.hostedemail.com (Postfix) with ESMTP id 170FBC0005 for ; Fri, 3 Jan 2025 19:35:54 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=omhovK8A; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hrvYI0ws; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf22.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1735932955; 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: references:dkim-signature; bh=XNmR4dHBKdJZ10sB9cjq33xFisUYPq1v1aGEWRC0h7U=; b=7anTQQkElrwogx4vZ2/evTAmhswaM3AhCMLIhatMRUZJ8eFTij8s8TDs5TbNrC9jJvB9zy CPQi+vOaR6wWLlwT/zzXP85mXnvF0GiFtAh6ae2ZlxYrxnz0o5XxmXj9kO3M2jzV4b51Ni kDU8f+IJsoxp/jc6gVpv7bkF11ym+Pk= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1735932955; a=rsa-sha256; cv=pass; b=y11M20dCVZYmCJqTE0wwdGV+nPdVOgYbRH9+0kTsZZk0hOXDuvsiRmHhmuCWcdfOS6zj66 CIg3Sh2kwyvqJ+0eGgGk+CPi6aM51AERgXlYYnddcaS+JtHq6tZJ6dtsK8fcCZuaCsvRbU 38OOg65b8Yk4aPuGMNJUoymDXCKWbes= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=omhovK8A; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hrvYI0ws; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf22.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 503Id1lq020580; Fri, 3 Jan 2025 19:35:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=corp-2023-11-20; bh=XNmR4dHBKdJZ10sB 9cjq33xFisUYPq1v1aGEWRC0h7U=; b=omhovK8AHaiULTvY16R+6tc75o7uShn9 hiPJ78iwcpEPm0Cc2nvGVc9CFrQg3OQRBg2hR39pfPNajFvhFRyClE6KSA61DsaY 2IHc3S0txkKs88RKV250JgpmCs3+IBUoL5CXQAE93ze8W+sZKG7MOrs113FT77kM muL2aCriGUBryXIY1w1+iVK2tx+6uWfiaz7znOeLFNLzCrudmi2+4QjkZeIgFI1U 2sSvQfRBnoleM63rX7+e8TNmscHXl09yXMpqzyleEV/7qGsCBPBjj3tRG6AJeFKB lQcchYJYKLw9laCL+5GT+yWzBvnp4GqFjyFCIdf6u/WPTlvis4Lj6w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43t9chgpbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Jan 2025 19:35:48 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 503HodKs030159; Fri, 3 Jan 2025 19:35:48 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43xcwggb4b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Jan 2025 19:35:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fvOhTnFXc/VaZvj2YWO+4YVDKAtgUNC4GET+EM85I/VBw8mkwtJVLtDaPUVizJVZhUT5BOTSsRjBb1/Tg7xaaOUtx0e+DDgWY9MnVqaCxMtkIOyQXLodRfTBy4ul0BDnvHkco93P6O74RB8il/rLtoRJqm3zm1qLyCxhUWkT6lJpzbqwfiez50v7DZlT1pXSYwe05TGU6oABLo25arJe7YlDlhGHPSEPv5WMocUJNKDvTlgCpzrkSzJ3jUMYzzNbniomZfMqD09Toe+Qy4mkEPjnc3Auafi/rywv70WN/WSK0XuRTktUAmdkCwKeN5e7+2FFmH68Gk0lUXOji+37aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XNmR4dHBKdJZ10sB9cjq33xFisUYPq1v1aGEWRC0h7U=; b=pbgTkiHNJPyIIPlHqX3blrEGCOUh1dtP+be9srBx3bO5ducnyGvnCGqk5kQbvA5VCNKKIklB+tcrJY066dRWPH9sNGD8QsImv/rfLlsHF1+eJHbUzW/H7Vveznd8sMjy9vIEMvCGn+6HmeX7HDX2+znFTOdUwmk/JnFUETDgwlxFewDBb9TA+6D4eAqVnn/MorTCKZ6gclVS/BZB9OB4dZ6xN5HGtw06usmHX9AayRLtBRMoUGs7YeLH8wM1FodI+xuBLvb+nYwTPgNwfdbapIwbSxCUcbFmjiXRdaFMuqaHRgBphdMhAJX+FK+SALAveCrNlaWnZy7WPvU4YC4dRQ== 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=XNmR4dHBKdJZ10sB9cjq33xFisUYPq1v1aGEWRC0h7U=; b=hrvYI0wsJahAHDlgJ8UKZzljtxe81yQ/M/10xkPIF4qLoNixhTmYoIYrY7nTnrDHGmd5eQfTkukOjCT1j/l5nFY7/hvXjBld8hqGhsRBMXVvuRVwft6MDcR2fdVwP9b+1H7NWzK810Mztiygtokpqlx3RHKYj8uXUCWNWj9lSvo= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by CH0PR10MB5163.namprd10.prod.outlook.com (2603:10b6:610:dd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.14; Fri, 3 Jan 2025 19:35:41 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%4]) with mapi id 15.20.8314.012; Fri, 3 Jan 2025 19:35:41 +0000 From: Lorenzo Stoakes To: Andrew Morton , "Liam R . Howlett" Cc: Vlastimil Babka , Jann Horn , David Hildenbrand , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/2] mm/debug: introduce and use VM_WARN_ON_VMG() Date: Fri, 3 Jan 2025 19:35:34 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 X-ClientProxiedBy: LO2P123CA0048.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600::36) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|CH0PR10MB5163:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a29cc9b-1a42-46b3-f68e-08dd2c2dced6 X-MS-Exchange-SenderADCheck: 1 X-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7A0i4yxr9JnYEizCMlhcs4+t3iIufS9KfrIqYgeT4wEHlMVBr2h99fnApN+8WPes8j/0UYZRESafjCyxpyn8I9KYBUmdgwzyZS7WxEiMq8IxbTFyDxBeVGODRtbczmRpjPMfSJ0/CIp3/me0cFlZgT3CZmJQ8UBF+vUvFSRib/cY60w6aH/dVyQgyPXL9nqX2ITHmruWkIIGOEnSC4HZRq+DJ69p0nGVrPsuS946hCoW1dTP+4UtuAbN0NEtCqDEYUpxRNdHB69MOdyqt9hBA/bvi0a7tZ//YG2zw/eIhRdeSnyHna4N58khVZgJIGJ2NwsSFCJVLrfQrXzW4YmQb+azq6NCAgCDmv7YkTKX04vcgtk0htwOVJYqak03byD+zFxeEiVe33oP9+xRICzFiOeDPZLyFW4/j X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3366.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0K2aNnBMCN3uQlb7t/CVOmsfSXE9jKINKRhEcK3X0x2t2DyWS7qlDBWST9uiaC43DqywGMAPNd2pBqkNUqq05ImGxq/uZ0VVxXA4qJ5yFJnszSCbwBz7pYF58A2IUw8qT9IyEPJUPY56XbzYJwT6UtI0EEvSZVSeOJ+BZejo2BOoB1NVf2UkgcGJjpzBOtsTe/bmbNL17s92W5mFujmvRliR4hk3AwikizVsU1saEutjLgQC7D4pKEXsPQmaMZV8C3wPIDyWuoJoamRR5DyE1CqbcjHAR/HhGh9wPe4Rzf7tFcTPzS3DVncZ4//wPQWRX7VlVSRQHfN1hg2eVxCcxOeHLYw+KhDppJos15YSu471JHrR4FhCJZL7A46RHDRsv0iuLEfpWSUk6jRCHrDNYmMJ630Sz+nPWYAYcEBer6SdyvXxZoVI2R9wsezyjBRPq4t/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Klj3rPOCQUIeruH2GMuoEmaBelb9ebmMkENPHQ80gV9RLSzGrbmBS3P8lrOfi9bO5ii9GsrUDG1VCE7bQDuV3h1y9SvZiUQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: eZIGBZa3x/3+nvJTC3jOx+na3R15jT+ZIk3umxfRv3m8Cw/uzqi5DwMIJN3VtYnhWxFJ52k1f1vMIn359T7/c1UhBtEBGGkl0c58TJA/5P38ab9MX879aJ1lNslXdqXv57BQZEpsraJipDuoPE9vcy1jnRTiRc8QYJgQWGtOP/J2vlVKm2jGfZBkUkxbGfS2cdOX7oCLHv8i6oiFQGopr1ccAz2fWru1Oo8NwrQ5/QsGh+HoB8uZ0DjTnGDVZ2ry5wIShPZiTMpiwJLO5E/P89kdLVU1Anh8otF8ebf/opJgkxBQlWfUn5vara6CV3dyejyUedyquo45Dt/o1py5t4LtpvZCTL3uAkZXKyh0lsYrydI7ZxI/lQNpcKkE6taoM/q5HLZlnF+2hYDzIq23zM5LawA2EPFq9AXsZ+oIbXyL0IjEivDq5K8liSvrdEPYlJinBHmcjVSoyupycSaDL9sdo5wK1h1Rj9iU+Qhho5G+/OKgL3qJuSvoGJo+VdClVfKye+ivBv7zqLE6CZ5pgCdM1HZFyuNpC+oHcf8xF/NZKYHJSA788rTWiyr0PdXrjVY/vUMKhODjAztHAkGgcDXSzlRDIu9fH8jU1vwHhf8= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a29cc9b-1a42-46b3-f68e-08dd2c2dced6 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2025 19:35:41.5576 (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: 8suGqSOFTXSelFwC2Lne0MUDtQPtK2lqcCQ2dVs8GqfQhv+Pfj7BN9wn4WvVZoHcyBNlPHiJGpVgKZdcQg2CDZzcYSnoCIkQ2Ilr6y678pM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5163 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-02_03,2025-01-02_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=629 suspectscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501030173 X-Proofpoint-GUID: iPDIiPyCqnzklof7ckmTwA4k4WaMgGv3 X-Proofpoint-ORIG-GUID: iPDIiPyCqnzklof7ckmTwA4k4WaMgGv3 X-Stat-Signature: 3qw89acuchddy9d5srxe8x7gjbyz1jx1 X-Rspamd-Queue-Id: 170FBC0005 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1735932954-977431 X-HE-Meta: U2FsdGVkX1/+u7EZVE5D+PwmLTcM6Wz300i67+aOCF1KbvoQhkNncyih68a58r4g+e1q7fYAfAYF1k/G2jkcB+GrrTyNGvkdsnGNLWJaqamVHiCErNHyjgOTCg+ePmC2yb+06l+97wRrPHtEGiIdLLE5PQA2BfVxUdaS2ofgzAeoumLe8A1yTLDJWBEP+rizrd7+1f/tgWIiCVUrDlGFbRFHyLEHaYUWu08yofesVdhZ7QmizynzAZ8GkRWWitiUk5emLz4WTGsN51FSHPN1dYnS/gCWDUmhCbH2FUcIC5rriO1HIHOpFPLanYuT9nXxMA1xUypYBF16zn6U2TJgSatoAEYFXorVUulbSz5eZ6rV9z2AjqKKxp0YCq6OfEc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WWAIY+N5Ssa1ot7TxpTQ3ha7iC/Okbd6PgMCxORVp+Kc3rgPoNTK4d+FeuAUO7mNon9GgUO4YYMg/sCyb3WoNykdNO2REoYqg6MDbfZc0fJejeZics1ZLX86TAhxyVDOlrrOkDivG11sxizRr4qcjAjdxcG7YteZkavDXW0kgiYix 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: List-Subscribe: List-Unsubscribe: We use a number of asserts, enabled only when CONFIG_DEBUG_VM is set, during VMA merge operations to ensure state is as expected. However, when syzkaller or the like encounters these asserts, often the information provided by the report is insufficient to narrow down what the problem is. We noticed this recently in [0], where a non-repro issue resisted debugging due to simply not having sufficient information to go on. This series improves the situation by providing VM_WARN_ON_VMG() which acts like VM_WARN_ON() (i.e. only actually being invoked if CONFIG_DEBUG_VM is set), while dumping significant information about the VMA merge state, the mm_struct describing the virtual address space, all associated VMAs and, if CONFIG_DEBUG_VM_MAPLE_TREE is set, the associated maple tree. [0]:https://lore.kernel.org/all/6774c98f.050a0220.25abdd.0991.GAE@google.com/ Lorenzo Stoakes (2): mm/debug: introduce VM_WARN_ON_VMG() to dump VMA merge state mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings include/linux/mmdebug.h | 14 +++++++- mm/debug.c | 71 +++++++++++++++++++++++++++++++++++++++++ mm/vma.c | 33 +++++++++---------- 3 files changed, 101 insertions(+), 17 deletions(-) --- 2.47.1