From mboxrd@z Thu Jan 1 00:00:00 1970 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 6017EC433F5 for ; Wed, 27 Apr 2022 20:22:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 960136B0074; Wed, 27 Apr 2022 16:22:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 911256B0075; Wed, 27 Apr 2022 16:22:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7FF8D6B0078; Wed, 27 Apr 2022 16:22:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 737B26B0074 for ; Wed, 27 Apr 2022 16:22:51 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 51A4B28E21 for ; Wed, 27 Apr 2022 20:22:51 +0000 (UTC) X-FDA: 79403782542.25.1E796B2 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by imf04.hostedemail.com (Postfix) with ESMTP id 1E12440067 for ; Wed, 27 Apr 2022 20:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651090971; x=1682626971; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=o7mdpqidEbyBiGY8I8MMBjTXIWBYfhuHwykDXnN9r5w=; b=udBwjrtWAheN25B7rfOqLSJ2Edb2S6hfyBaXVNCrx1lTpiroxGvdtVz1 4RVAPIwzkgAZhMHjN/uIMzYsS6jF/+YQfv3OJlH5EXgonEzFtEEiz0LC9 levAl8m/GrlFM4IjKEm9VLfCA92WtrrVzUVsHu0mNOS+wIF23VNVHUd1r c=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 27 Apr 2022 13:22:49 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 13:22:49 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 27 Apr 2022 13:21:48 -0700 Received: from qian (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 27 Apr 2022 13:21:47 -0700 Date: Wed, 27 Apr 2022 16:21:45 -0400 From: Qian Cai To: Liam Howlett CC: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , "Yu Zhao" Subject: Re: [PATCH v8 00/70] Introducing the Maple Tree Message-ID: <20220427202145.GA2047@qian> References: <20220426150616.3937571-1-Liam.Howlett@oracle.com> <20220427161033.GA1935@qian> <20220427165139.5s3qcj2u5vqrvwlc@revolver> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220427165139.5s3qcj2u5vqrvwlc@revolver> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1E12440067 X-Stat-Signature: drpyrjjtty6r4yruj7g7rgbatp59gea9 X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcdkim header.b=udBwjrtW; spf=pass (imf04.hostedemail.com: domain of quic_qiancai@quicinc.com designates 129.46.98.28 as permitted sender) smtp.mailfrom=quic_qiancai@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com X-HE-Tag: 1651090965-733306 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: On Wed, Apr 27, 2022 at 04:51:50PM +0000, Liam Howlett wrote: > Thanks. This is indeed an issue with 0d43186b36c1 (mm/mlock: use vma > iterator and instead of vma linked list) > > Andrew, Please include this patch as a fix. Even with the patch applied, there are still thousands of memory leaks reports from kmemleak after booting. unreferenced object 0xffff400259bd6d00 (size 256): comm "multipathd", pid 2577, jiffies 4294915929 (age 2370.384s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: slab_post_alloc_hook kmem_cache_alloc_bulk mas_alloc_nodes mt_alloc_bulk at lib/maple_tree.c:151 (inlined by) mas_alloc_nodes at lib/maple_tree.c:1244 mas_preallocate __vma_adjust shift_arg_pages setup_arg_pages load_elf_binary search_binary_handler exec_binprm bprm_execve do_execveat_common.isra.0 __arm64_sys_execve invoke_syscall el0_svc_common.constprop.0 do_el0_svc