]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
coredump: fix the setting of PF_DUMPCORE
authorSilesh C V <svellattu@mvista.com>
Wed, 23 Jul 2014 20:59:59 +0000 (13:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Jul 2014 22:10:54 +0000 (15:10 -0700)
commitaed8adb7688d5744cb484226820163af31d2499a
tree90ccf665967201bfc6ea7cb3480b89fd8bff0551
parent15ba2236f3556fc01b9ca91394465152b5ea74b6
coredump: fix the setting of PF_DUMPCORE

Commit 079148b919d0 ("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 <svellattu@mvista.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Mandeep Singh Baines <msb@chromium.org>
Cc: <stable@vger.kernel.org> [3.10+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coredump.c