x86/asm/entry/32, selftests: Add a selftest for kernel entries from VM86 mode
authorAndy Lutomirski <luto@kernel.org>
Fri, 29 May 2015 21:58:24 +0000 (14:58 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 30 May 2015 08:21:32 +0000 (10:21 +0200)
commitc2affbf9a50882572e04645d5946ab0a921f061f
treec4ae76f81a3779fa4b798d9b481982c4eb1cfbb3
parent927392d73a97d8d235bb65400e2e3c7f0bec2b6f
x86/asm/entry/32, selftests: Add a selftest for kernel entries from VM86 mode

Test a couple of special cases in 32-bit kernels for entries
from vm86 mode.  This will OOPS both old kernels due to a bug
and and 4.1-rc5 due to a regression I introduced, and it should
make sure that the SYSENTER-from-vm86-mode hack in the kernel
keeps working.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Jan Beulich <JBeulich@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/09a9916761e0a9e42d4922f147af45a0079cc1e8.1432936374.git.luto@kernel.org
Tests: 394838c96013 x86/asm/entry/32: Fix user_mode() misuses
Tests: 7ba554b5ac69 x86/asm/entry/32: Really make user_mode() work correctly for VM86 mode
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/entry_from_vm86.c [new file with mode: 0644]