+ procfs-fix-the-output-format-in-proc-pid-wchan.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: procfs: fix the output format in /proc/PID/wchan
has been added to the -mm tree.  Its filename is
     procfs-fix-the-output-format-in-proc-pid-wchan.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/procfs-fix-the-output-format-in-proc-pid-wchan.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/procfs-fix-the-output-format-in-proc-pid-wchan.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Yafang Shao <laoar.shao@xxxxxxxxx>
Subject: procfs: fix the output format in /proc/PID/wchan

Add the missing newline.

Link: http://lkml.kernel.org/r/1542626272-29129-1-git-send-email-laoar.shao@xxxxxxxxx
Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/fs/proc/base.c~procfs-fix-the-output-format-in-proc-pid-wchan
+++ a/fs/proc/base.c
@@ -370,11 +370,12 @@ static int proc_pid_wchan(struct seq_fil
 	wchan = get_wchan(task);
 	if (wchan && !lookup_symbol_name(wchan, symname)) {
 		seq_puts(m, symname);
+		seq_putc(m, '\n');
 		return 0;
 	}
 
 print0:
-	seq_putc(m, '0');
+	seq_puts(m, "0\n");
 	return 0;
 }
 #endif /* CONFIG_KALLSYMS */
_

Patches currently in -mm which might be from laoar.shao@xxxxxxxxx are

procfs-fix-the-output-format-in-proc-pid-wchan.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux