x86: add Kconfig for KPTI

This will be enabled by default for any x86 that isn't
noted as being immune to this CPU bug.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-02-06 15:27:52 -08:00 committed by Anas Nashif
commit 89a127bc8e

View file

@ -123,6 +123,17 @@ config X86_USERSPACE
supporting user-level threads that are protected from each other and supporting user-level threads that are protected from each other and
from crashing the kernel. from crashing the kernel.
config X86_KPTI
bool "Enable kernel page table isolation"
default y
depends on USERSPACE
depends on !X86_NO_MELTDOWN
help
Implements kernel page table isolation to mitigate Meltdown exploits
to read Kernel RAM. Incurs a significant performance cost for
user thread interrupts and system calls, and significant footprint
increase for additional page tables and trampoline stacks.
menu "Architecture Floating Point Options" menu "Architecture Floating Point Options"
depends on CPU_HAS_FPU depends on CPU_HAS_FPU