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 308BCC43334 for ; Tue, 5 Jul 2022 21:20:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE9796B0071; Tue, 5 Jul 2022 17:20:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A98D16B0073; Tue, 5 Jul 2022 17:20:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 988C88E0001; Tue, 5 Jul 2022 17:20:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 8606B6B0071 for ; Tue, 5 Jul 2022 17:20:05 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 5E1658035A for ; Tue, 5 Jul 2022 21:20:05 +0000 (UTC) X-FDA: 79654313970.03.E406D90 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf30.hostedemail.com (Postfix) with ESMTP id 784D480057 for ; Tue, 5 Jul 2022 21:20:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 16E38B819A4; Tue, 5 Jul 2022 21:20:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 586A2C341C7; Tue, 5 Jul 2022 21:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1657056001; bh=GuMN04dM0yPy/T7mcoypjTe3KAFdKDQ5GLqvAJa+Hn0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bLd4UNH9Hv6qP6cPuZH1KeLmWgLGqLsg9YNVjQrobGOajvvvCimp58tSwzK0ZGbO4 6+7d7cE5vxvBsIZF63YxJL0SE0tJk7GUNJOVTkBUYXvUkhfwjRyATyVje3zi83ZyXi nfTyVsPEXdlbk6plXBgExryQgBmCacImhFRh5Jyw= Date: Tue, 5 Jul 2022 14:20:00 -0700 From: Andrew Morton To: Patrick Wang Cc: dennis@kernel.org, tj@kernel.org, cl@linux.com, catalin.marinas@arm.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: percpu: use kmemleak_ignore_phys() instead of kmemleak_free() Message-Id: <20220705142000.4679acaaf1238a73a555ea58@linux-foundation.org> In-Reply-To: <20220705113158.127600-1-patrick.wang.shcn@gmail.com> References: <20220705113158.127600-1-patrick.wang.shcn@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657056004; 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=zanCDp5XrWLqziEUmGASmvFwegodt9tesp0I5ag3PeQ=; b=yWy//AxioUtT04si+4RGdhMTwD8C0AcBKPMPZFwl51j3q3V3sF5BLWf7Z3nCSzW5Fc3j37 LIJk0mKB6jrFNsVRcwG4/yWIGzYqz7x0iFCCje5Xd3zL/y0cfJrPAscQHKmjnB3p2SYrHh tGJ01xf3HpehhxK54FempY2imeob2Uk= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=bLd4UNH9; dmarc=none; spf=pass (imf30.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657056004; a=rsa-sha256; cv=none; b=mx+8S+QBXUt2hre/YJdXGe5tYIQmAM/oPqc+wYWtgnH+DGVy4ynM/6EMCPuw+BDSJZq0xZ axJSVPSN0VtbjDvZKe7g/Fw/28llUrm41dbmeIUAaGTuU8zdyQ1fjDjtLexVVqt/Zq2C4e 7Qq7iYNn0tummYsHS5cgQCelHUoKI9Q= X-Rspamd-Server: rspam11 X-Rspam-User: X-Stat-Signature: sj951jse51hmifh99ondoc4o4itonzk8 X-Rspamd-Queue-Id: 784D480057 Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=bLd4UNH9; dmarc=none; spf=pass (imf30.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-HE-Tag: 1657056004-275546 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 Tue, 5 Jul 2022 19:31:58 +0800 Patrick Wang wrote: > Kmemleak recently added a rbtree to store the objects > allocted with physical address. Those objects can't be > freed with kmemleak_free(). Use kmemleak_ignore_phys() > instead of kmemleak_free() for those objects. Thanks. What are the user-visible runtime effects of this? And are we able to identify a commit for the Fixes: line?