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 A6DA3C32771 for ; Fri, 19 Aug 2022 09:49:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C34658D0003; Fri, 19 Aug 2022 05:49:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE48C8D0002; Fri, 19 Aug 2022 05:49:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD34E8D0003; Fri, 19 Aug 2022 05:49:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9DC608D0002 for ; Fri, 19 Aug 2022 05:49:29 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6B453809F1 for ; Fri, 19 Aug 2022 09:49:29 +0000 (UTC) X-FDA: 79815869658.16.1195822 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by imf29.hostedemail.com (Postfix) with ESMTP id D16C512001E for ; Fri, 19 Aug 2022 09:49:28 +0000 (UTC) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1660902566; h=from:from: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; bh=nHuCigZsfkztHdHSAYo+Zt0I9v0bqgCkRJsF8FKNQeQ=; b=OdY2Q8zRcDEaSNIqqjQz2zryOYf+5hfNEydhyN3BQFFH/5F17XTv9oz1Gul/HYBfpDM/+c 5Tb9Mu48inie189VI8LAwWjwW9ng5LIA6yGdQ8+WrUDjweDGb9b/iUrse22olrPyRzlA4O 8JUtDnaIMbRthn6S0E2nawPnIapnTVM= MIME-Version: 1.0 Subject: Re: [PATCH -next v2] bootmem: remove the vmemmap pages from kmemleak in put_page_bootmem X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220819094005.2928241-1-liushixin2@huawei.com> Date: Fri, 19 Aug 2022 17:49:20 +0800 Cc: Muchun Song , Matthew Wilcox , Mike Kravetz , Oscar Salvador , Andrew Morton , linux-kernel@vger.kernel.org, Linux MM Content-Transfer-Encoding: quoted-printable Message-Id: <9B9B1BE4-3D6F-4D68-8741-8888AA2FEFB1@linux.dev> References: <20220819094005.2928241-1-liushixin2@huawei.com> To: Liu Shixin X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660902569; 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=nHuCigZsfkztHdHSAYo+Zt0I9v0bqgCkRJsF8FKNQeQ=; b=FOL3DTtq08WpeG7zu5lgqmGmVj9BiFNLHsYdvUA8UBBVHJ5SNDrQma03dILT7u2TVwOibB 1metZXNsq0Hdxo94nGOGyIW3bVTJBTETTV9TuPLA9oTjW4gus9rj4I1OWQ0gtUcl7tFgOb HQP8351AYM9igpBg5cMYdlpURcIn34g= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=OdY2Q8zR; spf=pass (imf29.hostedemail.com: domain of muchun.song@linux.dev designates 94.23.1.103 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660902569; a=rsa-sha256; cv=none; b=Gwy2NAHFapEfsbDuJrGwMQUew2dJXQT+gSVvIaMqxgNxvgQD5ADXIZAx1lQqdufyHIqLsv DZIRY+gC0bxOYvttHY9MrnF6LayagJwmD7dRVooC2y3YSyKqu7l0E4CawNIbmfOi3qesIx GgHheYDJ4Lf9oEAB5ZMvSNKSdJU+FYc= Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=OdY2Q8zR; spf=pass (imf29.hostedemail.com: domain of muchun.song@linux.dev designates 94.23.1.103 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Rspam-User: X-Rspamd-Queue-Id: D16C512001E X-Rspamd-Server: rspam02 X-Stat-Signature: d8bk3dmznj1yg4wusep7b6998mupyrxi X-HE-Tag: 1660902568-483645 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 Aug 19, 2022, at 17:40, Liu Shixin wrote: >=20 > The vmemmap pages is marked by kmemleak when allocated from memblock. > Remove it from kmemleak when free the page. Otherwise, when we reuse = the > page, kmemleak may report such an error and then stop working. >=20 > kmemleak: Cannot insert 0xffff98fb6eab3d40 into the object search tree = (overlaps existing) > kmemleak: Kernel memory leak detector disabled > kmemleak: Object 0xffff98fb6be00000 (size 335544320): > kmemleak: comm "swapper", pid 0, jiffies 4294892296 > kmemleak: min_count =3D 0 > kmemleak: count =3D 0 > kmemleak: flags =3D 0x1 > kmemleak: checksum =3D 0 > kmemleak: backtrace: >=20 > Fixes: f41f2ed43ca5 (mm: hugetlb: free the vmemmap pages associated = with each HugeTLB page) > Signed-off-by: Liu Shixin Thanks for fixing this. Reviewed-by: Muchun Song