selftests/x86/ldt_gdt: Add infrastructure to test set_thread_area()
authorAndy Lutomirski <luto@kernel.org>
Sat, 4 Nov 2017 11:19:50 +0000 (04:19 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 7 Nov 2017 10:13:42 +0000 (11:13 +0100)
commitd744dcad39094c9187075e274d1cdef79c57c8b5
tree5e02ee5885620fc23b1fbab5859d6adbb9ad8fa7
parentd60ad744c9741586010d4bea286f09a063a90fbd
selftests/x86/ldt_gdt: Add infrastructure to test set_thread_area()

Much of the test design could apply to set_thread_area() (i.e. GDT),
not just modify_ldt().  Add set_thread_area() to the
install_valid_mode() helper.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/02c23f8fba5547007f741dc24c3926e5284ede02.1509794321.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/testing/selftests/x86/ldt_gdt.c