Commit 226f1f72 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Thomas Gleixner
Browse files

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: default avatarAndy Lutomirski <>
Cc: Brian Gerst <>
Cc: Linus Torvalds <>
Cc: Borislav Petkov <>
Cc: Stas Sergeev <>

Signed-off-by: default avatarThomas Gleixner <>
parent ababae44
......@@ -230,5 +230,9 @@ int main(void)
/* Make sure nothing explodes if we fork. */
if (fork() > 0)
return 0;
return (nerrs == 0 ? 0 : 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment