diff options
author | Peter Zijlstra <[email protected]> | 2020-06-17 18:25:57 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-06-25 13:45:40 +0200 |
commit | c7aadc09321d8f9a1d3bd1e6d8a47222ecddf6c5 (patch) | |
tree | d3ef22ecfa4ca3a19b7ae3b2780ba4611b5a67d2 | |
parent | e3a9e681adb779b39565a28b3252c3be1033f994 (diff) |
x86/entry: Increase entry_stack size to a full page
Marco crashed in bad_iret with a Clang11/KCSAN build due to
overflowing the stack. Now that we run C code on it, expand it to a
full page.
Suggested-by: Andy Lutomirski <[email protected]>
Reported-by: Marco Elver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Lai Jiangshan <[email protected]>
Tested-by: Marco Elver <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r-- | arch/x86/include/asm/processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 42cd333616c4..03b7c4ca425a 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -370,7 +370,7 @@ struct x86_hw_tss { #define IO_BITMAP_OFFSET_INVALID (__KERNEL_TSS_LIMIT + 1) struct entry_stack { - unsigned long words[64]; + char stack[PAGE_SIZE]; }; struct entry_stack_page { |