From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756493Ab2CMPgA (ORCPT ); Tue, 13 Mar 2012 11:36:00 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:49834 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115Ab2CMPf7 (ORCPT ); Tue, 13 Mar 2012 11:35:59 -0400 Date: Tue, 13 Mar 2012 16:35:25 +0100 From: Ingo Molnar 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 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> User-Agent: Mutt/1.5.21 (2010-09-15) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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