]> Gentwo Git Trees - linux/.git/commit
selftests/x86: Update the negative vsyscall tests to expect a #GP
authorSohil Mehta <sohil.mehta@intel.com>
Tue, 18 Nov 2025 18:29:09 +0000 (10:29 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 18 Nov 2025 18:38:26 +0000 (10:38 -0800)
commitc9129cf0f0447cdf195df0c79b87940f266d3767
tree80afc15727eb6ea1366bf73d16221899a50dd87b
parent42fea0a3a707249cf88ee24aece1dfaba4953b97
selftests/x86: Update the negative vsyscall tests to expect a #GP

Some of the vsyscall selftests expect a #PF when vsyscalls are disabled.
However, with LASS enabled, an invalid access results in a SIGSEGV due
to a #GP instead of a #PF. One such negative test fails because it is
expecting X86_PF_INSTR to be set.

Update the failing test to expect either a #GP or a #PF. Also, update
the printed messages to show the trap number (denoting the type of
fault) instead of assuming a #PF.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://patch.msgid.link/20251118182911.2983253-8-sohil.mehta%40intel.com
tools/testing/selftests/x86/test_vsyscall.c