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 3026CECAAA1 for ; Fri, 28 Oct 2022 11:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiJ1L7v (ORCPT ); Fri, 28 Oct 2022 07:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJ1L7r (ORCPT ); Fri, 28 Oct 2022 07:59:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4FD767B for ; Fri, 28 Oct 2022 04:59:42 -0700 (PDT) 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 35375B829B8 for ; 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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