History

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()...

Al Viro committed 14 years ago

Commit ce7e5d21 parent 03cb00b1 file · +1 −2Browse files

Unified · Split

arch/x86/ia32/ia32_aout.c+1−2
@@ -294,8 +294,7 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs) · 293 unmodified lines
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