Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1983745lqe; Tue, 9 Apr 2024 06:36:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpGbeRKFpNdphLB38LQniDEEopVW3gIc7rwON2BAasaAhrA6RjJ2r+Hiw+U2bIqVT9n0c8aphhF8ArHuWVDdHn+z2HOMwW/WHhwI/z8Q== X-Google-Smtp-Source: AGHT+IFkOy/8BnAzI1NnGjfQ8NQNOZgQnWyRfviTABPPyUmRMTXYl1xw4So1sEN6Py+elxVC6KrH X-Received: by 2002:a17:906:3c16:b0:a51:9354:9362 with SMTP id h22-20020a1709063c1600b00a5193549362mr7629567ejg.56.1712669801698; Tue, 09 Apr 2024 06:36:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712669801; cv=pass; d=google.com; s=arc-20160816; b=nM3171oID1lR5OmekIRKpko0NryKjUWhFjdXexWRMSBc85O5BmU0E9KVB2+NdNEQTu fs6v3UEcFVfNEO7euydfIrSYRqB7O9TTgSQIv+BrOkuXs/YsRB5KNXTx4BZzBf5E2t9Y MnUo/fCLu3zUWhxmlC+I0gjwsuRyWGN+hwG+rJV+0iT7cn/X/wyvDcX2SF/YgJ0gceL7 vKe5x3KpCXyvW98w0bFyN9GsjwcZvRWEFsbG10OLcNb6nwrtVWBvAychcOTP+61uBGpS 7ichftJCOOXOc+t0H+o+/+vUuxfkeShNMy3Nkhlr5VByr+jZsiBBF1JdsjVz2pR/Gdy4 ajNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=4mA3nIilL7+Jrphge7H3WavjqiRTDCjq4f1SEmSxUOs=; fh=8nkrF84lk9IcGI85qfnaG6rtBFfO1WDSPR4Z8+WbrVE=; b=f/kvBXAMzhsMVNg4wDLjFUJS96NdkQnRqFmpPuQ+YC8qbSOS0JCjUsF2yls1LLUylh dkJm/+XInp8Ox9XJ2lgEjoZpcBA4FKWAQUVkOb6ZNRkvqaEGc7vTjPbwUggP8yijXx3R Y7hoa7goj6wjnAvdtgJkcAF1xS4xwIzkGCuOGTuYWTuK/M1WOK1RNg8419nBg6OnR1Ap NLQIXyI08fMcKcJemYgGdgFe5UzN/eNe0lo4MlYFJ5rcdTrCEVDfDhMhGWGMaBeRJBK7 T93dkhem8Zepv3PmAt8fiwWwyw+GsM0luqnb40w3bE1LcFX5/uRh1ClqemNJ7UbIdwc3 2hLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-136963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i12-20020a1709064fcc00b00a51fc520e64si626373ejw.480.2024.04.09.06.36.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-136963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6D19A1F23AF5 for ; Tue, 9 Apr 2024 13:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 376561304B5; Tue, 9 Apr 2024 13:32:21 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AC5E7FBD3 for ; Tue, 9 Apr 2024 13:32:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669540; cv=none; b=M6HCtUqmsVbwcbb+/lW0y4ldCRD4JMk65y3QJYb2fElAqt5XgUa5f8MYsPiCVyrJxPvLX6bjK9FeHGH53aejjoHglUCAvMbG8InxavvYK+Wn8oYtHOrQ5tGvEPnCl0V+77vQ6k+piBZUFjr4o2a4OyP/Cmst/RlIWFt34DLKuuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669540; c=relaxed/simple; bh=dMqGeHAHH7zcug3J3Ku1senR0ip7h5j/VVoBZ3xVssw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=S+/mfRcM+wQSXfwhW6fpc9KOmGouUJP43uoMdHPgOev9Y44zXRYUBuF3tF5fb4P1rxt6yOXDMpkl7Zc7lAAwwlGathY0ha+oUNnWQSGCFZt9rgtgdLEhnLF4KxoFhu19wlTW2fVMCPC3UfePvmKA8ctRB107XK18hYMT1tQ5tC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VDRd029GSzXlBL; Tue, 9 Apr 2024 21:29:08 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 38254140118; Tue, 9 Apr 2024 21:32:15 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 9 Apr 2024 21:32:14 +0800 Message-ID: Date: Tue, 9 Apr 2024 21:32:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 0/4] page_owner: Fix refcount imbalance and print fixup Content-Language: en-US To: Oscar Salvador , Andrew Morton CC: , , Michal Hocko , Vlastimil Babka , Marco Elver , Andrey Konovalov , Alexander Potapenko , Alexandre Ghiti References: <20240404070702.2744-1-osalvador@suse.de> From: Kefeng Wang In-Reply-To: <20240404070702.2744-1-osalvador@suse.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) On 2024/4/4 15:06, Oscar Salvador wrote: > This series consists of a refactoring/correctness of updating the metadata > of tail pages, a couple of fixups for the refcounting part and a fixup for > the stack_start() function. > >>From this series on, instead of counting the stacks, we count the outstanding > nr_base_pages each stack has, which gives us a much better memory overview. > The other fixup is for the migration part. > > A more detailed explanation can be found in the changelog of the respective > patches. I think this also should be merged into 6.9-rc1 asap, it is easy to occur when migration. Tested-by: Kefeng Wang > > v3 -> v4: > - Fix some typos remarked by Vlastimil > - Add Reviewed-by tag from Vlastimil and Tested-by tag from Alexandre Ghiti > (closed a syzbot report for RISC) > > Oscar Salvador (4): > mm,page_owner: Update metadata for tail pages > mm,page_owner: Fix refcount imbalance > mm,page_owner: Fix accounting of pages when migrating > mm,page_owner: Fix printing of stack records > > Documentation/mm/page_owner.rst | 73 +++++++------ > mm/page_owner.c | 188 ++++++++++++++++++-------------- > 2 files changed, 147 insertions(+), 114 deletions(-) >