Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp98363lqe; Thu, 4 Apr 2024 00:15:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlsK684BHkt2FMKc1OiCXfs8wqUPK3TjB7nVk8u9hRrBqCuIRWuWvPIr0xAMnn20GfbOtJZBS9KwJSjZMgAtnO6xG1o31boE1KULKOBQ== X-Google-Smtp-Source: AGHT+IH7eOdan/GWhLMZgmchqt5/fiuCjhkD0nBBT34SBlGMT4U8IYU9iJZZ+mjcf8u1lvd4SpHm X-Received: by 2002:a50:cdd9:0:b0:56d:ee15:4925 with SMTP id h25-20020a50cdd9000000b0056dee154925mr1384778edj.0.1712214959454; Thu, 04 Apr 2024 00:15:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712214959; cv=pass; d=google.com; s=arc-20160816; b=JBDgsjEWXuMrnqGE6zo7s8P2y7kBTCmXjk4SE5QuYwEca+TxNfQm8XQsshqET913E7 DyLv/8MWfBEI/Bu8LX+5ync+FtUsKgkV7t0zAB+DGxy3CS8OrIQvUv+ImNOAIMPNBCuc f/kYHq0cZTLha+NeuIDHPZRjShkm3t8YiqS59YosIpVJ9pbUUzrks0obQVOlbshqbhLh yzEUprVYtAR/U1/qsM0q0KGafYgrYKCKbYlLWq7uC9YKLGfRGV0vrlnXkSS2ZmBWeAQ1 BumwHzL5ZXP4KzGG7yb1yqS4+EE43zF6RykgBjaLG2YgcsrWFAg7xPrOBxSb3LciPuv6 EMBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=hp4i+3YsIWCywk/8+p8w7hrLuzpFT6LpttxnBtnrnbA=; fh=48udRT1DdKsmniSI5zoAOdD7ywAOlyVZeCIALVsAtZA=; b=JSWsMnTDbyGApoyzuvFNflXhF7pdQtFFK8MajULUodrkdYRSQmBQIT10qsr21EN4AQ DT0v6SCNhWchYE3Li7UXBUzfUhpWd4yvgjDkQ/2PwhiS1+cD/2JfRxCuJyMMcz6j3MtH 514ATg1OLiMmcRGR734tk1gJkq1ASnhJ9cQe76w4zAjn1gyoHK4L5nxoyv8GBLhjXbWs z6FDV1khiI4zI3FXCSW3M8SglN8c2SXm94G1g1ufUXjZSYIXoo8DI68mIospQbuimIPE jdgpfom9ozBak1STTD4LyWfRR7a7QOM+xB/lNRENJv4yXPWeuqOub8Wrfq5c712F4d6A twJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-131019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131019-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e4-20020a50d4c4000000b0056c3c5dfca7si7253659edj.21.2024.04.04.00.15.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-131019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131019-linux.lists.archive=gmail.com@vger.kernel.org" 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 31D8C1F27598 for ; Thu, 4 Apr 2024 07:15:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A991C5D724; Thu, 4 Apr 2024 07:15:20 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6786C5CDE6 for ; Thu, 4 Apr 2024 07:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712214920; cv=none; b=ZIH3OsxUxwYwy/KIxIhT5HPrCoC3RrNDxcuaj1WGHkslRO0vqFnLnz6uUoWUecHzTAjQjydcZYs2bSaVZLtoQsmjv0GLjhYdWdmxRjthjlIlQxsyZ8VkfhREi9FqWsAXD2VreA5g5VQ2rOMMB+MFgBpCccCOriM2GMQG115VRG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712214920; c=relaxed/simple; bh=6/4Cq2aA39sFtMVgi/VCqef4yRZF2TMXceBE6MEOND4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=meR8bWKIvepfk51faBh80B8rxrYJQhM4BzlDsDlt+dZUvBZ7eBDlsLwqMvlhjgYuPIDeXxZFk3n55ErIci3pimSQIozRTw6KCO5b+RGVCKluPFS5L05pOqgJZgbsQeShV1l09Kfbd86rUTW6MW/cdxe8b2s18/AMTqZjT4+tST4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id ABFF25D686; Thu, 4 Apr 2024 07:15:16 +0000 (UTC) Authentication-Results: smtp-out2.suse.de; none Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 9282C139E8; Thu, 4 Apr 2024 07:15:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id K68YI4RTDmZ8dQAAn2gu4w (envelope-from ); Thu, 04 Apr 2024 07:15:16 +0000 Message-ID: <7c852583-3b87-4acb-ae1d-2065daf16984@suse.cz> Date: Thu, 4 Apr 2024 09:15:16 +0200 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: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Marco Elver , Andrey Konovalov , Alexander Potapenko , Alexandre Ghiti References: <20240404070702.2744-1-osalvador@suse.de> From: Vlastimil Babka Autocrypt: addr=vbabka@suse.cz; keydata= xsFNBFZdmxYBEADsw/SiUSjB0dM+vSh95UkgcHjzEVBlby/Fg+g42O7LAEkCYXi/vvq31JTB KxRWD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GF5/p eIhrOn24oBf67KtdAN3H9JoFNUVTYJc1VJU3R1JtVdgwEdr+NEciEfYl0O19VpLE/PZxP4wX PWnhf5WjdoNI1Xec+RcJ5p/pSel0jnvBX8L2cmniYnmI883NhtGZsEWj++wyKiS4NranDFlA HdDM3b4lUth1pTtABKQ1YuTvehj7EfoWD3bv9kuGZGPrAeFNiHPdOT7DaXKeHpW9homgtBxj 8aX/UkSvEGJKUEbFL9cVa5tzyialGkSiZJNkWgeHe+jEcfRT6pJZOJidSCdzvJpbdJmm+eED w9XOLH1IIWh7RURU7G1iOfEfmImFeC3cbbS73LQEFGe1urxvIH5K/7vX+FkNcr9ujwWuPE9b 1C2o4i/yZPLXIVy387EjA6GZMqvQUFuSTs/GeBcv0NjIQi8867H3uLjz+mQy63fAitsDwLmR EP+ylKVEKb0Q2A== In-Reply-To: <20240404070702.2744-1-osalvador@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Spam-Flag: NO X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Score: -4.00 X-Spam-Level: X-Rspamd-Queue-Id: ABFF25D686 On 4/4/24 9:06 AM, 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. It's best to be explicit that this fixes issues in 6.9-rc1 and thus should be in mm-hotfixes(-unstable). Also you can use e.g. [PATCH mm-hotfixes] prefix to that effect next time. > 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(-) >