Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1251730lfc; Wed, 1 Jun 2022 13:07:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymXEeQxNdILDW+O8HIeRlELLRdBXbxYGre2RiLTjnVl2EzUah0qhh4tgmg3UBeyRyzmj6g X-Received: by 2002:a05:6a00:23ce:b0:518:4115:170c with SMTP id g14-20020a056a0023ce00b005184115170cmr1288119pfc.76.1654114040585; Wed, 01 Jun 2022 13:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114040; cv=none; d=google.com; s=arc-20160816; b=SjVs3sE4FrWIzQ1qsnPfKIH3465fNVl37BOjrv+LXxfSOdpyz809IGcVNsJ90Sh7ay w4bPf2P6mxpkLVPoELtwNcGhLqs2/IujYIk1CPx9ajssBuOPME5cfkF/79XLhyfc5Q83 MZDcGaNtkG7rIg1wjl669mhlFNFlfQSk92TH8O9DWI0pj8rLGGwsltdLKiccWjL4N8Kb 8XVr5Bzx22XocW+m/3AMcGCkxxm57vtgEiBtUUsXNIsTgPcolTy1T5JAuMBcw+h6+mS9 fDvcTCMxCN+IEjPdQbZcUZIK19mjSLBre1fP1dq/Ke2IalUJRZfrvx690ZDpUC2IwtTt 1niQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xj2ppwBTubnrrIoaUI7eupnOoNnVC4v3eTLLnDbiLG0=; b=uOUsIHfLLn4ThlH5A3iLNdjs01+WfKpFJ/Ra8F/DdFckiglHfsoTD8v+Rbg0gRE9GU 0aDvC8n0/4jq9FyB14Syi96tJTr6tYv0j0WjSYeMu8RqSoLCsGJPC3jEgPE4c+byNJen M+06CJHGpq5+WhOi89JlvV/IWrsEjCzeRNXEZHUwMeZXGBfB7TOXMrOVQicedWz1kLW7 tyduUnYlxw1s2R7l6iO6WEqFlsUeee2kDfhET6BqfY0pJnRl6xP6CtZ7h9wsIuIPK5eU uiO2PI4KsKYVE3ZEwTSdSnHqaEQHbgloAE1rPWhEUxsFyD6/Nc0BPlLvbdZ+VzvaIlFX 5Vfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=juICRplh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k191-20020a6384c8000000b003a1d18a5386si3470625pgd.17.2022.06.01.13.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:07:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=juICRplh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D61F322AE74; Wed, 1 Jun 2022 12:22:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244047AbiEaFky (ORCPT + 99 others); Tue, 31 May 2022 01:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244051AbiEaFkt (ORCPT ); Tue, 31 May 2022 01:40:49 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2BAC95A12 for ; Mon, 30 May 2022 22:40:47 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id a63so5681183pge.12 for ; Mon, 30 May 2022 22:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xj2ppwBTubnrrIoaUI7eupnOoNnVC4v3eTLLnDbiLG0=; b=juICRplhkiikAtV9FG2KRVdj6JgmGeiIuwdSW2Jg1D7u3nrZPx5ddm5UI8PjHswtHI CFymK9SXuV2jaeTnnalAwMLCkvymbGEqCOwQVHWvOckAE/uqtJ+Eo9PdX0+WtDm1oh9K ID5f74ReZu/lohoVkFicfiSzvGdPytoO48EfMSiHqOXpTTZXovb58Zx9cAUcYqQkyYs+ AqjsOKbc8+pLZ1eqzb3AVeN3R6tfCahxu8R9WwWB5KySB9igPwb4he7o/RvSgddyCf/6 T/LZ2HXjBPnQjU+uXTcxB8W+1JXrVIdNl9UYKvsmH3clvF/lqi5KaYp461c94RCTR5Ve amVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xj2ppwBTubnrrIoaUI7eupnOoNnVC4v3eTLLnDbiLG0=; b=Qy8vwVB1Qk5vOOPTEX03DMjqBvvPqiMxTr07/6jdZnNbYt8xp2jfI41/mrMXarEXqf a88xC5XCriyiulloevFA2ciBohCRzHHRCHmfeFJifyNR3tN4lOETP2iAFiTB0xfvdQhq cMNgmYG7bx5hQs0LfGoAtefp98tNReVI1ZgyzafNgfdojaHmNB0D3cHZAmQ5Zu6pPv4z 3ke4+eNVkslz+KYFgYkTFGa1b8vqETpZUaxNc2ITDYhWCDQYkYdKdSGln1L6D0qUmW/v yIxb7Rv966464scRUOzTIUkbQiNs5l5oRefmOCMZ65780/qHaYvZbL1QOur7rveFOxDg 8BqA== X-Gm-Message-State: AOAM5330Mp5RQVElvOW37VVuK+ZBj4aQjDcs4689pSpKlNg7Th0cJy6Z XQrYO3qOH4CrNWW1gk7p21o8XQ== X-Received: by 2002:a63:6b4a:0:b0:3fb:b03e:d10 with SMTP id g71-20020a636b4a000000b003fbb03e0d10mr15767535pgc.310.1653975647086; Mon, 30 May 2022 22:40:47 -0700 (PDT) Received: from localhost ([2408:8207:18da:2310:7163:3a36:783f:6d4a]) by smtp.gmail.com with ESMTPSA id g1-20020a170902868100b0015e8d4eb25fsm6524570plo.169.2022.05.30.22.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 22:40:46 -0700 (PDT) Date: Tue, 31 May 2022 13:40:39 +0800 From: Muchun Song To: Zi Yan Cc: Andrew Morton , David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qian Cai , Vlastimil Babka , Mel Gorman , Eric Ren , Mike Rapoport , Oscar Salvador , Christophe Leroy , Anshuman Khandual Subject: Re: [PATCH] mm: page_isolation: use compound_nr() correctly in isolate_single_pageblock() Message-ID: References: <20220531024450.2498431-1-zi.yan@sent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220531024450.2498431-1-zi.yan@sent.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 30, 2022 at 10:44:50PM -0400, Zi Yan wrote: > From: Zi Yan > > When compound_nr(page) was used, page was not guaranteed to be the head > of the compound page and it could cause an infinite loop. Fix it by calling > it on the head page. > > Fixes: b2c9e2fbba32 ("mm: make alloc_contig_range work at pageblock granularity") > Reported-by: Anshuman Khandual > Link: https://lore.kernel.org/linux-mm/20220530115027.123341-1-anshuman.khandual@arm.com/ > Signed-off-by: Zi Yan Acked-by: Muchun Song Thanks.