Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4534269pxb; Tue, 31 Aug 2021 07:25:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYh6ZDbRLZcg92yjimUkqqrG8E5iCUq/1vWnlGpld2fC3Jn1G7IT7b35BzRjPTNcqcXZ3/ X-Received: by 2002:a92:c887:: with SMTP id w7mr21054084ilo.129.1630419947100; Tue, 31 Aug 2021 07:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630419947; cv=none; d=google.com; s=arc-20160816; b=oB5yoEmEENUeMeyhuHuBymZH4G2KpklYGmXOI/R9HrlbGBjXUgWJtyQobOCR4Eeoxg AwHo6JGAkxBCT2egiJ7Gb5Qx9M/UcI3cHCQt6XPukXBzoN4na6Xj+F2KF5jbdnj4hikr T0FOLb/Oj1guorXMs4gg+AeHMzK2LJdDzE5N4BsNJVlZcL7EeCMWg7Ac2wye1IvcRKEf fcQgCMei9eyKHEiCTn8Jii3XK7jiWMYtb3S0s1yfgM4OleW866fcvrUbv3YTb4YEziaG vC49ive/yAdShwv1K55r/UXZihpwGu16kcF9JMDDHVWeN7PeJB2uH7vEdKqvKaKAlSy4 VVKA== 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:subject :organization:from:references:cc:to:dkim-signature; bh=urLJX4mD4+0+z3Cmi5p6BeY5jBhCGBwwOY1UjB3PyvE=; b=CANtbD4vnNNcx3jwlvjPfOZa5mnoxHK1qlefLM9kNRxjRTUjQhCEDrfvLPyxGM1VxB MHDKwBduNnWpHoRHzOkc0gizAx/1m4ixOXjEPUUo2ceT8bhoG3sfLU4z0Y/LREdgdo3y XLy/BrDmzolPlziEKlzWLk0ukdxWf0YljEAaJDcd7zjfk/wxcXKkc8T0+9Ptw4vfcR4/ thKkZxCKQNaqVm/oLs3vuEBgDtdWk3O2gAQVIxOlcdwoC3r6Js0sGmpZNLa4WbT+ZsQg Q2WhE/4gpEBfmrLT0IyiCuNUw0IReD4cQJxIMSDhgpWWpgTLU9JLFaN1lO6Rzr7a3ikL 2q7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="K/7ZzMkT"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si17965127ios.66.2021.08.31.07.25.32; Tue, 31 Aug 2021 07:25:47 -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=@redhat.com header.s=mimecast20190719 header.b="K/7ZzMkT"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235477AbhHaOYI (ORCPT + 99 others); Tue, 31 Aug 2021 10:24:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38266 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhHaOYH (ORCPT ); Tue, 31 Aug 2021 10:24:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630419791; h=from:from:reply-to:subject:subject: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=urLJX4mD4+0+z3Cmi5p6BeY5jBhCGBwwOY1UjB3PyvE=; b=K/7ZzMkTwmaXgcEp/T0Ftk6oZEvqpSkwV5iLJlXsTv3VqYUNcfeZUxKcIs7Icl8EDn1KXz 9EkRArD8kSESS4X1lasmO7mTHWWIlHMGozQa4rlCcdIy/IVFd/ZjYVCZug2hkXuxB++qH0 8dZ56oy+QDaWW9q8E1QxcwISEeOqRB0= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-490-BgeHJxzjP46FUKtaw9iDUQ-1; Tue, 31 Aug 2021 10:23:10 -0400 X-MC-Unique: BgeHJxzjP46FUKtaw9iDUQ-1 Received: by mail-wm1-f72.google.com with SMTP id c4-20020a1c9a04000000b002e864b7edd1so6040084wme.6 for ; Tue, 31 Aug 2021 07:23:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=urLJX4mD4+0+z3Cmi5p6BeY5jBhCGBwwOY1UjB3PyvE=; b=c+ciXN0HL0Y1MPqnl+SuFYKYvoa0Ho6hdwS7sCWAjyxbUPntsA6XeSRLIzMlEZKItU 1TY6mhjAbyHdkU12CXWrcFf68iFhGtSYH1A5NthdjxVwthn7ug0ytCR+aEyEPc/nfp9K Je/QAS9NB2KAWyloW/v+aunlMYBwRdQP06bhfCVt5F2JqtzC1CxVlVmuV8zzHnpWj/Ut lE/IeGmitjdIiDjwCChAGNORyHoXl1YpAqJXRARWW3MjllsfyzLsZMVbz8g7EizYToXM TdY8Hn+D8ams7rjChl8SXpvttXT1uegwXapHvQa9yOCGlon8QjgodFMlO2uC+hgK/4Fj QreA== X-Gm-Message-State: AOAM530R/pYjDjFPyrQc+EA9lrf5AnAb0RPZ5YgCkOIKZGR5LoHkc+dO zdKgIC0HBhxSHIb3IsVkvTbgGoMd9+0oqCj2mYEuF/j71YWlyKeG9jBMej9p18pB3AXJvbAQsrY hywmbKzdi7nWCLz3w95nl5Y37ClHKr+4T0uOjf69YhhJ4T2WjCy/Scod2Fxt23GuRt9gia22Z X-Received: by 2002:a1c:f712:: with SMTP id v18mr4475229wmh.25.1630419789324; Tue, 31 Aug 2021 07:23:09 -0700 (PDT) X-Received: by 2002:a1c:f712:: with SMTP id v18mr4475189wmh.25.1630419789029; Tue, 31 Aug 2021 07:23:09 -0700 (PDT) Received: from [192.168.3.132] (p4ff23bf5.dip0.t-ipconnect.de. [79.242.59.245]) by smtp.gmail.com with ESMTPSA id d145sm2560524wmd.3.2021.08.31.07.23.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Aug 2021 07:23:08 -0700 (PDT) To: Mel Gorman , 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 References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-6-linmiaohe@huawei.com> <20210831134311.GG4128@techsingularity.net> From: David Hildenbrand Organization: Red Hat Subject: Re: [PATCH 5/6] mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype Message-ID: <877b7043-65c3-5e08-ac89-ad6f10e354b3@redhat.com> Date: Tue, 31 Aug 2021 16:23:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210831134311.GG4128@techsingularity.net> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") ? -- Thanks, David / dhildenb