* [PATCH] fs/procfs: Fix the comment above proc_pid_wchan()
@ 2025-03-19 21:02 Bart Van Assche
0 siblings, 0 replies; only message in thread
From: Bart Van Assche @ 2025-03-19 21:02 UTC (permalink / raw)
To: Andrew Morton
Cc: Bart Van Assche, Kees Cook, Eric W. Biederman, Alexey Dobriyan,
linux-kernel, linux-fsdevel
proc_pid_wchan() used to report kernel addresses to user space but that
is no longer the case today. Bring the comment above proc_pid_wchan()
in sync with the implementation.
Cc: Kees Cook <kees@kernel.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Fixes: b2f73922d119 ("fs/proc, core/debug: Don't expose absolute kernel addresses via wchan")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
fs/proc/base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index cd89e956c322..7feb8f41aa25 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -416,7 +416,7 @@ static const struct file_operations proc_pid_cmdline_ops = {
#ifdef CONFIG_KALLSYMS
/*
* Provides a wchan file via kallsyms in a proper one-value-per-file format.
- * Returns the resolved symbol. If that fails, simply return the address.
+ * Returns the resolved symbol to user space.
*/
static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-19 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-19 21:02 [PATCH] fs/procfs: Fix the comment above proc_pid_wchan() Bart Van Assche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®