From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752950AbbJaIzt (ORCPT ); Sat, 31 Oct 2015 04:55:49 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60316 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbbJaIzj (ORCPT ); Sat, 31 Oct 2015 04:55:39 -0400 Date: Sat, 31 Oct 2015 01:55:07 -0700 From: tip-bot for Andy Lutomirski Message-ID: Cc: bp@alien8.de, linux-kernel@vger.kernel.org, brgerst@gmail.com, luto@kernel.org, mingo@kernel.org, stsp@list.ru, hpa@zytor.com, tglx@linutronix.de, torvalds@linux-foundation.org Reply-To: luto@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, bp@alien8.de, brgerst@gmail.com, tglx@linutronix.de, hpa@zytor.com, torvalds@linux-foundation.org, stsp@list.ru In-Reply-To: <71c5d6985d70ec8197c8d72f003823c81b7dcf99.1446270067.git.luto@kernel.org> References: <71c5d6985d70ec8197c8d72f003823c81b7dcf99.1446270067.git.luto@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/vm86: Set thread.vm86 to NULL on fork/clone Git-Commit-ID: 2459ee8651dc5ab72790c2ffa99af288c7641b64 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2459ee8651dc5ab72790c2ffa99af288c7641b64 Gitweb: http://git.kernel.org/tip/2459ee8651dc5ab72790c2ffa99af288c7641b64 Author: Andy Lutomirski AuthorDate: Fri, 30 Oct 2015 22:42:46 -0700 Committer: Thomas Gleixner CommitDate: Sat, 31 Oct 2015 09:50:25 +0100 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 Cc: Brian Gerst Cc: Linus Torvalds Cc: Borislav Petkov Cc: Stas Sergeev Link: http://lkml.kernel.org/r/71c5d6985d70ec8197c8d72f003823c81b7dcf99.1446270067.git.luto@kernel.org Signed-off-by: Thomas Gleixner --- arch/x86/kernel/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index e28db18..9f7c21c 100644 --- 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); }