]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
seccomp: Move speculation migitation control to arch code
authorThomas Gleixner <tglx@linutronix.de>
Fri, 4 May 2018 13:12:06 +0000 (15:12 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 14 May 2018 10:39:10 +0000 (12:39 +0200)
commit32e3c48098bc81b2f258e1baea3cc2851dd423e8
treedd59dbc3cef18572108cdf7559b111192e570f0e
parent3eb6b90c8a1b38b77dce81d295d0d75e1d231969
seccomp: Move speculation migitation control to arch code

The migitation control is simpler to implement in architecture code as it
avoids the extra function call to check the mode. Aside of that having an
explicit seccomp enabled mode in the architecture mitigations would require
even more workarounds.

Move it into architecture code and provide a weak function in the seccomp
code. Remove the 'which' argument as this allows the architecture to decide
which mitigations are relevant for seccomp.

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

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