]> www.infradead.org Git - users/jedix/linux-maple.git/commit
seccomp: Enable speculation flaw mitigations
authorKees Cook <keescook@chromium.org>
Tue, 1 May 2018 22:07:31 +0000 (15:07 -0700)
committerBrian Maly <brian.maly@oracle.com>
Mon, 21 May 2018 22:05:18 +0000 (18:05 -0400)
commit1991fd293d957d28ac7d8c66ac9f332b0c3e8a52
tree005c5bb983731642553ee0e8004182dee66d5c3b
parent549e535f0e8ba18830e0c00b4165c2771cf2cb42
seccomp: Enable speculation flaw mitigations

When speculation flaw mitigations are opt-in (via prctl), using seccomp
will automatically opt-in to these protections, since using seccomp
indicates at least some level of sandboxing is desired.

OraBug: 28041771
CVE: CVE-2018-3639

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 5c3070890d06ff82eecb808d02d2ca39169533ef)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
 Conflicts:
kernel/seccomp.c
[The include file is called nospec-branch.h instead of nospec.h]

Signed-off-by: Brian Maly <brian.maly@oracle.com>
kernel/seccomp.c