Skip to content

Commit 6287fba

Browse files
bvanasscheakpm00
authored andcommitted
fs/procfs: fix the comment above proc_pid_wchan()
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: b2f7392 ("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>
1 parent 81ca297 commit 6287fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static const struct file_operations proc_pid_cmdline_ops = {
416416
#ifdef CONFIG_KALLSYMS
417417
/*
418418
* Provides a wchan file via kallsyms in a proper one-value-per-file format.
419-
* Returns the resolved symbol. If that fails, simply return the address.
419+
* Returns the resolved symbol to user space.
420420
*/
421421
static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
422422
struct pid *pid, struct task_struct *task)

0 commit comments

Comments
 (0)