]> xenbits.xensource.com Git - xen.git/commit
x86: re-run exception-from-stub recovery selftests with CET-SS enabled
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2024 12:49:52 +0000 (13:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2024 12:49:52 +0000 (13:49 +0100)
commitcfe3ad67127b86e1b1c06993b86422673a51b050
tree146a1b1d4a13c9a0db97f3c77f11b3d50b986bcf
parent91f5f7a9154919a765c3933521760acffeddbf28
x86: re-run exception-from-stub recovery selftests with CET-SS enabled

On the BSP, shadow stacks are enabled only relatively late in the
booting process. They in particular aren't active yet when initcalls are
run. Keep the testing there, but invoke that testing a 2nd time when
shadow stacks are active, to make sure we won't regress that case after
addressing XSA-451.

While touching this code, switch the guard from NDEBUG to CONFIG_DEBUG,
such that IS_ENABLED() can validly be used at the new call site.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/extable.c
xen/arch/x86/include/asm/setup.h
xen/arch/x86/setup.c