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()...
Unified · Split
| @@ -294,8 +294,7 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs) · 293 unmodified lines | ||
| 294 | 294 | |
| 295 | 295 | /* OK, This is the point of no return */ |
| 296 | 296 | set_personality(PER_LINUX); |
| 297 | − set_thread_flag(TIF_IA32); | |
| 298 | − current->mm->context.ia32_compat = 1; | |
| 297 | + set_personality_ia32(false); | |
| 299 | 298 | |
| 300 | 299 | setup_new_exec(bprm); |
| 301 | 300 | |