Message ID | 20231018102952.3339837-3-liushixin2@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 DCA7DCDB483 for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 09:30:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A4EA8D0151; Wed, 18 Oct 2023 05:30:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72E3C8D014C; Wed, 18 Oct 2023 05:30:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55ABF8D0151; Wed, 18 Oct 2023 05:30:40 -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 430BE8D014C for <linux-mm@kvack.org>; Wed, 18 Oct 2023 05:30:40 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 18415A1115 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 09:30:40 +0000 (UTC) X-FDA: 81358062240.06.8F21E2D Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf14.hostedemail.com (Postfix) with ESMTP id 61A17100026 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 09:30:36 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.189 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=1697621438; 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; bh=uxAR8iPpyzK1PAA01I33pQ2SqFi5A2TOT/zKa9EjxMQ=; b=bbCkspqjeGi5Okl/SUon4VQig7G4PBQPdWgluk6vFF4ftpjqfziN6Dnx1vj6d1nYSIRj9p crBb+Mnh/INfYDz58554e01KxzQpZ5bEWqw4148uoOnq4SaCi0pz6gFGaYHlopOuj8Tb+f mmxfc6ALQIM0xf8pAQ5GfDZzaQQ0mgU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697621438; a=rsa-sha256; cv=none; b=KMVRxppSoq6eek5yfrbwi8+zQVNuOOyCQhMf+e9TrTUGFYCugJDWJMWXl/Bqzgqr+V4N2M S8zojRV1CoZeUahDPEls/6oKJOjISQIS1ynWFMADlpIGw9/RS6pmZIKFkiSj5n5oWAx6Cl x9TuPRvCKQ5Ga0GgoKoubF3cI7Bcs1g= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=liushixin2@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from dggpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4S9QT12vG6zLp2r; Wed, 18 Oct 2023 17:26:13 +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, 18 Oct 2023 17:30:18 +0800 From: Liu Shixin <liushixin2@huawei.com> To: Catalin Marinas <catalin.marinas@arm.com>, Patrick Wang <patrick.wang.shcn@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Kefeng Wang <wangkefeng.wang@huawei.com> CC: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, Liu Shixin <liushixin2@huawei.com> Subject: [PATCH v3 2/7] bootmem: use kmemleak_free_part_phys in free_bootmem_page Date: Wed, 18 Oct 2023 18:29:47 +0800 Message-ID: <20231018102952.3339837-3-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231018102952.3339837-1-liushixin2@huawei.com> References: <20231018102952.3339837-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500009.china.huawei.com (7.185.36.225) X-CFilter-Loop: Reflected X-Stat-Signature: ochmqc7hsetgphemuhz75ftp79xk53u9 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 61A17100026 X-Rspam-User: X-HE-Tag: 1697621436-333149 X-HE-Meta: U2FsdGVkX19UExpK5nDptzVWPL2Cy4dNl1ZJcCIn/jz7qUBFAEmA53b9y4tX3wBAGFYba6U+HxTMRsqgjDzX6lvh11shhN7VMJeglT85ftBtK39zPUgBPbu91R+bUXjpIQt9QGuv0gJ9r8Pzg0l078u24NGgZZkvYUploqV2dXWpPLwhzDPQONabEH6OmPqjOtBYnIwljDFj4kGzEO1WR7RDIwkrrnERC7mouSMLB4QsPN3fHo1gQQsSjfthRIW6LAYrRfakp8Xm/4PvkkOkHR5T1nSupkZltVghHGjq6bVJal96rWu1e4GpoVu4ZQqzELoXicuuhCJUcWlqahEcq3OWEtZy0gys9na3SA74vMqUChryMwR3LyqQBIRWp1AHN8N36Rnbu9IuFyfqN5cmcBkCxRwiR9q5oCWz6e6V5ZS6elI9XJJlKcVvFOTSdxgnzAvm5dsMZgcnndqXiYoYkghjTGE1XtdwE6MqVIHDY80VEIhYFNdaTt1YnGOQmR4UMR5wOf7O4YyUf4tl7EdFstm00lRrn7sfeLhV19HiVwpIzEc++MXNuQAqchjhdLK8ZI4HJzu08JSMHuo6Ik41xI04UNJHtLFaJzwlRuhQQbXuvyw79ZkVSIRAB5spcqPE1q1G6EEV39Yp1ji/BtI7ZA8QjEuZDpoYPVpDUzXMSzUp0f+OOy0vnQp+5O97QOpET7T2f+GbW0BHORDj4yAxOj8WdXXWqf95fkYPx/tg3yWyWuxlQxGe7c96pWXme0sZiszX8Vx0r4G58blQTKNtDXJwVdmOabIuM4tbaCmbRFkVA2rs+LY8BL+tkPGrNMTLZBiwy8geeRPTMb5uYegGcwU0iy+RVN8S4bk/HIvFtwmXHxtcP+QvZPh+LccVsTmNQTlbJt+7+NF5DGwyAuJj3/fR5idz98SD43MTeWI0qiBde4MT3NU1IRnxUTtPF8poZxJJw+kdy6Hi4a2wFTt sGlZDdQh 008KGiKtDdoC2JEI7Iw1hZUJxk9ibeVeXUFRRnrbduVmkuFO05qf/ZyLZZxGsfxR68O1Tp2VI1RJPx4nA268ApIC2QSA9R+O86QM8PdnDsyc29d7wMzG7ppwy2xBFV8JX6VsQmkMqTwZ6fszaX5jdDYwMuCNzJsS1IIR6JipIbx5Z5vTaM2tRLbveX3H9jABmMt60xhsph3Y6R8ykRJoNQoljFwGQj+8E5vQM2FkiCbnAtTbo5RAOyhX8o+JAKXsa0tp9TlysZ+guU5zcwx+vTe/knF7EXJAUUMyJECioH4Hfn0kh42Z4HH9Mcaa1jiVb5dYJ 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: <linux-mm.kvack.org> |
Series |
Some bugfix about kmemleak
|
expand
|
diff --git a/include/linux/bootmem_info.h b/include/linux/bootmem_info.h index e1a3c9c9754c..cffa38a73618 100644 --- a/include/linux/bootmem_info.h +++ b/include/linux/bootmem_info.h @@ -60,7 +60,7 @@ static inline void get_page_bootmem(unsigned long info, struct page *page, static inline void free_bootmem_page(struct page *page) { - kmemleak_free_part(page_to_virt(page), PAGE_SIZE); + kmemleak_free_part_phys(PFN_PHYS(page_to_pfn(page)), PAGE_SIZE); free_reserved_page(page); } #endif