selftests/x86: Add a fork() to entry_from_vm86 to catch fork bugs
authorAndy Lutomirski <[email protected]>
Sat, 31 Oct 2015 05:42:45 +0000 (22:42 -0700)
committerThomas Gleixner <[email protected]>
Sat, 31 Oct 2015 08:50:25 +0000 (09:50 +0100)
commit226f1f729ce277720fab60c91dd1b12574cfe66c
tree3f23c6e7248eae34da54f03d94d1c3258888f3a8
parentababae44108b0e94b58eef6cb5bd830bd040a47f
selftests/x86: Add a fork() to entry_from_vm86 to catch fork bugs

Mere possession of vm86 state is strange.  Make sure that nothing
gets corrupted if we fork after calling vm86().

Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Stas Sergeev <[email protected]>
Link: http://lkml.kernel.org/r/08f83295460a80e41dc5e3e81ec40d6844d316f5.1446270067.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <[email protected]>
tools/testing/selftests/x86/entry_from_vm86.c