]> www.infradead.org Git - users/jedix/linux-maple.git/commit
prctl: Add force disable speculation
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sun, 13 May 2018 15:47:19 +0000 (11:47 -0400)
committerBrian Maly <brian.maly@oracle.com>
Mon, 21 May 2018 22:05:25 +0000 (18:05 -0400)
commit68666b6652bb64d65be3564990dcdd038e48732a
treec1d5f36467cfe239cd208a8c0e64b5be056a31b6
parent1991fd293d957d28ac7d8c66ac9f332b0c3e8a52
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.

OraBug: 28041771
CVE: CVE-2018-3639

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 356e4bfff2c5489e016fdb925adbf12a1e3950ee)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
 Conflicts:
arch/x86/kernel/cpu/bugs.c

[File is called bugs_64.c]
include/linux/sched.h

Signed-off-by: Brian Maly <brian.maly@oracle.com>
Documentation/userspace-api/spec_ctrl.rst
arch/x86/kernel/cpu/bugs_64.c
fs/proc/array.c
include/linux/sched.h
include/uapi/linux/prctl.h