Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180140
b: refs/heads/master
c: 7ab02af
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Feb 2, 2010
1 parent 8eac1e4 commit 1de1508
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab658321f32770b903a4426e2a6fae0392757755
refs/heads/master: 7ab02af428c2d312c0cf8fb0b01cc1eb21131a3d
10 changes: 5 additions & 5 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,11 @@ 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 @@ -997,9 +1002,6 @@ 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 @@ -1015,8 +1017,6 @@ 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 1de1508

Please sign in to comment.