diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-10-25 22:28:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 10:03:02 -0700 |
commit | a2c439d432f759533d396b31f856fcb484268104 (patch) | |
tree | 69836a73e25fcdca1bc060b77631e54069d93ad7 /fs/exec.c | |
parent | 0fb0773f2da4ffa566e0c813dc295c44208debb5 (diff) | |
download | linux-3.10-a2c439d432f759533d396b31f856fcb484268104.tar.gz linux-3.10-a2c439d432f759533d396b31f856fcb484268104.tar.bz2 linux-3.10-a2c439d432f759533d396b31f856fcb484268104.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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c index 126e01cb243..6c4791d4634 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1114,7 +1114,8 @@ 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_FORKNOEXEC | PF_KTHREAD); + current->flags &= + ~(PF_RANDOMIZE | PF_FORKNOEXEC | PF_KTHREAD | PF_NOFREEZE); flush_thread(); current->personality &= ~bprm->per_clear; |