Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp402744pxb; Wed, 1 Sep 2021 01:14:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydXc0gFxy7ZXK7IQ1hvmrCP8yBpgZxA00ftr9WSSEOla10fDKmJ3fsGSgPR1z6QkeVfeC+ X-Received: by 2002:a05:6402:27cd:: with SMTP id c13mr33388285ede.266.1630484098310; Wed, 01 Sep 2021 01:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630484098; cv=none; d=google.com; s=arc-20160816; b=OTnFmoov68MaBjLFijlE4++5gLTtNBwZQRNxLwl7oGlAH44QnTug7zX66qhtA8yDPB D/3HdK4Kcw0IKLTqyyg09I4Zk8u+MnnlxbISYfMkQ6z0xT2J2TLKk90yDIxJ6wfGh0hA Yf4CmH0DDr9FmKPmfgt5vxJK7kgtgulp8te/XPxnvJW0OtNWrx2Q8U3D4mQfNbribtzV AWBKZqj5YRAG5yXVosirzkgknXrZE6poMbzywdOpPIdy//uGL5xef4El1lNCfL0AP6eA l8+9UYQkQ13oa0pW8/pRNlIgRZJGTDpwwuEoqRLTW9mJUSrSQp00zZ7PJEkFAy8eVieZ 5cow== 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=yDe4Rq12aXZBTXygp1nOpvUiXouZUb8uV6p5+T0AVsw=; b=az3qHTGcZqIyfv5oaQu9D8N/zOe14GeQT76vdnJ+nDYq7fK+vh7ihBrazSTcw1GUR8 mvaoBtPEJ0J7nclHagl4OlJaz+vNtLFQ5ov4B9fzMTrbiDGbAiYKgXlEjGurvVavkW4E /jeFS8c2k3eXVBMcIA8nO/xGFHnB+dwRQDoq2mm4kEVvJQRa9Yi/dZr4VE13/8g1RFDj Ya6Phj8jY2hahNri4z09U7I3dDbJPWhtfRZGFQ4R/D+WEDzQDncjHAk5edSaV0W6aPCK V1pNlG4EN0JczH0EmfNFbXRX/5Dh8zR+CdbTNwOReqBoLgUyoyYBR02a9jMSRWg0RX5D CYaw== 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 8si1538262ejl.416.2021.09.01.01.14.12; Wed, 01 Sep 2021 01:14:58 -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 S242852AbhIAIFc (ORCPT + 99 others); Wed, 1 Sep 2021 04:05:32 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:8994 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbhIAIFb (ORCPT ); Wed, 1 Sep 2021 04:05:31 -0400 Received: from dggeme703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GzxQX6Wt1zYvtS; Wed, 1 Sep 2021 16:03:48 +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:04:30 +0800 Subject: Re: [PATCH 5/6] mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype To: Vlastimil Babka , Mel Gorman CC: , , , , References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-6-linmiaohe@huawei.com> <20210831134311.GG4128@techsingularity.net> <00a73cf9-b2e8-116b-dc9c-fc5e2aacb1a1@suse.cz> From: Miaohe Lin Message-ID: <55d7b921-f51c-0c1e-82a8-c9e6148e2115@huawei.com> Date: Wed, 1 Sep 2021 16:04:30 +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: <00a73cf9-b2e8-116b-dc9c-fc5e2aacb1a1@suse.cz> Content-Type: text/plain; charset="utf-8" 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/9/1 0:34, Vlastimil Babka wrote: > On 8/31/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. > > Also Cc: stable, please. > > Will do. Many thanks for both of your suggestions! > > . >