]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
nospec: Allow getting/setting on non-current task
authorKees Cook <keescook@chromium.org>
Tue, 1 May 2018 22:19:04 +0000 (15:19 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 14 May 2018 10:09:55 +0000 (12:09 +0200)
commitbd90e22278ca4f153d20cce4514936a106e64861
tree0b105ced073d734ae1c3f130cb5bcec28f8183d9
parent1de873cb3a88289f4cfcd103cd5be3bd38fba2e7
nospec: Allow getting/setting on non-current task

Adjust arch_prctl_get/set_spec_ctrl() to operate on tasks other than
current.

This is needed both for /proc/$pid/status queries and for seccomp (since
thread-syncing can trigger seccomp in non-current threads).

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
CVE-2018-3639 (x86)

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kernel/cpu/bugs.c
include/linux/nospec.h
kernel/sys.c