Re: [PATCH] proc/wchan: Use printk format instead of lookup_symbol_name()

2020-12-23 Thread Andrew Morton
On Wed, 23 Dec 2020 10:48:10 +0100 Helge Deller wrote: > > static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, > > struct pid *pid, struct task_struct *task) > > { > > - unsigned long wchan; > > - > > if (ptrace_may_access(task,

Re: [PATCH] proc/wchan: Use printk format instead of lookup_symbol_name()

2020-12-23 Thread Helge Deller
On 12/23/20 3:18 AM, Andrew Morton wrote: > On Thu, 17 Dec 2020 17:54:13 +0100 Helge Deller wrote: > >> To resolve the symbol fuction name for wchan, use the printk format >> specifier %ps instead of manually looking up the symbol function name >> via lookup_symbol_name(). >> >> Signed-off-by:

Re: [PATCH] proc/wchan: Use printk format instead of lookup_symbol_name()

2020-12-22 Thread Andrew Morton
On Thu, 17 Dec 2020 17:54:13 +0100 Helge Deller wrote: > To resolve the symbol fuction name for wchan, use the printk format > specifier %ps instead of manually looking up the symbol function name > via lookup_symbol_name(). > > Signed-off-by: Helge Deller > Please don't forget the "^---$"

[PATCH] proc/wchan: Use printk format instead of lookup_symbol_name()

2020-12-17 Thread Helge Deller
To resolve the symbol fuction name for wchan, use the printk format specifier %ps instead of manually looking up the symbol function name via lookup_symbol_name(). Signed-off-by: Helge Deller diff --git a/fs/proc/base.c b/fs/proc/base.c index b362523a9829..c4593e1cafa4 100644 ---