The patch titled
     Subject: coredump: fix the setting of PF_DUMPCORE
has been added to the -mm tree.  Its filename is
     coredump-fix-the-setting-of-pf_dumpcore.patch

This patch should soon appear at
    
http://ozlabs.org/~akpm/mmots/broken-out/coredump-fix-the-setting-of-pf_dumpcore.patch
and later at
    
http://ozlabs.org/~akpm/mmotm/broken-out/coredump-fix-the-setting-of-pf_dumpcore.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Silesh C V <svella...@mvista.com>
Subject: coredump: fix the setting of PF_DUMPCORE

commit 079148b91 ("coredump: factor out the setting of PF_DUMPCORE")
cleaned up the setting of PF_DUMPCORE by removing it from all the
linux_binfmt->core_dump() and moving it to zap_threads().But this ended up
clearing all the previously set flags.  This causes issues during core
generation when tsk->flags is checked again (eg.  for PF_USED_MATH to dump
floating point registers).  Fix this.

Signed-off-by: Silesh C V <svella...@mvista.com>
Acked-by: Oleg Nesterov <o...@redhat.com>
Cc: Mandeep Singh Baines <m...@chromium.org>
Cc: <stable@vger.kernel.org>    [3.10+]
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
---

 fs/coredump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/coredump.c~coredump-fix-the-setting-of-pf_dumpcore fs/coredump.c
--- a/fs/coredump.c~coredump-fix-the-setting-of-pf_dumpcore
+++ a/fs/coredump.c
@@ -306,7 +306,7 @@ static int zap_threads(struct task_struc
        if (unlikely(nr < 0))
                return nr;
 
-       tsk->flags = PF_DUMPCORE;
+       tsk->flags |= PF_DUMPCORE;
        if (atomic_read(&mm->mm_users) == nr + 1)
                goto done;
        /*
_

Patches currently in -mm which might be from svella...@mvista.com are

coredump-fix-the-setting-of-pf_dumpcore.patch

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to