* [PATCH] debugfs: Fix default access mode config check
@ 2025-12-02 7:12 Aaron Thompson
2025-12-02 12:09 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Aaron Thompson @ 2025-12-02 7:12 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich
Cc: linux-kernel, Aaron Thompson, Mark Brown, Chen-Yu Tsai
This typo caused debugfs to always behave as if
CONFIG_DEBUG_FS_ALLOW_NONE was selected.
Fixes: f278809475f6 ("debugfs: Remove broken no-mount mode")
Reported-by: Mark Brown <broonie@kernel.org>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Aaron Thompson <dev@aaront.org>
---
fs/debugfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 0284b0256195..3b3713fcbbcb 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -35,7 +35,7 @@
static struct vfsmount *debugfs_mount;
static int debugfs_mount_count;
static bool debugfs_registered;
-static bool debugfs_enabled __ro_after_init = IS_ENABLED(DEBUG_FS_ALLOW_ALL);
+static bool debugfs_enabled __ro_after_init = IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL);
/*
* Don't allow access attributes to be changed whilst the kernel is locked down
base-commit: f278809475f6835b56de78b28dc2cc0c7e2c20a4
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] debugfs: Fix default access mode config check
2025-12-02 7:12 [PATCH] debugfs: Fix default access mode config check Aaron Thompson
@ 2025-12-02 12:09 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-12-02 12:09 UTC (permalink / raw)
To: Aaron Thompson
Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
linux-kernel, Mark Brown, Chen-Yu Tsai, Linux-Renesas
Hi Aaron,
Thanks for your patch!
On Tue, 2 Dec 2025 at 08:19, Aaron Thompson <dev@aaront.org> wrote:
> This typo caused debugfs to always behave as if
> CONFIG_DEBUG_FS_ALLOW_NONE was selected.
>
> Fixes: f278809475f6 ("debugfs: Remove broken no-mount mode")
> Reported-by: Mark Brown <broonie@kernel.org>
Please run scripts/checkpatch.pl on your patches.
For this patch, it reports:
WARNING: Reported-by: should be immediately followed by Closes:
with a URL to the report
Closes: https://lore.kernel.org/8c2a2753-145e-4de5-84fe-9a900af6a2ee@sirena.org.uk
For the broken patch, it would have reported:
WARNING: IS_ENABLED(DEBUG_FS_ALLOW_ALL) is normally used as
IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL)
> Tested-by: Chen-Yu Tsai <wenst@chromium.org>
> Signed-off-by: Aaron Thompson <dev@aaront.org>
Thank you, this fixes:
1. "pinctrl core: failed to create debugfs directory for <foo>.pinctrl",
2. Failed to mount debugfs,
3. Systemd dropping in emergency mode on Debian systems.
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --- a/fs/debugfs/inode.c
> +++ b/fs/debugfs/inode.c
> @@ -35,7 +35,7 @@
> static struct vfsmount *debugfs_mount;
> static int debugfs_mount_count;
> static bool debugfs_registered;
> -static bool debugfs_enabled __ro_after_init = IS_ENABLED(DEBUG_FS_ALLOW_ALL);
> +static bool debugfs_enabled __ro_after_init = IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL);
>
> /*
> * Don't allow access attributes to be changed whilst the kernel is locked down
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-02 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 7:12 [PATCH] debugfs: Fix default access mode config check Aaron Thompson
2025-12-02 12:09 ` Geert Uytterhoeven
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.