summaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 13:31:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 13:31:36 -0500
commit8dcd175bc3d50b78413c56d5b17d4bddd77412ef (patch)
tree2c2fb25759b43f2e73830f07ef3b444d76825280 /fs/proc/array.c
parentafe6fe7036c6efdcb46cabc64bec9b6e4a005210 (diff)
parentfff04900ea79915939ef6a3aad78fca6511a3034 (diff)
Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton: - a few misc things - ocfs2 updates - most of MM * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (159 commits) tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include proc: more robust bulk read test proc: test /proc/*/maps, smaps, smaps_rollup, statm proc: use seq_puts() everywhere proc: read kernel cpu stat pointer once proc: remove unused argument in proc_pid_lookup() fs/proc/thread_self.c: code cleanup for proc_setup_thread_self() fs/proc/self.c: code cleanup for proc_setup_self() proc: return exit code 4 for skipped tests mm,mremap: bail out earlier in mremap_to under map pressure mm/sparse: fix a bad comparison mm/memory.c: do_fault: avoid usage of stale vm_area_struct writeback: fix inode cgroup switching comment mm/huge_memory.c: fix "orig_pud" set but not used mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC mm/memcontrol.c: fix bad line in comment mm/cma.c: cma_declare_contiguous: correct err handling mm/page_ext.c: fix an imbalance with kmemleak mm/compaction: pass pgdat to too_many_isolated() instead of zone mm: remove zone_lru_lock() function, access ->lru_lock directly ...
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 9d428d5a0ac8..2edbb657f859 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -343,28 +343,28 @@ static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
343#ifdef CONFIG_SECCOMP 343#ifdef CONFIG_SECCOMP
344 seq_put_decimal_ull(m, "\nSeccomp:\t", p->seccomp.mode); 344 seq_put_decimal_ull(m, "\nSeccomp:\t", p->seccomp.mode);
345#endif 345#endif
346 seq_printf(m, "\nSpeculation_Store_Bypass:\t"); 346 seq_puts(m, "\nSpeculation_Store_Bypass:\t");
347 switch (arch_prctl_spec_ctrl_get(p, PR_SPEC_STORE_BYPASS)) { 347 switch (arch_prctl_spec_ctrl_get(p, PR_SPEC_STORE_BYPASS)) {
348 case -EINVAL: 348 case -EINVAL:
349 seq_printf(m, "unknown"); 349 seq_puts(m, "unknown");
350 break; 350 break;
351 case PR_SPEC_NOT_AFFECTED: 351 case PR_SPEC_NOT_AFFECTED:
352 seq_printf(m, "not vulnerable"); 352 seq_puts(m, "not vulnerable");
353 break; 353 break;
354 case PR_SPEC_PRCTL | PR_SPEC_FORCE_DISABLE: 354 case PR_SPEC_PRCTL | PR_SPEC_FORCE_DISABLE:
355 seq_printf(m, "thread force mitigated"); 355 seq_puts(m, "thread force mitigated");
356 break; 356 break;
357 case PR_SPEC_PRCTL | PR_SPEC_DISABLE: 357 case PR_SPEC_PRCTL | PR_SPEC_DISABLE:
358 seq_printf(m, "thread mitigated"); 358 seq_puts(m, "thread mitigated");
359 break; 359 break;
360 case PR_SPEC_PRCTL | PR_SPEC_ENABLE: 360 case PR_SPEC_PRCTL | PR_SPEC_ENABLE:
361 seq_printf(m, "thread vulnerable"); 361 seq_puts(m, "thread vulnerable");
362 break; 362 break;
363 case PR_SPEC_DISABLE: 363 case PR_SPEC_DISABLE:
364 seq_printf(m, "globally mitigated"); 364 seq_puts(m, "globally mitigated");
365 break; 365 break;
366 default: 366 default:
367 seq_printf(m, "vulnerable"); 367 seq_puts(m, "vulnerable");
368 break; 368 break;
369 } 369 }
370 seq_putc(m, '\n'); 370 seq_putc(m, '\n');