mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 19:53:02 +09:00
KPTI: Rename to PAGE_TABLE_ISOLATION
This renames CONFIG_KAISER to CONFIG_PAGE_TABLE_ISOLATION. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
59094faf3f
commit
e71fac0172
@@ -1,7 +1,7 @@
|
||||
#ifndef _LINUX_KAISER_H
|
||||
#define _LINUX_KAISER_H
|
||||
|
||||
#ifdef CONFIG_KAISER
|
||||
#ifdef CONFIG_PAGE_TABLE_ISOLATION
|
||||
#include <asm/kaiser.h>
|
||||
|
||||
static inline int kaiser_map_thread_stack(void *stack)
|
||||
@@ -24,7 +24,7 @@ static inline void kaiser_unmap_thread_stack(void *stack)
|
||||
#else
|
||||
|
||||
/*
|
||||
* These stubs are used whenever CONFIG_KAISER is off, which
|
||||
* These stubs are used whenever CONFIG_PAGE_TABLE_ISOLATION is off, which
|
||||
* includes architectures that support KAISER, but have it disabled.
|
||||
*/
|
||||
|
||||
@@ -48,5 +48,5 @@ static inline void kaiser_unmap_thread_stack(void *stack)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* !CONFIG_KAISER */
|
||||
#endif /* !CONFIG_PAGE_TABLE_ISOLATION */
|
||||
#endif /* _LINUX_KAISER_H */
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_KAISER
|
||||
#ifdef CONFIG_PAGE_TABLE_ISOLATION
|
||||
#define USER_MAPPED_SECTION "..user_mapped"
|
||||
#else
|
||||
#define USER_MAPPED_SECTION ""
|
||||
|
||||
Reference in New Issue
Block a user