OSDN Git Service

proc: Remove empty line in /proc/self/status
authorGwendal Grignou <gwendal@chromium.org>
Mon, 14 Jan 2019 18:13:36 +0000 (10:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:42:49 +0000 (09:42 +0100)
commitb820fe255e5092ddbc4fa940b2f85a62a2986abf
tree8e9c8398af24901244b7bdcc80c634b8f7acf008
parent9e86549c56f7dee7913044de7fb25e006bb54181
proc: Remove empty line in /proc/self/status

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>
fs/proc/array.c