From c99649376c435f9e2f344489a47f2bf977308eaa Mon Sep 17 00:00:00 2001 From: KOSAKI Motohiro Date: Wed, 27 Oct 2010 15:34:16 -0700 Subject: [PATCH] --- yaml --- r: 218572 b: refs/heads/master c: 98391cf4dcf893e9e74e1c14189851dbc9c5ad0d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 2907b94742be..0abac9bb903e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 478735e38887077ac77a9756121b6ce0cb956e2f +refs/heads/master: 98391cf4dcf893e9e74e1c14189851dbc9c5ad0d diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index ca01d2d0a6d4..99d33a1371e9 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -1009,7 +1009,7 @@ int flush_old_exec(struct linux_binprm * bprm) bprm->mm = NULL; /* We're using it now */ - current->flags &= ~PF_RANDOMIZE; + current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD); flush_thread(); current->personality &= ~bprm->per_clear; @@ -1412,7 +1412,6 @@ int do_execve(const char * filename, if (retval < 0) goto out; - current->flags &= ~PF_KTHREAD; retval = search_binary_handler(bprm,regs); if (retval < 0) goto out;