aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/x86/ldt_gdt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/testing/selftests/x86/ldt_gdt.c b/tools/testing/selftests/x86/ldt_gdt.c
index 66e5ce5b91f0..0304ffb714f2 100644
--- a/tools/testing/selftests/x86/ldt_gdt.c
+++ b/tools/testing/selftests/x86/ldt_gdt.c
@@ -627,13 +627,10 @@ static void do_multicpu_tests(void)
627static int finish_exec_test(void) 627static int finish_exec_test(void)
628{ 628{
629 /* 629 /*
630 * In a sensible world, this would be check_invalid_segment(0, 1); 630 * Older kernel versions did inherit the LDT on exec() which is
631 * For better or for worse, though, the LDT is inherited across exec. 631 * wrong because exec() starts from a clean state.
632 * We can probably change this safely, but for now we test it.
633 */ 632 */
634 check_valid_segment(0, 1, 633 check_invalid_segment(0, 1);
635 AR_DPL3 | AR_TYPE_XRCODE | AR_S | AR_P | AR_DB,
636 42, true);
637 634
638 return nerrs ? 1 : 0; 635 return nerrs ? 1 : 0;
639} 636}