Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp94127lqe; Thu, 4 Apr 2024 00:05:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHNPJ59U6WJVGFvd87O/ZZlTo2erfhWbi2sTIxSPlVW98XXm0YJ1kWdzEcAB5HYfLB2qopFw+6UNCyzaVzuAsMrmZcEFwsSMPJi/GttQ== X-Google-Smtp-Source: AGHT+IHS8sjrW8vwcYJ0mdvPcRcpc38kQ5NzTrCCfhz9fqTWSNhFBxFnUX+SNEq5cj83ivPFd/OH X-Received: by 2002:a17:907:9707:b0:a4e:8d04:5605 with SMTP id jg7-20020a170907970700b00a4e8d045605mr1358133ejc.23.1712214357778; Thu, 04 Apr 2024 00:05:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712214357; cv=pass; d=google.com; s=arc-20160816; b=kL5LhxgIPLdt3JvmcxFUaETZXkwpsoOiXJFHDBvwO2biz1J95cm0g8q1PbySDNgpXZ u4dn9mEKte61N28xHt5TLzgA0NZrx0+K9dmUxi0X6kuRnMn5/g/2VTRqqbaK6CFzmVJ7 T3+cMgWvit2eEUqsTf0r8hWB5pqH2GpSE/7cSGnlvQhCIkWsDvjZJIvshIBEs7fkT9sm IDddHAnw6EgB5jlI7dg3hbGRGlWO2ar0E2BunPTFh2LWq5KMhMtabSKLw3cj/JqeuFSq xIvILgps/Tsrgf6bw+lCcaIo/8tZpUUv4wmkBszQppy4X3RXfKA4yNOt0QMgUZbkz0wu ofjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=V+X2zDngmnqBx7vb2axjhrZvkwG5Ojv0GhbbisDc+TE=; fh=ENI4nYrv0XwEprlzM5iekfP8Nr/PLF4gWq0wxGhMK2s=; b=K5zCXJUALEZkXEm/NLMhKoYWJ6vAxMlRi/1vymdjsXNtf3/3IDoNrwpRL+lCj69YRj u8d5KiSvv5NS79oLDquPl3xgE18ViXqAu9Z56dSgl1E8HC5RibY+0LU6P0BqPqJjC6DO UsvcauB4OWyCPXE/h0gd/iMsmkckYKkjnJZQd4/4PHqcilRhcuTfGJdRziW5uo1UYcpJ 88YrIAxgq5Wd8d8HcU2mRAU6xUin4LKOKKVq8p3xyTxQZ0vFvbxnvdxf4OuP/oEqkwWC Alqrg6skh3Xq8/4O6dT3vQ2nXWKbA0frmvygMg4TKSsFCLCcDnYxfnBP/ZxwaDOKWDuN yg5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=a2sy4Lpd; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-131004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qk40-20020a1709077fa800b00a4e269bca51si7391404ejc.565.2024.04.04.00.05.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:05:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131004-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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=a2sy4Lpd; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-131004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 835D81F231F1 for ; Thu, 4 Apr 2024 07:05:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99B6B54915; Thu, 4 Apr 2024 07:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="a2sy4Lpd"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="jU2BC5iJ" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 247F25479F for ; Thu, 4 Apr 2024 07:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712214349; cv=none; b=YPYGQWLzgtyXt/yD8aHMWVkDQ2Bd2qQIC8Ae/wE+wiRTUDW98UkWpuyCuP+kxAeHFNP9GOGqfoItRnqPwhGWkf7XAVsGJi4Se+hEpdhrs0zw5/MO4TeSZ/F7ACNo93+UkuK11AMqzHaho4ce7AgAPmvt8O79rL0VoxDGd58O+Gg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712214349; c=relaxed/simple; bh=BFlBCR2vzm2uN3HsXQmPGWb1uuz6m6jbTzeYRtN63p0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OZz0ohYP0mO/ecFBTcEveKQvLliPJ/RWnJaDRSbiVtX/ut19E4cJuFYYOJsnkxc8AcCSra5GLFkcUjVDxZqSMIusvYZ3wEFLKOfPii02D0BmQNFDqk6lMGeYkk5vhrokRhHm39AIWE5JEo7KGqngJ53RBtd1IOCX0zPAEKY6fcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=a2sy4Lpd; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=jU2BC5iJ; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [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-out1.suse.de (Postfix) with ESMTPS id 2375F378EA; Thu, 4 Apr 2024 07:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712214346; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V+X2zDngmnqBx7vb2axjhrZvkwG5Ojv0GhbbisDc+TE=; b=a2sy4LpdrcGHXlY/ws736AcZg2Xx1Nira5CoDEycy+ARED6CME6GaFKs9oHeMJiR4q1hi+ m+fOz81PKsYrFYNK3shJ2Bheauarzd42+x8meN6hwrnClAh2b1vrEciR78Xve2XFK4bfRO qe4/SmXnKdGx75XgZTOO3G/apya5r7s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712214346; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V+X2zDngmnqBx7vb2axjhrZvkwG5Ojv0GhbbisDc+TE=; b=jU2BC5iJyShvhJebsqC1bWXteQblxHBHgJ67z9nPkOCLbHx+7hMXf1L/SOWN3oMikuenWP e9pOOS4CQYcOmeBg== Authentication-Results: smtp-out1.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 871E6139E8; Thu, 4 Apr 2024 07:05:45 +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 gfHSHUlRDmY6cgAAn2gu4w (envelope-from ); Thu, 04 Apr 2024 07:05:45 +0000 From: Oscar Salvador To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Marco Elver , Andrey Konovalov , Alexander Potapenko , Alexandre Ghiti , Oscar Salvador Subject: [PATCH v4 0/4] page_owner: Fix refcount imbalance and print fixup Date: Thu, 4 Apr 2024 09:06:58 +0200 Message-ID: <20240404070702.2744-1-osalvador@suse.de> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [1.13 / 50.00]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.982]; MIME_GOOD(-0.10)[text/plain]; BAYES_HAM(-0.07)[62.57%]; RCPT_COUNT_SEVEN(0.00)[10]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,kvack.org,suse.com,suse.cz,google.com,gmail.com,rivosinc.com,suse.de]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap2.dmz-prg2.suse.org:rdns,imap2.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com] X-Spam-Score: 1.13 X-Spam-Level: * X-Spam-Flag: NO 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. 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(-) -- 2.44.0