Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2257366rwi; Fri, 28 Oct 2022 05:07:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vdCGy3CnXOff36+FDBpTVBuY097LDHnuPs97Gl1gu+fdAjA97+ZU06eX0sxX7f8Y2jdSs X-Received: by 2002:a05:6402:2685:b0:462:73aa:c23d with SMTP id w5-20020a056402268500b0046273aac23dmr2617635edd.390.1666958828641; Fri, 28 Oct 2022 05:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666958828; cv=none; d=google.com; s=arc-20160816; b=kUoBU+UAGlbbqua8pcktsVdfNdqgE0jXdwuIHr32hwOOpIGwyD7wi9hyoxbJMp3S2h +yK34pok2a4BhLrqFRvFvMyEV3Ay7LyrpLTeEe5E8GqAAFo2YTTXqC+nsg5wrbKw4L2t fnBHqVpzodjfHQAiZKBCuWP7hrghN2MgM3YLoLgcOxLmA0XktK2d9cROxKbWYqcaC5RC hbD/nPytAkpraMdo15giQYfay4JoE7ck9Pk5hsBZzbVX1fC2Lz2/MeB4+ARGUWPo085h PX+vYMxINpqlGhyuBKt7wIuMKG96uSGZepZjfTvNQ3FJCqdo7wb609+dPEYBPOGJ94ik wIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oH+dkc1go2YbFRykkatDSpOD4jMmCYHzwfljOzD1GKs=; b=zMm96wyc0fkvaeYNT1ffKDmxzyXWGpi4vJzWdB7dsVUzzSP72MsaQRt78MlRrP8Pk1 w9iQDmrDUvZbT+dcb2dQxgiUcKfze0tFT25xbeoAFMEYZk77RtFSSy88pbL+htRWdJHW nkZawwGBOpyIxYcJEQSGNoKepK5ZpwD6iSOtZEW83kDGYMjXiNE3hLhH781SzOSuL6Ys A7MzvdBd6T8atvhsUDrwZy0DILgkZ10Pn/z9dsrRUtPqC62QwrkguY/OvWaDGMqgf98S DXxT50djDgEQLJE0/ARWFQhNPtzaMmkVPsEObNxaqmArLDu7Xyuf7aYAzohQZteCtgUj j44Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy15-20020a1709069f0f00b0078d2a99972fsi3380826ejc.316.2022.10.28.05.06.31; Fri, 28 Oct 2022 05:07:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbiJ1L7u (ORCPT + 99 others); Fri, 28 Oct 2022 07:59:50 -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> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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