Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1312087rwd; Tue, 13 Jun 2023 07:35:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jrtI4AfChrKBziLvYSNs78Yee5SqUHi7O4xqJOQafj53CK6vaLlrKe+QTsh4vJEBmFmZU X-Received: by 2002:a2e:88c2:0:b0:2af:2231:94ba with SMTP id a2-20020a2e88c2000000b002af223194bamr5005944ljk.3.1686666929128; Tue, 13 Jun 2023 07:35:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686666929; cv=pass; d=google.com; s=arc-20160816; b=jKNzuKQBDjOK4pE8esksfvPPz4NtDkm2CC2VARIUJX5um53SyiR78UazLBCdmGUywN MOdEdfwDuZ7RlGUsd1HrFvW3VdqOUOrRCuCpCPEoTZHss3hCM+VudIOGepxcG8d3Tuh7 0dZ7ljXSEJBe9XrDbjtV4QSmYyTaFnJnffekbgyibkV1T/1bUcygdQTT25KrhJO9hcuq QpZijkpnlrHuwrRU5YKBONjUJ0M+W2ulg1Nt/HM0QkVmi6IB+G1LqAIcH9znoJoNgoig 8Ug+eOdzIaUrqjfN3Dce2ZgvZAjsme/C2uRkyu+S7d3vQ557vSc1rdevJ9yZhWi0MpbU kP2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-transfer-encoding:content-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=xW5fQHbXoqhlpaPaDt6pJfvLqmQYqdiWufhrsFtAGOM=; b=Qdwb5zv/oVrpy5pyblP+t2arVC/l2nGgHTcjj29n9V131Ck1x7187p10O4gGNHFZnz ++/mV3cwKAl/vo9EOuVlVuWhNd+y9tM7+pSHJBokoY2g7FeqnnSSNcU1Its2mijd2nLP 5f0UyeXBGulo9dzgfapX0Uh0HMlBVvrLC0sftcHxd/RR9b7/qabOL9thJ4uHkoMLSOxy +fm9MYjz09WBNt6nQL7deVRlCoN6Cg9QnU66l3F4gttYIeLCyvbPj1Pl8pk0U4ItctBe 2Vlto+fRUK9hEoDmO+xRJeEKvYRq38EdKYUk6yAxiUG6aEEzjDxCLBCId99Z6w5I09Jx TPbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="3vCl/TOE"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=shxD2eMM; 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 e15-20020a056402104f00b00514a14a94dfsi7383566edu.668.2023.06.13.07.35.00; Tue, 13 Jun 2023 07:35:29 -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="3vCl/TOE"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=shxD2eMM; 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 S242726AbjFMOMM (ORCPT + 99 others); Tue, 13 Jun 2023 10:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240668AbjFMOMI (ORCPT ); Tue, 13 Jun 2023 10:12:08 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC45E7D for ; Tue, 13 Jun 2023 07:11:42 -0700 (PDT) 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 35DDO9Ai016389; Tue, 13 Jun 2023 14:11:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : content-transfer-encoding : in-reply-to : mime-version; s=corp-2023-03-30; bh=xW5fQHbXoqhlpaPaDt6pJfvLqmQYqdiWufhrsFtAGOM=; b=3vCl/TOEi1AUJyhJyxO8NCOnQ4XKJzL5G47El1tzAfSNbr2YEILrkixPCpfrujdriC0/ dJtdNJR00Q4N8Aifw0NzAwdi4tVQPocvwL8AZkAGDs9v85nLhPPhodgc5ZEDfJe17joA 7TxeV0eHzwp1AX21s+FjleSw5bpDJmnJttS07oloWSLJLCP7B0Xe0kjuDzDX06cJvwgS f4o1JNtssIcZYlz9TH48mJrIjhxLPVxQgj98t4vm7fcLKEiTBrSMu+tXjaYQ7EOIcLbD SeNgsckyRA5JxvpywF4MDsG4HksrccemgvLMfRBEy6l71fm0VP+p0rbXnl86moMn4V3Y 8Q== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4fkdn8ey-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Jun 2023 14:11:23 +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 35DD1H6J014058; Tue, 13 Jun 2023 14:11:22 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2172.outbound.protection.outlook.com [104.47.57.172]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm3y1ef-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Jun 2023 14:11:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBZwkdmiCOJ2sNVujddWauVrq/eZcGqkDTNr2euD/ZJb69LX5gh3agT5L61v++Yh6Pvz5knNDoXrhtWSq5RS07/j3htq1LlSTJ6he37zFin5wTCcQ5KnzB61p5qFW8ufGF/A26xX+LKm7w+KiTAwxx5IfYB0lDGcBVRaFGPKP6JmjFrs0Z+N4z003kCe2hhV4QEeVr9bCUMpZBrt9cuCl07hEMDf+sSE6weK/yVQKozMFxGcOpyENgDYdsJYeoFtgm3Ritf0dHCRwT7GYPBYZIK3AksFD9VgG9d0ejyXebjFEopg54EZ+mvPkHRxsT9n4zqS+WvOGRAqMljbK7BS+Q== 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=xW5fQHbXoqhlpaPaDt6pJfvLqmQYqdiWufhrsFtAGOM=; b=YtLroEga7njBR5uVqsERhxpz1BcAcn5Lh7lOE1Iny5nLQanN6YltzyZ5Ne+YNI5DgsGzsP0VVeplq7ckSIYDpg6fWIxGakD5txdcl4xgTXP3Lbxame9y7yjQ8+RxiPB9YdKHZJ7rTjxuHf2I4ZA7yvom3subAnku+kpGerrCCtO3LLDAgb36v0AJ5ujWN7XgG0McGyMZf75LIkpc7uo19RjELeVehfMJrTCqdM/i+aVPQU6Mj7j2F43MGzRrriawsFx3wER/E65UijRC4r/UIbv6navIfQUcvH7KfL9mp57naABDxlUjl2q2E4PgxEVgD6GMAIbIBUwHnfngBgRkPw== 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=xW5fQHbXoqhlpaPaDt6pJfvLqmQYqdiWufhrsFtAGOM=; b=shxD2eMM/Mj2flodFxQruNmpxpPH5HbNfPgVr5OJWbDYeVUY6KIBHMlYPttrW5GlHiDXOQ64WZ87wiTdsTD38hiJlwdUOMiHs7r6VNrKDDkvm96zZQEjiJ+mw8yHLFTH5llf8OGYDhOcSRRXVSI+wwDfeph99etBK01URBZiiYI= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CO1PR10MB4484.namprd10.prod.outlook.com (2603:10b6:303:90::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.42; Tue, 13 Jun 2023 14:11:20 +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.6455.045; Tue, 13 Jun 2023 14:11:17 +0000 Date: Tue, 13 Jun 2023 10:11:14 -0400 From: "Liam R. Howlett" To: John Hsu =?utf-8?B?KOioseawuOe/sCk=?= Cc: "maple-tree@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Andrew Yang =?utf-8?B?KOaliuaZuuW8tyk=?= , Qun-wei Lin =?utf-8?B?KOael+e+pOW0tCk=?= , Chinwen Chang =?utf-8?B?KOW8temMpuaWhyk=?= , Casper Li =?utf-8?B?KOadjuS4reamrik=?= , Kuan-Ying Lee =?utf-8?B?KOadjuWGoOepjik=?= , "akpm@linux-foundation.org" , "yuzhao@google.com" Subject: Re: [BUG] trigger BUG_ON in mas_store_prealloc when low memory Message-ID: <20230613141114.bwbnqsdazqbmyj3u@revolver> Mail-Followup-To: "Liam R. Howlett" , John Hsu =?utf-8?B?KOioseawuOe/sCk=?= , "maple-tree@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Andrew Yang =?utf-8?B?KOaliuaZuuW8tyk=?= , Qun-wei Lin =?utf-8?B?KOael+e+pOW0tCk=?= , Chinwen Chang =?utf-8?B?KOW8temMpuaWhyk=?= , Casper Li =?utf-8?B?KOadjuS4reamrik=?= , Kuan-Ying Lee =?utf-8?B?KOadjuWGoOepjik=?= , "akpm@linux-foundation.org" , "yuzhao@google.com" References: <9cb8c599b1d7f9c1c300d1a334d5eb70ec4d7357.camel@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <9cb8c599b1d7f9c1c300d1a334d5eb70ec4d7357.camel@mediatek.com> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0173.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:110::14) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CO1PR10MB4484:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f4c0013-1bf3-40aa-5fc2-08db6c180e2f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZFEcskzrRG5Wfu/nyIkdGJy3VCo1Xx5UsziCKVRCxQU/Ah2Vm4oxH/LtdQPfkNOzOr3DCpZzLsF9WSSdcKCo42CnLss0Vdd3+09JbQqanPybVlLmcDOS8YMs3J+EghsIjcuK/R8EXG9HVtRV50Ppbud88vgkcF2I9jY78ttNlsVVbkqHsV/cu4Uf3ptmg3yHBtTZc4V/hHgt0mGSDSzb3gTIe+irZ2GnT2Bz0U/pV+9O8fGP1BM/U9qNYRR9Qri2a+Uxu6+SRS1aBMOIp5+qJcWsgDiWlnh5JFZDg+Uql1ClG6u0vBWDrvrpH0rNr/VE5k5wj/GwiRq9iulI/1h9fnPK+q9vJ/tE4Lcgcpqy/pY8kedU3MiLP8tpB8S6pcAmxQWx3aFYfKTPKFiCQgDKFOJSY1IVTlrvpnttUpD/n9TCFcyR9X3wl4u3/SQVUkt1H25MVx2PhdtccTfoKdyzhferSKH47RBUiIlIDrME8voB7wACUHJdtUlXOzwiXtWOZgvfQ+tyxXJIIATz38oPfsW6kvre/ldvCmK8ulv6CrOEzRITILAIm9WGc1PFdIWk 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)(7916004)(396003)(376002)(346002)(136003)(39860400002)(366004)(451199021)(7416002)(83380400001)(54906003)(478600001)(8676002)(8936002)(41300700001)(38100700002)(6486002)(66946007)(66556008)(316002)(66476007)(6916009)(4326008)(86362001)(5660300002)(6666004)(2906002)(1076003)(9686003)(6512007)(6506007)(26005)(33716001)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QlVJWmNuQnllbTQ5WUNzbllsNEprcWxCcUUvYlVPbU1TdHhvVGlsbGdOL1JO?= =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-40aa-5fc2-08db6c180e2f X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 14:11:17.9092 (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: P5hHbCEcfz+lTNO9AopKL+QG/3cR1gyAowX6/QFFa+4coFBSWuMk+GqugS+fA5/AcLuIwiHM0HxXryBZBN5rLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4484 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_16,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130124 X-Proofpoint-ORIG-GUID: 1INIGoKGFK3TnqMZtVfHBQmWN__X7DIm X-Proofpoint-GUID: 1INIGoKGFK3TnqMZtVfHBQmWN__X7DIm 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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 * John Hsu (=E8=A8=B1=E6=B0=B8=E7=BF=B0) [230609 04= :37]: > Hi reviewers and author liam.howlett@oracle.com, > Kindly ping. >=20 Hello! Thanks for reporting this issue. > We met BUG_ON in mas_store_prealloc with kernel-6.1 stress testing > environment. version 6.1 or 6.1.x? Which exact version (git id or version number) > According to coredump, BUG_ON is triggered by mas->node with error > number -ENOMEM(0xffffffffffffffd2). > There are some mas_node_count functions in mas_wr_store_entry, and it > seems that mas->node may be set to error node with -ENOMEM if there was > no enough memory spcace for maple tree operations. > We think that return -ENOMEM instead of directly triggering BUG_ON when > memory is not available is suitable, This BUG_ON() is necessary since this function should _never_ run out of memory; this function does not return an error code. mas_preallocate() should have gotten you the memory necessary (or returned an -ENOMEM) prior to the call to mas_store_prealloc(), so this is probably an internal tree problem. >because in reality the tree > operation shouldn't be performed in this situation. There is a tree operation being performed here. mprotect is merging a vma by the looks of the call stack. Why do you think no tree operation is necessary? >=20 > following are the backtrace: > mas_store_prealloc+0x23c/0x484 > vma_mas_store+0xe4/0x2d0 > __vma_adjust+0xab0/0x1470 > vma_merge+0x5b8/0x5d4 > mprotect_fixup+0x1f4/0x478 > __arm64_sys_mprotect+0x6b0/0x8f0 > invoke_syscall+0x84/0x264 > el0_svc_common+0x118/0x1f0 > do_el0_svc+0x5c/0x184 > el0_svc+0x38/0x98 I see this is arm64. Do you have a reproducer? If you don't have a reproducer, I can try stress-ng on amr64 to simulate your workload using mprotect, but I need to know the exact kernel version as this issue may have been fixed in a later stable release. Thanks, Liam