prctl: Add force disable speculation
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2018 20:09:15 +0000 (22:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 May 2018 22:51:43 +0000 (00:51 +0200)
commit356e4bfff2c5489e016fdb925adbf12a1e3950ee
tree27bfbcbf2c23c3d6cfa0219e93ccf35c2e14f5b3
parentf9544b2b076ca90d887c5ae5d74fab4c21bb7c13
prctl: Add force disable speculation

For certain use cases it is desired to enforce mitigations so they cannot
be undone afterwards. That's important for loader stubs which want to
prevent a child from disabling the mitigation again. Will also be used for
seccomp(). The extra state preserving of the prctl state for SSB is a
preparatory step for EBPF dymanic speculation control.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/userspace-api/spec_ctrl.rst
arch/x86/kernel/cpu/bugs.c
fs/proc/array.c
include/linux/sched.h
include/uapi/linux/prctl.h