Messages in this thread | | | From | Max Filippov <> | Date | Wed, 23 Feb 2022 22:22:59 -0800 | Subject | Re: [PATCH] xtensa: Implement "current_stack_pointer" |
| |
On Wed, Feb 23, 2022 at 10:05 PM Kees Cook <keescook@chromium.org> wrote: > > 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: Max Filippov <jcmvbkbc@gmail.com> > Cc: Marc Zyngier <maz@kernel.org> > Cc: linux-xtensa@linux-xtensa.org > Signed-off-by: Kees Cook <keescook@chromium.org> > --- > arch/xtensa/Kconfig | 1 + > arch/xtensa/include/asm/current.h | 2 ++ > arch/xtensa/include/asm/stacktrace.h | 2 +- > arch/xtensa/kernel/irq.c | 3 +-- > 4 files changed, 5 insertions(+), 3 deletions(-)
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
-- Thanks. -- Max
| |