x86: fix broken TASK_SIZE for ia32_aout
authorAl Viro <viro@ZenIV.linux.org.uk>
Sun, 6 May 2012 16:20:00 +0000 (17:20 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 6 May 2012 17:15:18 +0000 (10:15 -0700)
Setting TIF_IA32 in load_aout_binary() used to be enough; these days
TASK_SIZE is controlled by TIF_ADDR32 and that one doesn't get set
there.  Switch to use of set_personality_ia32()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/ia32/ia32_aout.c

index 4824fb45560f7b6afe7bef4bf260f9f39f95a117..07b3a68d2d291ab4c8582a1cc5121c6443e208bb 100644 (file)
@@ -294,8 +294,7 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs)
 
        /* OK, This is the point of no return */
        set_personality(PER_LINUX);
-       set_thread_flag(TIF_IA32);
-       current->mm->context.ia32_compat = 1;
+       set_personality_ia32(false);
 
        setup_new_exec(bprm);