Skip to content

Commit

Permalink
Revert "Fix-flush_old_exec-setup_new_exec-split.patch"
Browse files Browse the repository at this point in the history
  • Loading branch information
Debian kernel team committed May 26, 2010
1 parent 86374a1 commit def1caf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,11 +951,6 @@ int flush_old_exec(struct linux_binprm * bprm)
goto out;

bprm->mm = NULL; /* We're using it now */

current->flags &= ~PF_RANDOMIZE;
flush_thread();
current->personality &= ~bprm->per_clear;

return 0;

out:
Expand Down Expand Up @@ -992,6 +987,9 @@ void setup_new_exec(struct linux_binprm * bprm)
tcomm[i] = '\0';
set_task_comm(current, tcomm);

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
Expand All @@ -1007,6 +1005,8 @@ void setup_new_exec(struct linux_binprm * bprm)
set_dumpable(current->mm, suid_dumpable);
}

current->personality &= ~bprm->per_clear;

/*
* Flush performance counters when crossing a
* security domain:
Expand Down

0 comments on commit def1caf

Please sign in to comment.