[tip:x86/urgent] x86: set_personality_ia32() misses force_personality32

From: tip-bot for Oleg Nesterov
Date: Tue Feb 16 2010 - 18:28:19 EST


Commit-ID: 1dfc76ec37a59018d8ed39152695ff27a434415b
Gitweb: http://git.kernel.org/tip/1dfc76ec37a59018d8ed39152695ff27a434415b
Author: Oleg Nesterov <oleg@xxxxxxxxxx>
AuthorDate: Tue, 16 Feb 2010 15:02:13 +0100
Committer: H. Peter Anvin <hpa@xxxxxxxxx>
CommitDate: Tue, 16 Feb 2010 09:44:30 -0800

x86: set_personality_ia32() misses force_personality32

05d43ed8a "x86: get rid of the insane TIF_ABI_PENDING bit" forgot
about force_personality32, fix.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
LKML-Reference: <20100216140213.GB16448@xxxxxxxxxx>
Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxx>
---
arch/x86/kernel/process_64.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index 41a26a8..126f0b4 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -527,6 +527,7 @@ void set_personality_ia32(void)

/* Make sure to be in 32bit mode */
set_thread_flag(TIF_IA32);
+ current->personality |= force_personality32;

/* Prepare the first "return" to user space */
current_thread_info()->status |= TS_COMPAT;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/