diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-12-01 02:34:42 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-12-01 14:23:34 +0300 |
commit | ac20ffbb0279aae7be48567fb734eae7d050769e (patch) | |
tree | 15c0a54aa692cf18d40cd21b48964f77f7d13ea2 /include/linux/scs.h | |
parent | a2abe7cbd8fe2db5ff386c968e2273d9dc6c468d (diff) | |
download | linux-ac20ffbb0279aae7be48567fb734eae7d050769e.tar.xz |
arm64: scs: use vmapped IRQ and SDEI shadow stacks
Use scs_alloc() to allocate also IRQ and SDEI shadow stacks instead of
using statically allocated stacks.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201130233442.2562064-3-samitolvanen@google.com
[will: Move CONFIG_SHADOW_CALL_STACK check into init_irq_scs()]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/scs.h')
-rw-r--r-- | include/linux/scs.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/scs.h b/include/linux/scs.h index 2a506c2a16f4..18122d9e17ff 100644 --- a/include/linux/scs.h +++ b/include/linux/scs.h @@ -22,10 +22,6 @@ /* An illegal pointer value to mark the end of the shadow stack. */ #define SCS_END_MAGIC (0x5f6UL + POISON_POINTER_DELTA) -/* Allocate a static per-CPU shadow stack */ -#define DEFINE_SCS(name) \ - DEFINE_PER_CPU(unsigned long [SCS_SIZE/sizeof(long)], name) \ - #define task_scs(tsk) (task_thread_info(tsk)->scs_base) #define task_scs_sp(tsk) (task_thread_info(tsk)->scs_sp) |