x86/dumpstack/64: Add noinstr version of get_stack_info()
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:45 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:19 +0000 (11:33 +0200)
commit6b27edd74a5e9669120f7bd0ae1f475d124c1042
treef8c92eb6fde4a1d98e518a696ddaa71de0865e59
parent315562c9af3d583502b35c4b223a08d95ce69864
x86/dumpstack/64: Add noinstr version of get_stack_info()

The get_stack_info() functionality is needed in the entry code for the
#VC exception handler. Provide a version of it in the .text.noinstr
section which can be called safely from there.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-45-joro@8bytes.org
arch/x86/include/asm/stacktrace.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/dumpstack_64.c
arch/x86/mm/cpu_entry_area.c