From patchwork Wed Sep 27 03:59:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Shixin X-Patchwork-Id: 13399833 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 68B3BE7F154 for ; Wed, 27 Sep 2023 03:06:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C67FC6B00DC; Tue, 26 Sep 2023 23:06:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C18546B01A1; Tue, 26 Sep 2023 23:06:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B07096B01A8; Tue, 26 Sep 2023 23:06:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A1A466B00DC for ; Tue, 26 Sep 2023 23:06:17 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6F7FCB428E for ; Wed, 27 Sep 2023 03:06:17 +0000 (UTC) X-FDA: 81280888794.11.5BFD4D4 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf07.hostedemail.com (Postfix) with ESMTP id 883F74001B for ; Wed, 27 Sep 2023 03:06:14 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=liushixin2@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695783975; a=rsa-sha256; cv=none; b=jam2CeOj8chvp6NYSD7uhz/HnkMj4xtVHWaEUVKA5OWpW3UomJP95qdMAUq3QKSTEds1rr UIV5a+UWKCZt/wEHOlCDpDHX27IlhC589rS5/pRGh2H4UfjzQOqzMBroWAlPxth0wExg+E qo470nu4QUO3ZrAavJyQP6UwfdWQhYc= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=liushixin2@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695783975; 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: references; bh=t2pe1VMnRSHO7oQLSOqsdwswm6yFrclcG0t/wyv5ct0=; b=axWPPWhMX+ol2aYUiocMDWJKu5DZ3FhJbzdsDR6jH0TEaJHmB2pCDtf4mTSJv3lZr57reX nVxbCkMKfTDAB/o4K4NycoyaFHM6WPGfseAPUuSGPPhZtCcaaOfCGvW86iTlHEXXZI/inT ETu5cuaKQ5nCzKbDZHgTBELtftyDeOM= Received: from dggpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RwLzZ6HT4z15NV5; Wed, 27 Sep 2023 11:03:54 +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; Wed, 27 Sep 2023 11:06:09 +0800 From: Liu Shixin To: Catalin Marinas , Patrick Wang , Andrew Morton CC: , , Liu Shixin Subject: [PATCH 0/3] Some bugfix about kmemleak Date: Wed, 27 Sep 2023 11:59:20 +0800 Message-ID: <20230927035923.1425340-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500009.china.huawei.com (7.185.36.225) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 883F74001B X-Stat-Signature: u8rzfc9nym11mxi7sk7q3g7w4dx5it9m X-HE-Tag: 1695783974-587797 X-HE-Meta: U2FsdGVkX1+b+0hQRfIVRIAlP583AhCaWbAhk5zU/oyJcXCdOBocOZyXjbBVTC9o3tznR5Ni50NmIPQ65/+X9pQs8wvdQC9udPWw1AtLkiLGKXK9O+z+J3tdnEsgmeYGBkLkd/+L9PBlhotmzqxJdqEZQpJn2lc0p+gSOpWsJ+RdXnSyjJDrtBSKzGfxjRovQlIhjTCgcfGY89GrS6Qw5F2SVL0vGZrRV3EEw7PcwEV47ujNp1nboxyXgJr4H+XI5bhB6z72KDrfJ1/IbTNvWT8K+wg0Swg1fWRnta80kKPBI2mIogI2CORqaZtFzTLwXMT7LgZBM17VgmfX5en1vkfUNLle/NUJyWnS0WcX6fR/AZVphbw5lo8GNQ7F+fLh3zz0pRIGX8OGWiWr1XINKfWJlNLbGBvv4WGD8FarEwSlrT7RacfN6EporjJDJjnCmIgz2LEZe960mPSPsopJLIROkX35BQ+Yg5ga7/ofHM6TYbOue5VJlQ3VQoXqMGx0/aPTP6CsSIRFH6+cEfjf/04v4ZTGQ7mzMCyImBENgh+rss9pFT1sTgfpk4W+dloJpOOlq0807S14Wp/c1levemKY65RtJe9AFPuYi1Q3s52ARWuYe9VadBu4PtWoH0cbFXhKg4YzmbdZrj7JEmMaF8mU8FAe1bddyzZ5EvGdBMoV/E+1wdmxE+8jLxfarePTFUhc/z+frRETVITs9/jU+j1b7ZroxQKohayt90tqjFYU/L4BTjWaYtuHWjgjINyWGEAV6wJ5LT1K8pJZNMpJWqGUv3QL6tGSXwJZ2XhiyDo/lGMaWUPjApAiGeYjgcRw4+KuQ7dWGXF3jGHAw+JLezyX+S+EvJvregrJ/d/okhOugGyhde7/Aio7e+nkBdpaqgN4CoNgUTqSC5kkXFoYncUheX2JLiUDj+gwyQYp/HKS8B400bmDNy/rWnhM6WvnKYdnLvbnuUloxSzW2p+ a7JQJ+yt E2zVT9MUwCTyQsg4/etBXp801TtWPxQLK5WcswZGT2l46aBL+Y2R+Xu45rwAociKjcBJ2x0qBS6zvsa17V3NpUuiB/BCPBPjRwmtAoJ6ltmqVW8uZwLpwfceg5iw7Dqn+k1JIUhfWvcJy1oDPlDwCpeKPjmGtN3Del3p7opcTA928PeqRb4nZhCSERg== 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: There are three bugfix to improve the accuracy of detection and the print info of debug mode. Liu Shixin (3): bootmem: use kmemleak_free_part_phys in free_bootmem_page/put_page_bootmem 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 | 34 ++++++++++++++++++++-------------- 3 files changed, 22 insertions(+), 16 deletions(-)