From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx182.postini.com [74.125.245.182]) by kanga.kvack.org (Postfix) with SMTP id 526356B004A for ; Tue, 13 Mar 2012 11:35:48 -0400 (EDT) Date: Tue, 13 Mar 2012 16:35:25 +0100 From: Ingo Molnar Subject: Re: [PATCH 2/2] uprobes/core: Handle breakpoint and singlestep exception. Message-ID: <20120313153524.GB12193@elte.hu> References: <20120313140303.17134.1401.sendpatchset@srdronam.in.ibm.com> <20120313140313.17134.52012.sendpatchset@srdronam.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120313140313.17134.52012.sendpatchset@srdronam.in.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Peter Zijlstra , Andrew Morton , Linus Torvalds , Ananth N Mavinakayanahalli , Jim Keniston , LKML , Linux-mm , Oleg Nesterov , Andi Kleen , Christoph Hellwig , Steven Rostedt , Arnaldo Carvalho de Melo , Masami Hiramatsu , Thomas Gleixner * Srikar Dronamraju wrote: > diff --git a/kernel/fork.c b/kernel/fork.c > index 26a7a67..36508b9 100644 > --- a/kernel/fork.c > +++ b/kernel/fork.c > @@ -67,6 +67,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -731,6 +732,8 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm) > exit_pi_state_list(tsk); > #endif > > + uprobe_free_utask(tsk); > + > /* Get rid of any cached register state */ > deactivate_mm(tsk, mm); > > @@ -1322,6 +1325,10 @@ static struct task_struct *copy_process(unsigned long clone_flags, > INIT_LIST_HEAD(&p->pi_state_list); > p->pi_state_cache = NULL; > #endif > +#ifdef CONFIG_UPROBES > + p->utask = NULL; > + p->uprobe_srcu_id = -1; > +#endif > /* > * sigaltstack should be cleared when sharing the same VM > */ Hm, I suspect by looking at the first two hunks you can guess how the third hunk should be done more cleanly? Thanks, Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org