Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp750883pxp; Fri, 11 Mar 2022 14:09:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKELrCccRsOPXYlpUy3vrgzXOUo72ohx6jDUNOE3dGF42FCtP7WOkvzwQUQltQ6ScGCJKn X-Received: by 2002:a05:6a00:2485:b0:4f7:37cd:d040 with SMTP id c5-20020a056a00248500b004f737cdd040mr12261122pfv.55.1647036579377; Fri, 11 Mar 2022 14:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036579; cv=none; d=google.com; s=arc-20160816; b=KVcnB0nJMG/jLuTMGLwOBZoZqWJ/BibN2XU2ymLE2G+EnwE8aiGKm0q3yVhmuDxMuX nCoB4KEB/QMSRYSBkFagh1dp+R4rlGrgr9pCSLX6gkzawLCmDvzEbsubdIAy0gNkQEQF lZ25tbYiJHiXwa2XDTWnhWQME4Hm/F2SyWt09dw1NwBSXNEPRoAaUC1SLJsc4asDjTj6 e7NnwyfQZumOT+JrApYD6FjqtXwvFjKGzTXTEfCbAZ6PQvgHWj4EBoCiKpMa458Cn29+ h8kb54PjjgxZ4lhUMWcbuWzgbrnBjBdRaemh377Rc7DLGkdqeEn+O3FFE3DPzvw3kRMo sznQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=IgYsa93xt0GY9NquD+Rifu92tu5q759OSHLEWka1V1c=; b=m3il/iregXv8IpMbqY2p9yb86E6Y4Iv94v6x5Z/Csvx2j3PfnzKivjpYt/zmuYQDsR RCzlNsGO1WyIUi3UO7VnrNAfKv5Y7TMfmHAw437ZoN4ME5hhLc/ABUBdmQXhWaUJxdNq pbNz/FkZ6Z13aVao3wQmaSrDmoQAdfQ+LLjXlfEkcXOGlRkaJ9kgoLdSqvPWOtUJ+QBo ZGQNmID0XYLcYAduDxQCCd52LL6MYeC4MgVWILBeDT/k8U8/Ttg2PXjyXPdfjwRafFWr YKrZp6VjHRvxQiDXWyPHrd4+ZMWaHH9igjp47S6jN+Z0VkFTf30gmpAiE52aq/Whc9t3 1WCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=TAQ2zI2P; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 30-20020a63195e000000b00380f8fc5391si4670820pgz.710.2022.03.11.14.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:09:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=TAQ2zI2P; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D2FC30D9BB; Fri, 11 Mar 2022 13:23:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237478AbiCKQ7D (ORCPT + 99 others); Fri, 11 Mar 2022 11:59:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347005AbiCKQ64 (ORCPT ); Fri, 11 Mar 2022 11:58:56 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 784F34EA1A for ; Fri, 11 Mar 2022 08:57:52 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0EE921F37F; Fri, 11 Mar 2022 16:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1647017871; h=from:from:reply-to: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; bh=IgYsa93xt0GY9NquD+Rifu92tu5q759OSHLEWka1V1c=; b=TAQ2zI2PEEPgL4weLoI8+rSAKd9ncxDYA80GxH7LiGLG3ppmFAxcisd/CDUFcyzAecXkDD tWyiBorYE8fJKwjvKvceGJ2ykToOgbJGYTOB66BqxqQwHclOcAIoouJAZAcyNRjwG/iXqn sc74fekLIRG3hVv83iND1rNbFIjXX20= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1647017871; h=from:from:reply-to: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; bh=IgYsa93xt0GY9NquD+Rifu92tu5q759OSHLEWka1V1c=; b=7FyObfeCbchdfIZG8lS4jiAmsvDxu5WSuF1V/D7FuDpQNa4Ss8NuJPZV5+too1CH1nnP/Y mqh6P/EA1sV58MAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C554013A95; Fri, 11 Mar 2022 16:57:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id J5ulLo5/K2KuNQAAMHmgww (envelope-from ); Fri, 11 Mar 2022 16:57:50 +0000 Message-ID: <28aa571b-6dba-feb0-b888-4d18c9b0ffa1@suse.cz> Date: Fri, 11 Mar 2022 17:57:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] mm/page_alloc: check high-order pages for corruption during PCP operations Content-Language: en-US To: Mel Gorman , Andrew Morton Cc: Eric Dumazet , Eric Dumazet , linux-kernel , linux-mm , Michal Hocko , Shakeel Butt , Wei Xu , Greg Thelen , Hugh Dickins , David Rientjes References: <20220310092456.GJ15701@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20220310092456.GJ15701@techsingularity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 3/10/22 10:24, 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 Acked-by: Vlastimil Babka