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 <>
Cc: Brian Gerst <>
Cc: Linus Torvalds <>
Cc: Borislav Petkov <>
Cc: Stas Sergeev <>
Signed-off-by: Thomas Gleixner <>
1 file changed