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 5E61AC38A02 for ; Fri, 28 Oct 2022 11:59:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF7266B0072; Fri, 28 Oct 2022 07:59:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BA7736B0073; Fri, 28 Oct 2022 07:59:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A96C16B0074; Fri, 28 Oct 2022 07:59:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 986FA6B0072 for ; Fri, 28 Oct 2022 07:59:43 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 73B5BC11CE for ; Fri, 28 Oct 2022 11:59:43 +0000 (UTC) X-FDA: 80070213846.18.E23F1B9 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf11.hostedemail.com (Postfix) with ESMTP id CB13740041 for ; Fri, 28 Oct 2022 11:59:42 +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 412D2B829B9; Fri, 28 Oct 2022 11:59:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B769C433D6; Fri, 28 Oct 2022 11:59:38 +0000 (UTC) Date: Fri, 28 Oct 2022 12:59:34 +0100 From: Catalin Marinas To: "zhaoyang.huang" Cc: Andrew Morton , Matthew Wilcox , Zhaoyang Huang , linux-mm@kvack.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com, steve.kang@unisoc.com Subject: Re: [PATCHv2] mm: introduce NR_BAD_PAGES and track them via kmemleak Message-ID: References: <1663730246-11968-1-git-send-email-zhaoyang.huang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1663730246-11968-1-git-send-email-zhaoyang.huang@unisoc.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666958383; 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: in-reply-to:in-reply-to:references:references; bh=oH+dkc1go2YbFRykkatDSpOD4jMmCYHzwfljOzD1GKs=; b=7LxZYvD70rA7CE69mxbE/QYYi2RtnNUvTMc8HsUZiVIL0q/SIf3gqcqKimm7zLjezjEDDp ZTvvhf3Xb82eqizaOm43hicp9EWseKqwfIs0DHwdPTLrMjnbJrSOIBpp7rescMWyG6MNkS VhmvO+h1y/0lA5i2IJiAqL5mJiUSx5M= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf11.hostedemail.com: domain of cmarinas@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=cmarinas@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666958383; a=rsa-sha256; cv=none; b=rd4lJccdTfl7Qs3jI6xXN+yhBiQX/Z2bS+KiIZe87K2zxAWUQq3Jvz/PFctlZpee58oO9f QqSQMpZX+2XLgHyubMHQY8FmtmMGCOZmaUkw7tVntvKjc2F70Ueey6zCHMAiJSWRhqvEfN xsW8LqoROIOAzGcL5XY9HTLuG1Fzlbg= X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: CB13740041 X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf11.hostedemail.com: domain of cmarinas@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=cmarinas@kernel.org X-Stat-Signature: sd5ha3hta7mfeyjiyc9wkf9kx9f3kojp X-HE-Tag: 1666958382-948230 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 Wed, Sep 21, 2022 at 11:17:26AM +0800, zhaoyang.huang wrote: > From: Zhaoyang Huang > > Bad pages could be introduced by extra reference among high order pages or compound > tail pages which cause the pages failed go back to allocator and leaved as orphan > pages. Booking them down and tracking them via kmemleak. > > Signed-off-by: Zhaoyang Huang As I commented previously, I don't understand what bad pages have to do with kmemleak. Well, you could argue they are memory leaks but kmemleaks are about logical (software) errors rather than hardware issues. -- Catalin