From patchwork Thu Nov 22 04:50:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3.5.yuz, extended, stable] Patch "freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD" has been added to staging queue Date: Wed, 21 Nov 2012 18:50:26 -0000 From: Herton Ronaldo Krzesinski X-Patchwork-Id: 201010 Message-Id: <1353559826-4061-1-git-send-email-herton.krzesinski@canonical.com> To: Oleg Nesterov Cc: Tejun Heo , kernel-team@lists.ubuntu.com, "Rafael J. Wysocki" This is a note to let you know that I have just added a patch titled freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD to the linux-3.5.y-queue branch of the 3.5.yuz extended stable tree which can be found at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue If you, or anyone else, feels it should not be added to this tree, please reply to this email. For more information about the 3.5.yuz tree, see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable Thanks. -Herton ------ >From 515e76dc2ae6025a4d85c88832eb8c7008539253 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Thu, 25 Oct 2012 22:28:12 +0200 Subject: [PATCH] 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 Acked-by: Tejun Heo Signed-off-by: Rafael J. Wysocki Signed-off-by: Herton Ronaldo Krzesinski --- fs/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.7.9.5 diff --git a/fs/exec.c b/fs/exec.c index e95aeed..8726a93 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1110,7 +1110,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;