Skip to content

Commit ce7e5d2

Browse files
Al Virotorvalds
authored andcommitted
x86: fix broken TASK_SIZE for ia32_aout
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 03cb00b commit ce7e5d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/ia32/ia32_aout.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs)
294294

295295
/* OK, This is the point of no return */
296296
set_personality(PER_LINUX);
297-
set_thread_flag(TIF_IA32);
298-
current->mm->context.ia32_compat = 1;
297+
set_personality_ia32(false);
299298

300299
setup_new_exec(bprm);
301300

0 commit comments

Comments
 (0)