Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp400861pxb; Wed, 1 Sep 2021 01:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJVudYd2+CfMmLpOrAz2z0qv8EpTMoTvFAHrj3BrcMMj/lUIxl3JSqpb+4dUTpByvKocHk X-Received: by 2002:a17:906:12c6:: with SMTP id l6mr36888361ejb.373.1630483920363; Wed, 01 Sep 2021 01:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630483920; cv=none; d=google.com; s=arc-20160816; b=e+CVuHkj+mkeLR2mCfZQ1/rdDxCihHsLL4KnGI3Ph6y0l3pYQ0h+e0akgfmsT4Ofoj 3yav4H1AaJYfuP+n/lhO9iOostPMhThyKzU3XJtH6x7RPI2GA3TlFs9/lVKcCaJ4SgU2 yUGwerZZ477Vy4ETSGy6SHKE3bYlpcpjoHBpYRdYkeqTGBfiaUGGtA8dRt2Hgy18NuHe PnOGD8/1F9POb42megU9U0Iq6aJ/24Z5sPoyxi0M57PW7/MGanNEwf1jEwnj7W0UzoWU GiKDHZdwHMA3xpQOYi3nrd0TGjl4OCgDexCmLyRi772wJkWWMUCmuqxwUnP7t0GjYcuU FgSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tuAQxyf+oC7VY1jRbBKNY+M8pZFTTKYP7/hct2kbo1I=; b=pAC5fs+X/QsJ7DgmvitIHXdCF+Ke4okp6d7MDXdlqK5Kuq/dmN/KldB3Nj0hBI1XeF MZ5tJSiIO0/xrELb0GMJ8bXp6InMegU34XME9gMJ8/+F+nkBIDQ5lG7c8rK5REAGuMKF xAFOxz2xPG1AICXHIXHuZhOokkveWo/96j2QwrYfnyl8P7IWOwgS4TcUfL8BE/ANxjzC QPcatk5HWldmaCJKpKk70p18ULzHsI31qrkSYmgqE4U4LyFKany139Md/9smYZYwzAu9 PCPTADVarRM0ff5tWLF8hYr7gC0/HYnjHvbxqh/PMr+YdjfWKjRpvNo6i2BO1fldhajw TfBw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si12764043edx.20.2021.09.01.01.10.58; Wed, 01 Sep 2021 01:12:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242891AbhIAIDq (ORCPT + 99 others); Wed, 1 Sep 2021 04:03:46 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14445 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242777AbhIAIDl (ORCPT ); Wed, 1 Sep 2021 04:03:41 -0400 Received: from dggeme703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GzxJj1BmyzbdQC; Wed, 1 Sep 2021 15:58:45 +0800 (CST) Received: from [10.174.178.75] (10.174.178.75) by dggeme703-chm.china.huawei.com (10.1.199.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Wed, 1 Sep 2021 16:02:40 +0800 Subject: Re: [PATCH 5/6] mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype To: David Hildenbrand CC: , , , , , , Mel Gorman References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-6-linmiaohe@huawei.com> <20210831134311.GG4128@techsingularity.net> <877b7043-65c3-5e08-ac89-ad6f10e354b3@redhat.com> From: Miaohe Lin Message-ID: Date: Wed, 1 Sep 2021 16:02:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <877b7043-65c3-5e08-ac89-ad6f10e354b3@redhat.com> Content-Type: text/plain; charset="iso-8859-15" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.75] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggeme703-chm.china.huawei.com (10.1.199.99) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/31 22:23, David Hildenbrand wrote: > On 31.08.21 15:43, Mel Gorman wrote: >> 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. > > I think the commit id is wrong. Shouldn't that be > > df1acc856923 ("mm/page_alloc: avoid conflating IRQs disabled with zone->lock") > > ? > Many thanks for pointing this out. I used to save the git log in a file to make life easier. But it seems this leads to the old commit id above. commit 3dcbe270d8ec57e534f5c605279cdc3ceb1f044a Author: Mel Gorman Date: Fri Jun 4 14:20:03 2021 +1000 mm/page_alloc: avoid conflating IRQs disabled with zone->lock git name-rev 3dcbe270d8ec 3dcbe270d8ec tags/next-20210604~2^2~196 vs commit df1acc856923c0a65c28b588585449106c316b71 Author: Mel Gorman Date: Mon Jun 28 19:42:00 2021 -0700 mm/page_alloc: avoid conflating IRQs disabled with zone->lock git name-rev df1acc856923 df1acc856923 tags/next-20210630~2^2~278 Their contents are same but with different commit id. The previous one could have been git-rebased.