From: Mihai Carabas Date: Fri, 29 Jun 2018 09:13:41 +0000 (+0300) Subject: fs: proc: array.c: fix Speculation_Store_Bypass print format X-Git-Tag: v4.1.12-124.31.3~683 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1d7876c375a626187667dad6355d2d6d52047cf9;p=users%2Fjedix%2Flinux-maple.git fs: proc: array.c: fix Speculation_Store_Bypass print format This patch fixes commit id f590427c8b01298b416f043107e654918107c579 While backporting, we introduce a \n in front of Speculation_Store_Bypass ending up with a suplimentary newline which is affecting different tools (like iotop): Seccomp: 0 Speculation_Store_Bypass: thread vulnerable Orabug: 28128750 Signed-off-by: Mihai Carabas Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: John Haxby Signed-off-by: Brian Maly --- diff --git a/fs/proc/array.c b/fs/proc/array.c index a5cb99d9e847..5972e0e256f8 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -323,7 +323,7 @@ static inline void task_seccomp(struct seq_file *m, struct task_struct *p) #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");