]> git.baikalelectronics.ru Git - 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)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2018 11:55:51 +0000 (13:55 +0200)
commit94072b2f99ec1c3577c24a0cc4e69196081dbe1a
treeb03e2356ba64fa645695440d0519324c43f365aa
parenta712f7f544d9a1256f130ba8b610f977a47a1d6d
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>
arch/x86/kernel/cpu/bugs.c
include/linux/nospec.h
kernel/sys.c