]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/exec.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / fs / exec.c
index 0e1c95074d4201b33bda839d1fe41566bb69e5ec..0b515ac531348650a59c61c8de6b362953b7bea7 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -885,6 +885,12 @@ int flush_old_exec(struct linux_binprm * bprm)
        current->flags &= ~PF_RANDOMIZE;
        flush_thread();
 
+       /* Set the new mm task size. We have to do that late because it may
+        * depend on TIF_32BIT which is only updated in flush_thread() on
+        * some architectures like powerpc
+        */
+       current->mm->task_size = TASK_SIZE;
+
        if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || 
            file_permission(bprm->file, MAY_READ) ||
            (bprm->interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP)) {