]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kernel/cpu/bugs.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>
Wed, 16 May 2018 11:52:29 +0000 (13:52 +0200)
commit733f42341ba8b5167c1e37696697f94df4ffbcac
tree77a3cf8fd41574cd96bedd155608b70f1fae41e9
parentb5e6d77dc754c30056da25e17a4cca00a504557a
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)

[smb: minor context adaption in prctl.h]
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