From 06c4207602967d29af6b8a2ed33f801addb2950b Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 21 Nov 2019 12:52:37 -0800 Subject: [PATCH] x86: add CONFIG_X86_USERSPACE for Intel64 Hidden config to select dependencies. Signed-off-by: Andrew Boie --- arch/x86/core/Kconfig.intel64 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/core/Kconfig.intel64 b/arch/x86/core/Kconfig.intel64 index a0b5f2f975d..51ae7a31cb6 100644 --- a/arch/x86/core/Kconfig.intel64 +++ b/arch/x86/core/Kconfig.intel64 @@ -75,4 +75,13 @@ config X86_STACK_PROTECTION bounds of the current process stack are overflowed. This is done by preceding all stack areas with a 4K guard page. +config X86_USERSPACE + bool + default y if USERSPACE + select THREAD_STACK_INFO + help + This option enables APIs to drop a thread's privileges down to ring 3, + supporting user-level threads that are protected from each other and + from crashing the kernel. + endif # X86_64