]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/proc/array.c
prctl: Add force disable speculation
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2018 20:09:15 +0000 (22:09 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 14 May 2018 10:31:31 +0000 (12:31 +0200)
commite29928d4e84f9333c11f324516d991c399277e8f
tree4b66bb36f6f8d85957d341ae1bb0bed12663908f
parented0cbc9e409c32cd35ff7eb9f83d2a4414a615d2
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>
CVE-2018-3639 (x86)

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
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