]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 16:11:14 +0000 (17:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 16:11:14 +0000 (17:11 +0100)
added patches:
proc-remove-empty-line-in-proc-self-status.patch

queue-4.4/proc-remove-empty-line-in-proc-self-status.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/proc-remove-empty-line-in-proc-self-status.patch b/queue-4.4/proc-remove-empty-line-in-proc-self-status.patch
new file mode 100644 (file)
index 0000000..9424e60
--- /dev/null
@@ -0,0 +1,41 @@
+From gwendal@chromium.org  Fri Jan 18 17:10:02 2019
+From: Gwendal Grignou <gwendal@chromium.org>
+Date: Mon, 14 Jan 2019 10:13:36 -0800
+Subject: proc: Remove empty line in /proc/self/status
+To: gregkh@linuxfoundation.org
+Cc: stable@vger.kernel.org, groeck@chromium.org, keescook@chromium.org
+Message-ID: <20190114181336.74501-1-gwendal@chromium.org>
+
+From: Gwendal Grignou <gwendal@chromium.org>
+
+Prevent an empty line in /proc/self/status, allow iotop to work.
+
+iotop does not like empty lines, fails with:
+  File "/usr/local/lib64/python2.7/site-packages/iotop/data.py", line
+196, in parse_proc_pid_status
+    key, value = line.split(':\t', 1)
+ValueError: need more than 1 value to unpack
+
+[reading /proc/self/status]
+
+Fixes: 84964fa3e5a0 ("proc: Provide details on speculation flaw mitigations")
+Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ v2: Format commit message properly with proper subject and fixes
+     keyword.
+
+ fs/proc/array.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/fs/proc/array.c
++++ b/fs/proc/array.c
+@@ -333,7 +333,7 @@ static inline void task_seccomp(struct s
+ #ifdef CONFIG_SECCOMP
+       seq_printf(m, "Seccomp:\t%d\n", p->seccomp.mode);
+ #endif
+-      seq_printf(m, "\nSpeculation_Store_Bypass:\t");
++      seq_printf(m, "Speculation_Store_Bypass:\t");
+       switch (arch_prctl_spec_ctrl_get(p, PR_SPEC_STORE_BYPASS)) {
+       case -EINVAL:
+               seq_printf(m, "unknown");
index 9d747f79039c7c20c752cb9d889618102414a9f1..e279047bb6eb3ed6c0cefb819a6ab8fa45eeccd8 100644 (file)
@@ -36,3 +36,4 @@ f2fs-fix-invalid-memory-access.patch
 f2fs-fix-missing-up_read.patch
 f2fs-fix-validation-of-the-block-count-in-sanity_check_raw_super.patch
 media-em28xx-fix-misplaced-reset-of-dev-v4l-field_count.patch
+proc-remove-empty-line-in-proc-self-status.patch