aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index ca01d2d0a6d4..99d33a1371e9 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1009,7 +1009,7 @@ int flush_old_exec(struct linux_binprm * bprm)
1009 1009
1010 bprm->mm = NULL; /* We're using it now */ 1010 bprm->mm = NULL; /* We're using it now */
1011 1011
1012 current->flags &= ~PF_RANDOMIZE; 1012 current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD);
1013 flush_thread(); 1013 flush_thread();
1014 current->personality &= ~bprm->per_clear; 1014 current->personality &= ~bprm->per_clear;
1015 1015
@@ -1412,7 +1412,6 @@ int do_execve(const char * filename,
1412 if (retval < 0) 1412 if (retval < 0)
1413 goto out; 1413 goto out;
1414 1414
1415 current->flags &= ~PF_KTHREAD;
1416 retval = search_binary_handler(bprm,regs); 1415 retval = search_binary_handler(bprm,regs);
1417 if (retval < 0) 1416 if (retval < 0)
1418 goto out; 1417 goto out;