mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: + proc-wchan-use-printk-format-instead-of-lookup_symbol_name-fix.patch added to -mm tree
       [not found] <20201223021834.9n93L%akpm@linux-foundation.org>
@ 2020-12-28 18:28 ` Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2020-12-28 18:28 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, deller

On Tue, Dec 22, 2020 at 06:18:34PM -0800, akpm@linux-foundation.org wrote:
>
>      proc-wchan-use-printk-format-instead-of-lookup_symbol_name-fix.patch

> --- a/fs/proc/base.c~proc-wchan-use-printk-format-instead-of-lookup_symbol_name-fix
> +++ a/fs/proc/base.c
> @@ -384,15 +384,8 @@ static const struct file_operations proc
>  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, PTRACE_MODE_READ_FSCREDS))
> -		wchan = get_wchan(task);
> -	else
> -		wchan = 0;
> -
> -	if (wchan)
> -		seq_printf(m, "%ps", (void *) wchan);
> +		seq_printf(m, "%ps", (void *)get_wchan(task));
>  	else
>  		seq_putc(m, '0');

These patches change '0' to '0x0'.

Also /proc/*/wchan shows '0' for everything which is strange.

I'm not sure if we should care as wchan is obsoleted by /proc/*/stack .

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-28 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20201223021834.9n93L%akpm@linux-foundation.org>
2020-12-28 18:28 ` + proc-wchan-use-printk-format-instead-of-lookup_symbol_name-fix.patch added to -mm tree Alexey Dobriyan

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®