Skip to contentSkip to conversation

coredump: always kill the task no matter what

PATCH In review [email protected] 1 participant 2 messages Oct 11, 2012 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coredump: always kill the task no matter what

From: Jerome Glisse <[email protected]>

If do_coredump fails for any reason make sure that the task is actualy wakeup and properly kill otherwise we endup with zombies task.

---
 fs/coredump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/coredump.c +1 -1
index fd37fac..4b61468 100644
@@ -643,11 +643,11 @@ fail_dropcount:
 fail_unlock:
 	kfree(cn.corename);
 fail_corename:
-	coredump_finish(mm);
 	revert_creds(old_cred);
 fail_creds:
 	put_cred(cred);
 fail:
+	coredump_finish(mm);
 	return;
 }
 
Signature · 1 line
1.7.12.1
#1 lore raw
Quoted 29 lines · On Thu, Oct 11, 2012 at 3:07 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

If do_coredump fails for any reason make sure that the task is actualy wakeup and properly kill otherwise we endup with zombies task.

---
 fs/coredump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/coredump.c +1 -2
index fd37fac..4b61468 100644
@@ -643,11 +643,11 @@ fail_dropcount:
 fail_unlock:
        kfree(cn.corename);
 fail_corename:
-       coredump_finish(mm);
        revert_creds(old_cred);
 fail_creds:
        put_cred(cred);
 fail:
+       coredump_finish(mm);
        return;
 }
 
--
Quoted 2 lines

1.7.12.1

Actually wrong patch, this one does not solve my issue.

Cheers,
Jerome