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
294 294
295 /* OK, This is the point of no return */295 /* OK, This is the point of no return */
296 set_personality(PER_LINUX);296 set_personality(PER_LINUX);
297 set_thread_flag(TIF_IA32);297 set_personality_ia32(false);
298 current->mm->context.ia32_compat = 1;
299 298
300 setup_new_exec(bprm);299 setup_new_exec(bprm);
301 300