diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-10-25 22:28:12 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-10-30 23:27:06 +0000 |
commit | d4d11f5bb26878b31b602d8b363e89f291426b47 (patch) | |
tree | d399060a7897ecbf34b28b41c186760caabb6e5c | |
parent | a96ac56572db0cbed95a7a2f932cbb1ef3cf415d (diff) | |
download | lwn-d4d11f5bb26878b31b602d8b363e89f291426b47.tar.gz lwn-d4d11f5bb26878b31b602d8b363e89f291426b47.zip |
freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD
commit b40a79591ca918e7b91b0d9b6abd5d00f2e88c19 upstream.
flush_old_exec() clears PF_KTHREAD but forgets about PF_NOFREEZE.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[bwh: Backported to 3.2: PF_FORKNOEXEC is cleared elsewhere]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c index 160cd2f6baf9..121ccae40abb 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1095,7 +1095,7 @@ int flush_old_exec(struct linux_binprm * bprm) bprm->mm = NULL; /* We're using it now */ set_fs(USER_DS); - current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD); + current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD | PF_NOFREEZE); flush_thread(); current->personality &= ~bprm->per_clear; |