Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coredump: fix the setting of PF_DUMPCORE
Commit 079148b ("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 <[email protected]> Acked-by: Oleg Nesterov <[email protected]> Cc: Mandeep Singh Baines <[email protected]> Cc: <[email protected]> [3.10+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information