Skip to content

Commit 1bdb67e

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
x86/exceptions: Enable IST guard pages
All usage sites which expected that the exception stacks in the CPU entry area are mapped linearly are fixed up. Enable guard pages between the IST stacks. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Sean Christopherson <sean.j.christopherson@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190414160145.349862042@linutronix.de
1 parent 3207426 commit 1bdb67e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎arch/x86/include/asm/cpu_entry_area.h‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ struct exception_stacks {
2626
ESTACKS_MEMBERS(0)
2727
};
2828

29-
/*
30-
* The effective cpu entry area mapping with guard pages. Guard size is
31-
* zero until the code which makes assumptions about linear mappings is
32-
* cleaned up.
33-
*/
29+
/* The effective cpu entry area mapping with guard pages. */
3430
struct cea_exception_stacks {
35-
ESTACKS_MEMBERS(0)
31+
ESTACKS_MEMBERS(PAGE_SIZE)
3632
};
3733

3834
/*

0 commit comments

Comments
 (0)