alpha: Implement "current_stack_pointer"
authorKees Cook <keescook@chromium.org>
Thu, 24 Feb 2022 06:05:58 +0000 (22:05 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 14 Feb 2023 17:36:22 +0000 (12:36 -0500)
commitbd1912de892ce30e1e2242e67716d25188fbfa44
treefea997c7b98516073ba748ac0bbaccb39440d047
parentd7cf43edebe577c58c7858cf61b03d618d4336cf
alpha: Implement "current_stack_pointer"

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

Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: "Alexander A. Klimov" <grandmaster@al2klimov.de>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/Kconfig
arch/alpha/include/asm/thread_info.h
arch/alpha/lib/stacktrace.c