Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4499871pxb; Tue, 31 Aug 2021 06:45:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9poUFsSsT3FR57FjS7eFtp+B22CywQO/6F2mSHRxcRBYmVXrQafRJJF2KdUhPIGtC0cgC X-Received: by 2002:a17:906:368e:: with SMTP id a14mr32199204ejc.60.1630417513508; Tue, 31 Aug 2021 06:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630417513; cv=none; d=google.com; s=arc-20160816; b=mMtx++QxeXqWMKVlRqJ7HpH/9hu/WKunE7zx+Y54p+ugWjyEoptT3ZCkjvLbJMBKqK rilZHFsOFqAqcr3ZH0ka4O03UcSPKiSb8jH1T2L1At6AYz4ReWedHiGzQAlyXSYGh8nK iLbI8JfEw/4xiGrRA3rQIXIYlp3WFPUGRbRnyCdTxVxDCtfEvmaWqvOjltFVoTFiixCD zMuivjvJCyIkNhVqfS01u/kPJDYSW8M4B1z4aAgZHi02qedVBw5y0lPBfu6NsGt6Qy2Y nyKPt/n9VNfVCXOwLUYv1wn7a2GIVYL//s0QwAQj7KYGgd5rMwIW8Mui9fudd4udPIah rpNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GE45bpKAGKCKAg41dIw4PIqf/+KFm/xssj9zipThuvc=; b=OsrcowH6aZuPSnvMObVz+Ct+LakJ7dPfcJ5E4+D1VhbCiQJijl5LrbNyIKHwmSyss5 bDzoainn1NhQHFBXsk/8UQOcSvR4cX2d3f+Rr0po78seg7COhwGEs7JHujUL2BrsEFOl BbpPDtFMeFbAAPWbtZsVAqUhec7hLui3sSvcSqqjrwpjoz4gvQ6bob/Kt2p5uqXLPczg SEu2wnnv9xAslWPvp25puJ0218zC1Muw/jmsqsxDTtsjwFhDjA8xr/mP2aHkY2aXmVOW +r9L7GhybFZlDTMifnuuPF2zFoDs5P7sAXOY7GwXzkMAvauXrcCEqDech6QvYD9fOZTF 88iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si16461280ejm.464.2021.08.31.06.44.46; Tue, 31 Aug 2021 06:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239775AbhHaNoP (ORCPT + 99 others); Tue, 31 Aug 2021 09:44:15 -0400 Received: from outbound-smtp19.blacknight.com ([46.22.139.246]:44421 "EHLO outbound-smtp19.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239099AbhHaNoJ (ORCPT ); Tue, 31 Aug 2021 09:44:09 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp19.blacknight.com (Postfix) with ESMTPS id 82FDD1C3BC4 for ; Tue, 31 Aug 2021 14:43:12 +0100 (IST) Received: (qmail 29075 invoked from network); 31 Aug 2021 13:43:12 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 31 Aug 2021 13:43:12 -0000 Date: Tue, 31 Aug 2021 14:43:11 +0100 From: Mel Gorman To: Miaohe Lin Cc: akpm@linux-foundation.org, vbabka@suse.cz, sfr@canb.auug.org.au, peterz@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype Message-ID: <20210831134311.GG4128@techsingularity.net> References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-6-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210830141051.64090-6-linmiaohe@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 10:10:50PM +0800, Miaohe Lin wrote: > If it's not prepared to free unref page, the pcp page migratetype is > unset. Thus We will get rubbish from get_pcppage_migratetype() and > might list_del &page->lru again after it's already deleted from the > list leading to grumble about data corruption. > > Fixes: 3dcbe270d8ec ("mm/page_alloc: avoid conflating IRQs disabled with zone->lock") > Signed-off-by: Miaohe Lin Acked-by: Mel Gorman This fix is fairly important. Take this patch out and send it on its own so it gets picked up relatively quickly. It does not belong in a series that is mostly cosmetic cleanups. -- Mel Gorman SUSE Labs