mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
fs/procfs: fix the comment above proc_pid_wchan()
[ Upstream commit6287fbad1c] 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:b2f73922d1("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
819685fceb
commit
aba9189992
@@ -417,7 +417,7 @@ static const struct file_operations proc_pid_cmdline_ops = {
|
|||||||
#ifdef CONFIG_KALLSYMS
|
#ifdef CONFIG_KALLSYMS
|
||||||
/*
|
/*
|
||||||
* Provides a wchan file via kallsyms in a proper one-value-per-file format.
|
* 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,
|
static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
|
||||||
struct pid *pid, struct task_struct *task)
|
struct pid *pid, struct task_struct *task)
|
||||||
|
|||||||
Reference in New Issue
Block a user