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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 587B9E95A86 for ; Sun, 8 Oct 2023 01:33:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344269AbjJHBdW (ORCPT ); Sat, 7 Oct 2023 21:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjJHBdV (ORCPT ); Sat, 7 Oct 2023 21:33:21 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D0792 for ; Sat, 7 Oct 2023 18:33:19 -0700 (PDT) Received: from dggpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4S34P42Hdfz1P7kb; Sun, 8 Oct 2023 09:30:48 +0800 (CST) Received: from huawei.com (10.175.113.32) by dggpemm500009.china.huawei.com (7.185.36.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Sun, 8 Oct 2023 09:33:17 +0800 From: Liu Shixin To: Catalin Marinas , Patrick Wang , Andrew Morton CC: , , Liu Shixin Subject: [PATCH v2 0/4] Some bugfix about kmemleak Date: Sun, 8 Oct 2023 10:33:13 +0800 Message-ID: <20231008023317.3015699-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500009.china.huawei.com (7.185.36.225) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some bugfix to improve the accuracy of detection and the print info of debug mode. v1->v2: Split the first patch suggested by Andrew. And fix the format of the last two patches suggested by Catalin. Use mutex in patch[3] because there are memory allocation with flag GFP_KERNEL. Liu Shixin (4): bootmem: use kmemleak_free_part_phys in put_page_bootmem bootmem: use kmemleak_free_part_phys in free_bootmem_page mm/kmemleak: fix partially freeing unknown object warning mm/kmemleak: fix print format of pointer in pr_debug() include/linux/bootmem_info.h | 2 +- mm/bootmem_info.c | 2 +- mm/kmemleak.c | 37 +++++++++++++++++++++--------------- 3 files changed, 24 insertions(+), 17 deletions(-) -- 2.25.1