Re: [PATCH] selftests/x86: report a skip when shadow stack cannot be enabled
From: Edgecombe, Rick P
Date: Thu Nov 05 2026 - 14:15:04 EST
On Wed, 2026-11-04 at 22:02 -0500, Sasha Levin wrote:
> test_shadow_stack prints "[SKIP] Could not enable Shadow stack" when
> ARCH_SHSTK_ENABLE fails, as it does on CPUs without shadow stack support
> and on kernels built without CONFIG_X86_USER_SHADOW_STACK, but then exits
> with 1, so the kselftest runner reports a failure.
>
> Exit with KSFT_SKIP instead.
>
> Fixes: 81f30337ef4f ("selftests/x86: Add shadow stack test")
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
> ---
> Found with KernelCI's x86 builds, which leave
> CONFIG_X86_USER_SHADOW_STACK unset. Tested on an AMD EPYC 9655P with
> KernelCI's x86_64 build of next-20261104: the test now exits with 4
> instead of 1.
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>
There are some other things labeled SKIP in the same function. But they should
probably actually be FAIL, so the one update done in this patch seems
appropriate.