Commit ede3241a authored by Mark Brown's avatar Mark Brown Committed by Catalin Marinas

arm64: entry: Add SYM_CODE annotation for __bad_stack

When converting arm64 to modern assembler annotations __bad_stack was left
as a raw local label without annotations. While this will have little if
any practical impact at present it may cause issues in the future if we
start using the annotations for things like reliable stack trace. Add
SYM_CODE annotations to fix this.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210804181710.19059-1-broonie@kernel.orgSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 312b7104
...@@ -517,12 +517,13 @@ SYM_CODE_START(vectors) ...@@ -517,12 +517,13 @@ SYM_CODE_START(vectors)
SYM_CODE_END(vectors) SYM_CODE_END(vectors)
#ifdef CONFIG_VMAP_STACK #ifdef CONFIG_VMAP_STACK
SYM_CODE_START_LOCAL(__bad_stack)
/* /*
* We detected an overflow in kernel_ventry, which switched to the * We detected an overflow in kernel_ventry, which switched to the
* overflow stack. Stash the exception regs, and head to our overflow * overflow stack. Stash the exception regs, and head to our overflow
* handler. * handler.
*/ */
__bad_stack:
/* Restore the original x0 value */ /* Restore the original x0 value */
mrs x0, tpidrro_el0 mrs x0, tpidrro_el0
...@@ -542,6 +543,7 @@ __bad_stack: ...@@ -542,6 +543,7 @@ __bad_stack:
/* Time to die */ /* Time to die */
bl handle_bad_stack bl handle_bad_stack
ASM_BUG() ASM_BUG()
SYM_CODE_END(__bad_stack)
#endif /* CONFIG_VMAP_STACK */ #endif /* CONFIG_VMAP_STACK */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment