Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp790563pxp; Fri, 11 Mar 2022 15:12:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCPaZfqzPXu37xfwEvO0tP9a7DoY25Y8fhCXBDJnT2oS6l46g998Mup8X/XeXpLXZnAkig X-Received: by 2002:a17:90a:178f:b0:1bf:5f5a:728 with SMTP id q15-20020a17090a178f00b001bf5f5a0728mr13427085pja.171.1647040353287; Fri, 11 Mar 2022 15:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647040353; cv=none; d=google.com; s=arc-20160816; b=oTI8dRmq3pjj0EhGeTQm9pxUJVwX8jPPrmc+eKQ360jkVAdGqpwWzH39E/BtcIQoYF DxC8brBeyofhst8if0k3g7cjPDTyN1xliePfY8iU19Yfosc4GZjcXhYvyAYLLjeuDQd6 UOxQkwqv2yldqifzaTGmIsVsK/Fs4RggbQRT5ZJlruAhvcfjSPN0G5bnGq9FioWROdPX ZzSk4bzNPWw740pHpRVGv2cO/x/LfpPAR/xubQRWC+HtHTVP0LWfwkn/QibT+ocg5x09 RuqorQTRXNMLdKf8bFeOtpmycj17Siu+/FZl0cQ0S7FTqCy6AzvrTetjomVxlPerx+xs c4HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=2hsaR8WAxcqWtbQLCYo/TxbTYR2phuKd4uO3CbSGXis=; b=CqPg7qjQ32NTGch3k5SscwzlsBsWuxSR3SG6vHVitJQbGXBwY8/hv79uJsKy3r9UOG 9CI/kxhnuXEB+ySz4UGLu/nvjXy6enuuNClP6FK8sFFyRFBAzMcMH6vR4k/A+VKL8JZE eG5+LJeqU+HronfRVCs7IRnYuSPJZ+iAs2EooP/33MqNdKHYCIil5Uvi/WxB61CWsm0a RU71EqcaDXPpeXRdxqt3ep3bE4XI0JWHJtTFqYdSYtnvERQPOkCMMDhV04u7CmCzzSsg vYgxKc+PJU4gGA9GvmKoU48a+aqS7U9oLxttWx5tqXkCdN0b0KETirpE/ZobFQCgqGyQ txOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q4jqn7qE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v5-20020a17090a0c8500b001bd14e01f16si9435950pja.4.2022.03.11.15.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:12:33 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q4jqn7qE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12B6D3B3CD0; Fri, 11 Mar 2022 14:11:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345545AbiCKCDT (ORCPT + 99 others); Thu, 10 Mar 2022 21:03:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345520AbiCKCDM (ORCPT ); Thu, 10 Mar 2022 21:03:12 -0500 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715771A58CD for ; Thu, 10 Mar 2022 18:02:10 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2d07ae11462so57665977b3.8 for ; Thu, 10 Mar 2022 18:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=2hsaR8WAxcqWtbQLCYo/TxbTYR2phuKd4uO3CbSGXis=; b=Q4jqn7qEyVL5UGQm48tyWxHXBIKnYgeh4VJEcNABuXL8XnVgyd64deKgPWFzS66j7R g19GwgGrR2Qn0tEHazNj8b5zGGY9w6dYR/QXR3bG0gkvWfu9DJlLW79z0K/C/zsxfTge GcJ5vm2PigirvczYxMY0bKFOqMgstn4HhF3LhKS5zTfBa4NqlI/XoXoEUjMe2v7dxm83 78tk4oqkEHsC95dm3g4GEnbysiblZLmhiaBQwu415BH228ci8sg+b9UrKjafX1FBmrjF +3UHolf80KtUStuJ7TfPlOzTfUAoZ1d5e7HGQhKJXtFMuZ4vYMUHLKLRBrrn/Zia00/l V3NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=2hsaR8WAxcqWtbQLCYo/TxbTYR2phuKd4uO3CbSGXis=; b=cRokBrlTE53oLTXt/U53qzkt4keWmw+2vFwr/ycPMnUhLTIQKeo58nacHFcWOsRBYZ O4/DCJ2zN8vrU7G2DwyOdwlho5csR1EteWWLvWB7weIibBJI/NFPejFx/LRO0fCY5x+m sgC7+5sqP6PSltnZQ+dL6uYETgnRcz5Ca4BDLX7utF04EqyxYqDHwL9tiLSu3Htm7Ldm Ku6p+oPy68GQh6r/1znZ2s/JN3QqOarUOalJpURlgUuXIc9cIxyS1XXk1xNahaQVtzAG dy0BDRr79xiQ3gHaJcsJM6Mj5rwhp4QpVtynLbydwandAxHNLPVJ3Da0LLtvhRp2olxz RDTQ== X-Gm-Message-State: AOAM5338fck1N2lrfnVBtwcXDg6ALBSwVyCnbNHpzED0yR6X52s5tkiL CmnL9wF2a8C7LdC+JMX/pwzXvWagtjtchg== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:28b]) (user=shakeelb job=sendgmr) by 2002:a81:7556:0:b0:2dc:6ea9:8d53 with SMTP id q83-20020a817556000000b002dc6ea98d53mr6501468ywc.413.1646964129540; Thu, 10 Mar 2022 18:02:09 -0800 (PST) Date: Fri, 11 Mar 2022 02:02:06 +0000 In-Reply-To: <20220310092456.GJ15701@techsingularity.net> Message-Id: <20220311020206.qncvybld6zrgmm3m@google.com> Mime-Version: 1.0 References: <20220310092456.GJ15701@techsingularity.net> Subject: Re: [PATCH] mm/page_alloc: check high-order pages for corruption during PCP operations From: Shakeel Butt To: Mel Gorman Cc: Andrew Morton , Eric Dumazet , Eric Dumazet , linux-kernel , linux-mm , Vlastimil Babka , Michal Hocko , Wei Xu , Greg Thelen , Hugh Dickins , David Rientjes Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Thu, Mar 10, 2022 at 09:24:56AM +0000, Mel Gorman wrote: > Eric Dumazet pointed out that commit 44042b449872 ("mm/page_alloc: allow > high-order pages to be stored on the per-cpu lists") only checks the head > page during PCP refill and allocation operations. This was an oversight > and all pages should be checked. This will incur a small performance > penalty but it's necessary for correctness. > Fixes: 44042b449872 ("mm/page_alloc: allow high-order pages to be stored > on the per-cpu lists") > Reported-by: Eric Dumazet > Signed-off-by: Mel Gorman > Acked-by: Eric Dumazet Reviewed-by: Shakeel Butt