Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4698368pxb; Tue, 31 Aug 2021 11:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGzpNi0bg63P9zCYy2Ip/TMyucdrRBsp7J+bMRqp6VBt4DdxX8nXinndXEtSUBrGG0B30v X-Received: by 2002:aa7:c4c3:: with SMTP id p3mr30705612edr.122.1630433094777; Tue, 31 Aug 2021 11:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630433094; cv=none; d=google.com; s=arc-20160816; b=G9Cwm/5s1oF5ZM91OqdQnRdY/rPeoRlVzuGFeClNU4giUSK0smsztMxMn8Lz0fXGea wofWG1ug5fBujPyLMGUSUjWxDAkxWW5j4DVp2UNl8e4959p5X2rEUS0Gp0gxs0WB62iK dWjU+QCoqtrnrtXwwD156YSASKmVj8CCIwyuOjhiaU8iZjGylXrOZdEMxNvMFnzqv/Gx +X7zVnZ/ac0vQ6Lv0yeHOff6nAvnTeSDSyaLtcbJCIWb66qoqpJib6gzYeYGmgIJeqHk jGCJMp6dgm8hkWx6PdUjBlYWtBVfLlEtdvsnu6xRamhwjP5sp7Cy8j8Vxhs2XHVGz44L ggqA== 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=GjqKV1lIX47H7mXGUlYoktIsr/dzoLju9poW6E8M+Ac=; b=hr/oH9OjjFQTvbxsSeiib7L6Pg0j8214BnmlfL9EEijdn6C7rglKHm3VGvqsOxOvkw ViU+xNvCzuzwQclxtCOPxwjNdUYXUtWUIQHZRQ6nSErfyuGVyVBAnafsCUYwFsxRxDQy +qZq4rAROqXZSdU3m+wxdgJSKB1TRreaDRSE4MPTxzvYdadk6Q9+s6ixT5N/1imARhga p0O8ZhZnOfbSjiSU7VGfcrPhgGDNBDJBwQO8P3XFTNeEvY1X1M/pzmwrP/xhFbi2Irhf +IrXd9qOzz3dnCW4Q3BXzmYgckZQzSyjBRolLtI7XIrAE5bm4rvhSxlNovWGE9KpkoCq Zo9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kxAjlfpN; 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 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 qb1si19002827ejc.35.2021.08.31.11.04.31; Tue, 31 Aug 2021 11:04:54 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kxAjlfpN; 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 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 S234019AbhHaQfX (ORCPT + 99 others); Tue, 31 Aug 2021 12:35:23 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:50340 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbhHaQfX (ORCPT ); Tue, 31 Aug 2021 12:35:23 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 ED87B1FD42; Tue, 31 Aug 2021 16:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1630427666; 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=GjqKV1lIX47H7mXGUlYoktIsr/dzoLju9poW6E8M+Ac=; b=kxAjlfpNufa5YPyitpH3IXO3sndD7xdW0p0QyiEn+QEsjVrh6ESwiU9TXny6cxh8ZltrpT DqVaA8MX7uo/h5bwU8uOxOfdUvkwgTzl8PoIsj5bDUz/oOmJIVcg0J2HUiIu136kLy2bGF TNnlVhg/T7zbnyTHOJ8js4UWptl+Spk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1630427666; 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=GjqKV1lIX47H7mXGUlYoktIsr/dzoLju9poW6E8M+Ac=; b=bwaUH3IeXzEdTdZnTKN3IZXAoP2uPLWUVskyxPxeEhcY+FiWNF56+oixnrADxoVhhSKzbx G4fOsWvLCJ5jCFDQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 imap1.suse-dmz.suse.de (Postfix) with ESMTPS id CF2EC13A9A; Tue, 31 Aug 2021 16:34:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id J83SMRJaLmHnWQAAGKfGzw (envelope-from ); Tue, 31 Aug 2021 16:34:26 +0000 Message-ID: <00a73cf9-b2e8-116b-dc9c-fc5e2aacb1a1@suse.cz> Date: Tue, 31 Aug 2021 18:34:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.0.3 Subject: Re: [PATCH 5/6] mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype Content-Language: en-US To: Mel Gorman , Miaohe Lin Cc: akpm@linux-foundation.org, sfr@canb.auug.org.au, peterz@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-6-linmiaohe@huawei.com> <20210831134311.GG4128@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20210831134311.GG4128@techsingularity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.