lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251218015849.1414609-3-yuanlinyu@honor.com>
Date: Thu, 18 Dec 2025 09:58:48 +0800
From: yuan linyu <yuanlinyu@...or.com>
To: Alexander Potapenko <glider@...gle.com>, Marco Elver <elver@...gle.com>,
	Dmitry Vyukov <dvyukov@...gle.com>, Andrew Morton
	<akpm@...ux-foundation.org>, Huacai Chen <chenhuacai@...nel.org>, WANG Xuerui
	<kernel@...0n.name>, <kasan-dev@...glegroups.com>, <linux-mm@...ck.org>,
	<loongarch@...ts.linux.dev>
CC: <linux-kernel@...r.kernel.org>, yuan linyu <yuanlinyu@...or.com>
Subject: [PATCH 2/3] kfence: allow create debugfs dir/file unconditionally

When add boot parameter kfence.sample_interval=0, it will not create
debugfs dir/file, but when user change this parameter after boot,
it can enable kfence, there is no debugfs info to check the kfence
state.

Remove kfence_enabled check in kfence_debugfs_init() to create debugfs
unconditionally.

Signed-off-by: yuan linyu <yuanlinyu@...or.com>
---
 mm/kfence/core.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mm/kfence/core.c b/mm/kfence/core.c
index 577a1699c553..24c6f1fa5b19 100644
--- a/mm/kfence/core.c
+++ b/mm/kfence/core.c
@@ -782,9 +782,6 @@ static int kfence_debugfs_init(void)
 {
 	struct dentry *kfence_dir;
 
-	if (!READ_ONCE(kfence_enabled))
-		return 0;
-
 	kfence_dir = debugfs_create_dir("kfence", NULL);
 	debugfs_create_file("stats", 0444, kfence_dir, NULL, &stats_fops);
 	debugfs_create_file("objects", 0400, kfence_dir, NULL, &objects_fops);
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ