Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1050176iob; Fri, 13 May 2022 21:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgIDB6TW6v2oA2an+hkH60ttDncsDMma5QeKFIr8bLDMQm/e/2nw7WurOBXo3nw+09pBqi X-Received: by 2002:a7b:c841:0:b0:394:890e:9195 with SMTP id c1-20020a7bc841000000b00394890e9195mr17713594wml.59.1652501227902; Fri, 13 May 2022 21:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652501227; cv=none; d=google.com; s=arc-20160816; b=cmgfNlXuUvbzSKx52RjK3CY68jOi1/3BEPSRPQceQ6pLyMM9GQcpUwZ0H/AO0zVN/i D4Mk6X7Q+4pACFsALhE6wDzsNOkBi4PBkqs75CRBD1793bnIrFq/Ag2/ZzZENKgxoMnN Ixza3e1xyMO1hZ4in5bNVQ/y94bFKlOwP5H0kl7t5u/TbdinvITocdmJ5u0HbU1Rc6q6 srsp17OyQVDeGa/5vUZUl9jEHiDWjMHDvHn7gdh3hmN+1MVdF4J/ig2I7Nl/2Y52LKe/ ZsEcj0LCFcYhemsnuZKvE0pLzO83jXn6fk+SeC+1Jvl0ogouowm3Ww3678CfJ015+F4r OUhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0R71uxowqYCvorM9uKVSJ08CqOURcL1fgcxntx7QBxw=; b=mfZxV9hRWlef8Gjr5TcrxwgthxVkV9Y0iQ+Gd6FKcyALbtEngWrv4gSCWp47Z/p7bM Y2Yv6sUNLskkip3dqp3WrKisSA2cyrSs+224LlYMPqwTqQs+wRYrxxrH8CILIxye9EUt E9AEnsNwYHnV5GSIPsw4RA1LNtgayKFnQ4Ahk113qSaQLslS0w7NJcmhsN7F03QAnhX8 gAO9NVqhqCc1UPy3M/ybwXMN8NbYw1IDba/dlGeoROWRUdu0tQAIP/Tr+uh1GSe/mrwa mleoDO/3wPSNgqfobZd/o9CtNASop5S6twY3zXO2s9zyZhQ5rOam5T1WqGcImy7W+J5w Y5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=kWHMC6th; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j6-20020a05600c2b8600b00393eaed422bsi3649442wmc.66.2022.05.13.21.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:07:07 -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=@linux-foundation.org header.s=korg header.b=kWHMC6th; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 230F74C1B4F; Fri, 13 May 2022 17:38:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358433AbiELUtv (ORCPT + 99 others); Thu, 12 May 2022 16:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbiELUtr (ORCPT ); Thu, 12 May 2022 16:49:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 630A42685FE for ; Thu, 12 May 2022 13:49:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0626561E7B for ; Thu, 12 May 2022 20:49:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DAE5C385B8; Thu, 12 May 2022 20:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1652388586; bh=91VwTcfIVQV9Sz36/J5iHoSXXfz2kqY+YsPiS9hgpKw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kWHMC6thcR1FBN59YemuXc54h/x9NO4z9+BWWzBZNTMnXLhaooqT+XMZQsOXdkBWz teoLtuDKR3/Cs+bZDFjyv7kWH0nYCtOpoO/rlZ6UM4nTnSGTn85Smh2LhB8sixw+ZH Xt2TZu8t4U23f4TpogUiMt+bh4J6jXbiaYDs7TxI= Date: Thu, 12 May 2022 13:49:45 -0700 From: Andrew Morton To: Rei Yamamoto Cc: linmiaohe@huawei.com, aquini@redhat.com, ddutile@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@techsingularity.net, vvghjk1234@gmail.com Subject: Re: [PATCH] mm, compaction: fast_find_migrateblock() should return pfn in the target zone Message-Id: <20220512134945.fe74df5e322b98ae4046ce15@linux-foundation.org> In-Reply-To: <20220512042733.17976-1-yamamoto.rei@jp.fujitsu.com> References: <4cf33f9c-89bc-f845-10d7-2aa62a20f5e5@huawei.com> <20220512042733.17976-1-yamamoto.rei@jp.fujitsu.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, 12 May 2022 13:27:33 +0900 Rei Yamamoto wrote: > >> Thank you for your review. > >> The runtime effect is that compaction become unintended behavior. > >> For example, pages not in the target zone are added to cc->migratepages list in isolate_migratepages_block(). > >> As a result, pages migrate between nodes unintentionally. > > > > Many thanks for clarifying. :) Is this worth a Fixes tag or even CC stable? > > > > Thanks! > > Thank you for your reply. > > If add a Fixes tag, I think the following commit: > Fixes: 70b4459 ("mm, compaction: use free lists to quickly locate a migration source") > > Andrew, how do you think about this? Thanks, I added that and also a paragraph describing the effect of the bug: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-compaction-fast_find_migrateblock-should-return-pfn-in-the-target-zone.patch I assume this problem isn't sufficiently serious to require a -stable backport of the fix?