]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs/procfs: fix the comment above proc_pid_wchan()
authorBart Van Assche <bvanassche@acm.org>
Wed, 19 Mar 2025 21:02:22 +0000 (14:02 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 22 Mar 2025 05:10:05 +0000 (22:10 -0700)
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.

Link: https://lkml.kernel.org/r/20250319210222.1518771-1-bvanassche@acm.org
Fixes: b2f73922d119 ("fs/proc, core/debug: Don't expose absolute kernel addresses via wchan")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/base.c

index cd89e956c322440f35ed75187416f4b247b07f96..7feb8f41aa253f1bba52b91b040b4d14f073aa79 100644 (file)
@@ -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)