* + kfence-allow-create-debugfs-dir-file-unconditionally.patch added to mm-new branch
@ 2025-12-18 23:59 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-12-18 23:59 UTC (permalink / raw)
To: mm-commits, kernel, glider, elver, dvyukov, chenhuacai, yuanlinyu,
akpm
The patch titled
Subject: kfence: allow create debugfs dir/file unconditionally
has been added to the -mm mm-new branch. Its filename is
kfence-allow-create-debugfs-dir-file-unconditionally.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kfence-allow-create-debugfs-dir-file-unconditionally.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: yuan linyu <yuanlinyu@honor.com>
Subject: kfence: allow create debugfs dir/file unconditionally
Date: Thu, 18 Dec 2025 09:58:48 +0800
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.
Link: https://lkml.kernel.org/r/20251218015849.1414609-3-yuanlinyu@honor.com
Signed-off-by: yuan linyu <yuanlinyu@honor.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Marco Elver <elver@google.com>
Cc: WANG Xuerui <kernel@xen0n.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/kfence/core.c | 3 ---
1 file changed, 3 deletions(-)
--- a/mm/kfence/core.c~kfence-allow-create-debugfs-dir-file-unconditionally
+++ a/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);
_
Patches currently in -mm which might be from yuanlinyu@honor.com are
loongarch-kfence-avoid-use-config_kfence_num_objects.patch
kfence-allow-create-debugfs-dir-file-unconditionally.patch
kfence-allow-change-number-of-object-by-early-parameter.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-18 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 23:59 + kfence-allow-create-debugfs-dir-file-unconditionally.patch added to mm-new branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.