xtensa: Implement "current_stack_pointer"
authorKees Cook <keescook@chromium.org>
Sun, 20 Feb 2022 01:26:00 +0000 (17:26 -0800)
committerKees Cook <keescook@chromium.org>
Sat, 26 Feb 2022 02:21:23 +0000 (18:21 -0800)
commit92652cf986441b18282db6e5bd82afc74e8ed5e9
tree7d2cab1235f3216501ef6a499575872083bab455
parent2792d84e6da5e0fd7d3b22fd70bc69b7ee263609
xtensa: Implement "current_stack_pointer"

To follow the existing per-arch conventions replace open-coded uses
of asm "sp" as "current_stack_pointer". This will let it be used in
non-arch places (like HARDENED_USERCOPY).

Cc: Chris Zankel <chris@zankel.net>
Cc: Marc Zyngier <maz@kernel.org>
Cc: linux-xtensa@linux-xtensa.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Link: https://lore.kernel.org/lkml/CAMo8BfJFJE-n3=AF+pb9_6oF3gzxX7a+7aBrASHjjNX5byqDqw@mail.gmail.com
arch/xtensa/Kconfig
arch/xtensa/include/asm/current.h
arch/xtensa/include/asm/stacktrace.h
arch/xtensa/kernel/irq.c