projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
226f1f7
)
x86/vm86: Set thread.vm86 to NULL on fork/clone
author
Andy Lutomirski
<
[email protected]
>
Sat, 31 Oct 2015 05:42:46 +0000
(22:42 -0700)
committer
Thomas Gleixner
<
[email protected]
>
Sat, 31 Oct 2015 08:50:25 +0000
(09:50 +0100)
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 <
[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/71c5d6985d70ec8197c8d72f003823c81b7dcf99.1446270067.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/process.c
b/arch/x86/kernel/process.c
index e28db181e4fcb04d19c02e7709e20fabb06f8c29..9f7c21c22477e59462d72e930d79a4c2a238a051 100644
(file)
--- a/
arch/x86/kernel/process.c
+++ b/
arch/x86/kernel/process.c
@@
-84,6
+84,9
@@
EXPORT_SYMBOL_GPL(idle_notifier_unregister);
int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
{
memcpy(dst, src, arch_task_struct_size);
+#ifdef CONFIG_VM86
+ dst->thread.vm86 = NULL;
+#endif
return fpu__copy(&dst->thread.fpu, &src->thread.fpu);
}