Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1392286rwb; Fri, 19 Aug 2022 02:55:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Rb6YE6TK9SXWkniYoE5OHUHLD3zCgBMgUV1MAwvdSCjswIHyGhLbRqyJhT95f+CIhUm3q X-Received: by 2002:a63:5348:0:b0:422:68d6:ea3c with SMTP id t8-20020a635348000000b0042268d6ea3cmr5815088pgl.73.1660902956494; Fri, 19 Aug 2022 02:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660902956; cv=none; d=google.com; s=arc-20160816; b=kxRV0PqFv7SJKAJ+HEg5gIVXAb2r/pLSmWTS/bigKZIXw/lNOXOO1CmdCVF0Wd38eb Xd7tsa7jRhEM2QVJwGAAflns+ZrNAnkd996mqlJOo/0p6WfeLSLR7FruDJoWEgo8VAdS ayq/sM4vLrQOOg+tAW+8dHlpHnG0ISHgolI5p9dhJ7npSTsZ3Znij+qe5pwxCJfLx3Nu d7qjL6gO9i/5hZcKOa+AAKBy7CGgxSGBTJ5CzsiDKi54x4/ox8AY4iVEeQkr+ufXrJ2n D4RYbfSNRI2MMPlepqpKTH+CoIHQ91LBbciyyuNO2GFltl+aSyF5JMgUx6Cn2TjbvSEN 1a8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=nHuCigZsfkztHdHSAYo+Zt0I9v0bqgCkRJsF8FKNQeQ=; b=bwhmgbM1DNTa0/tpXqsfJnRw5li2V6NoBsUFD6J+qNcGdZzJ7lSwfCYwmdlq25xPNd D+cfUK1L5tM5T4vqL4gdC25ctgXlazxQrl+YXyNxynJHGwerTN2D/a7IBSmiMkdMZDIn KRukTb4ISd65u6jiAV5NRdb7weXov67SFsiTbSAexJQ4eYllOIQrIQx9ekHiMxHTZVhD ZJdlDX5XO5WMqW/e0Y8BlOmIOlpTd8Dvfr857I9g/92bLbz1ROaxQX0tszXYRmKlgcDJ aFf5/0pVcM8rpfOjM6VeyPOBsTFBy9GOLL57aEwHr1l0fgDPhLzcs1o3d0HmjsLZwIK9 MnmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OdY2Q8zR; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 25-20020a631759000000b00429e0a469c9si3671683pgx.378.2022.08.19.02.55.45; Fri, 19 Aug 2022 02:55:56 -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=@linux.dev header.s=key1 header.b=OdY2Q8zR; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347482AbiHSJte (ORCPT + 99 others); Fri, 19 Aug 2022 05:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346902AbiHSJtb (ORCPT ); Fri, 19 Aug 2022 05:49:31 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E78C5720E for ; Fri, 19 Aug 2022 02:49:28 -0700 (PDT) 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 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,SPF_HELO_PASS, SPF_PASS,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 > 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