From nobody Wed Dec 17 06:14:34 2025 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 815D31684B4 for ; Fri, 5 Dec 2025 23:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764976662; cv=none; b=q7/c7U+8EGPq9oGdtx9TApSySs9gvY5EtaiwsMktr70w9h0Qt25bTDj7y6j1fb/GELw97geTqOCFBmrdCMKJDApjCpdQglG+auKKZ7Rhn7L4wWOAOZneKkswXpMZUXpoMzhbb2I8q+cJnO2ffKqO0+Mr3ef4Wzfhgk/Quf+YnL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764976662; c=relaxed/simple; bh=fxaa5V7GeSrLrVyDaBXlqsmoqlCyemWaoEB6MYLLWZA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dcuzwv2mcm96eTsb/i0zkGOdyCa9587C04VTB4EVXy4EhhGe2IVbcOrjIs0cXE/xEtn5kewNWGZV0V32pUBrpFcY8vZHswNkbRo7Tx2bjKv6fPbpA5M3mFVbRgmqUXe65CBHAKQF686fqP2qaa3ZZisOK7L3qKWbxczT1FqUI2k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=hfF1JjKI; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="hfF1JjKI" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tyEwemb7ChIFBMVkjszwjx9ZHzXx/zdKDJEwXVAG4Hc=; b=hfF1JjKIt+5N7QC9PdF0ma/KNM XUkV005Wzyo6znqnayCw/CPcZDrqmb8NtxxkYJV6XP0pYvj+AuWCkvErSnXKdfzgZJQtRV2sA6c6n b7V55udzFShRG+QW37aovTaGk6DWJthQp2OjpV/xOx3Bj+wZ7Q0pZwT6TdlwbHj3x2yfYlW8bw2ny 2oDCsajU0T/9fOkjtd/AKX0+G0x264dK2/zlK/2FKIdnvVV5xXNOw7iLX7LFwg4hu4Kj/osFwHXvU zl1B1CvZVSDAJ/HoG11lx83WBhcAmzLry3VZgPermw4Rcm/uaZgFH2DEIjKcFIzreDO3m5GOJ2NJT 2LtlGqeQ==; Received: from 186-249-144-101.shared.desktop.com.br ([186.249.144.101] helo=t470) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1vRf3L-009H1j-0c; Sat, 06 Dec 2025 00:17:31 +0100 From: Mauricio Faria de Oliveira To: Andrew Morton , David Hildenbrand Cc: Lorenzo Stoakes , Michal Hocko , Vlastimil Babka , Oscar Salvador , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-dev@igalia.com Subject: [PATCH RFC 1/9] mm: add config option SWAP_PAGE_OWNER Date: Fri, 5 Dec 2025 20:17:13 -0300 Message-ID: <20251205231721.104505-2-mfo@igalia.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251205231721.104505-1-mfo@igalia.com> References: <20251205231721.104505-1-mfo@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add config option for page_owner support for pages in swap space. Signed-off-by: Mauricio Faria de Oliveira --- mm/Kconfig.debug | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index 7638d75b27db..60bc0b6c3d69 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -119,6 +119,15 @@ config PAGE_OWNER =20 If unsure, say N. =20 +config SWAP_PAGE_OWNER + bool "Track page owner in swap space (EXPERIMENTAL)" + depends on PAGE_OWNER + help + This also keeps track of what call chain is the owner of a page + in swap space, maintaining the initial call chain over swap-out + and swap-in (otherwise lost at swap-out and reset at swap-in). + You should pass the "page_owner=3Don,swap" parameter to enable it. + config PAGE_TABLE_CHECK bool "Check for invalid mappings in user page tables" depends on ARCH_SUPPORTS_PAGE_TABLE_CHECK --=20 2.51.0