Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp521512pxt; Thu, 12 Aug 2021 03:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg5CwGjscHhM5pUWWLcR6nn5Z+nReCwG/aTnGgCHS/GAlF1NZZOBcuIuCdxOo39K71XGy1 X-Received: by 2002:a05:6402:27c9:: with SMTP id c9mr4933463ede.234.1628765926925; Thu, 12 Aug 2021 03:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628765926; cv=none; d=google.com; s=arc-20160816; b=ycSpPtajXwGPfs/KcEQJkD+WV1QLQHS3Jcmm3T328CsuBa+Z4nIxhwEub3Sq+fRoY8 VNbYfghC2Jympg2SPABMZ5mEpjovuPWK/TXHvlmmktwkbscax1AvLgRuJ0PmF4t8onFa YjHmpbz1eAOLNTXNCFetllGj9p83uzv2iR4JPG51SnGjihad4w9Gw9vJsDZ2fAHy9Kq8 IeI9P8yBgUsE4JDvJs50MG/rpLep69GETw1DNvJ2XNIChXCY2R/vzKJ7ChPS3ET1Qns2 ffHqJDsP8MLT1BrY4MzRp2dubGGrXfLjuYdgKlNB2z7hdbRsZJUW9W/NSD582WtN/Pgw 4yvA== 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=ml5gCZ8h0BVzZ0HmTr6qLn2OWvVHL6S1hlIm/cKTq6c=; b=mhdd5aVjEMgqvm6LyDLAKpbZi3aFLTVD1cOB5CEFFJFE3GNqFKNHSCfVUZAwVXswaR BfILvguzr807w8boTmPRiBQyFbEcukOsGu8jF5pMFBs0qkU3Fa4HCS5C7U7EOlpmi+m1 CGU/lvg73fGe1q47DXHqa2C9vUYEQscy4TwTAsiatWyodMeFmB7vofUTvlv5Hm2ULWGV 0cFSG9XudmI8i3QrmApJsbDzO0901tBdbAdUe1bPm9thBYbQmtJ49LGhYAlt3yBgVC2S 5kXAwpU/5ks/zhl7RPn3eYagnKqDklMeC2cxYBrZ005GtEqnTFXNpkqBJ3cGRfjwWdzX SB3w== 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 hr13si2188420ejc.116.2021.08.12.03.58.22; Thu, 12 Aug 2021 03:58:46 -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 S236661AbhHLK4g (ORCPT + 99 others); Thu, 12 Aug 2021 06:56:36 -0400 Received: from outbound-smtp35.blacknight.com ([46.22.139.218]:36055 "EHLO outbound-smtp35.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236442AbhHLK4f (ORCPT ); Thu, 12 Aug 2021 06:56:35 -0400 Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp35.blacknight.com (Postfix) with ESMTPS id 58F9F1E45 for ; Thu, 12 Aug 2021 11:56:09 +0100 (IST) Received: (qmail 10232 invoked from network); 12 Aug 2021 10:56:09 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Aug 2021 10:56:09 -0000 Date: Thu, 12 Aug 2021 11:56:07 +0100 From: Mel Gorman To: Doug Berger Cc: Andrew Morton , Vlastimil Babka , "Peter Zijlstra (Intel)" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/page_alloc: don't corrupt pcppage_migratetype Message-ID: <20210812105607.GK6464@techsingularity.net> References: <20210811182917.2607994-1-opendmb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210811182917.2607994-1-opendmb@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 11:29:17AM -0700, Doug Berger wrote: > When placing pages on a pcp list, migratetype values over > MIGRATE_PCPTYPES get added to the MIGRATE_MOVABLE pcp list. > > However, the actual migratetype is preserved in the page and > should not be changed to MIGRATE_MOVABLE or the page may end > up on the wrong free_list. > > Fixes: df1acc856923 ("mm/page_alloc: avoid conflating IRQs disabled with zone->lock") > Signed-off-by: Doug Berger Oops, yes. The impact is that HIGHATOMIC or CMA pages getting bulk freed from the PCP lists could potentially end up on the wrong buddy list. There are various consequences but minimally NR_FREE_CMA_PAGES accounting could get screwed up. Thanks Doug Acked-by: Mel Gorman -- Mel Gorman SUSE Labs