Thread (6 messages) 6 messages, 2 authors, 2016-08-31

Re: [PATCH v2] kernel/fork: fix CLONE_CHILD_CLEARTID regression in nscd

From: Michal Hocko <mhocko@kernel.org>
Date: 2016-08-24 15:37:34
Also in: lkml
Subsystem: exec & binfmt api, elf, memory management - core, scheduler, the rest · Maintainers: Kees Cook, Andrew Morton, David Hildenbrand, Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot, Linus Torvalds

On Wed 24-08-16 17:32:00, Oleg Nesterov wrote:
On 08/24, Michal Hocko wrote:
quoted
Sounds better?
diff --git a/kernel/fork.c b/kernel/fork.c
index b89f0eb99f0a..ddde5849df81 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -914,7 +914,8 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm)
 
 	/*
 	 * Signal userspace if we're not exiting with a core dump
-	 * or a killed vfork parent which shouldn't touch this mm.
+	 * because we want to leave the value intact for debugging
+	 * purposes.
 	 */
 	if (tsk->clear_child_tid) {
 		if (!(tsk->signal->flags & SIGNAL_GROUP_COREDUMP) &&
Yes, thanks Michal!

Acked-by: Oleg Nesterov <oleg@redhat.com>
OK, thanks.
---
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help