x86/vm86: Set thread.vm86 to NULL on fork/clone
authorAndy Lutomirski <luto@kernel.org>
Sat, 31 Oct 2015 05:42:46 +0000 (22:42 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 31 Oct 2015 08:50:25 +0000 (09:50 +0100)
commit2459ee8651dc5ab72790c2ffa99af288c7641b64
tree6ddbab8ebd33416d3a37778b4ce0d59da619bd75
parent226f1f729ce277720fab60c91dd1b12574cfe66c
x86/vm86: Set thread.vm86 to NULL on fork/clone

thread.vm86 points to per-task information -- the pointer should not
be copied on clone.

Fixes: d4ce0f26c790 ("x86/vm86: Move fields from 'struct kernel_vm86_struct' to 'struct vm86'")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Stas Sergeev <stsp@list.ru>
Link: http://lkml.kernel.org/r/71c5d6985d70ec8197c8d72f003823c81b7dcf99.1446270067.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process.c