Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754201Ab1FMQu2 (ORCPT ); Mon, 13 Jun 2011 12:50:28 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:35388 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754072Ab1FMQuX (ORCPT ); Mon, 13 Jun 2011 12:50:23 -0400 X-Authority-Analysis: v=1.1 cv=yMxAJ7W7nAoPh8ZdbvCArpG6pAdHwgpzIvOq8QbMesM= c=1 sm=0 a=59rg9CyDpX8A:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=f5IAXkr0KiT0SUQI9KwA:9 a=PUjeQqilurYA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: [PATCH v4 3.0-rc2-tip 4/22] 4: Uprobes: register/unregister probes. From: Steven Rostedt To: Peter Zijlstra Cc: Srikar Dronamraju , Ingo Molnar , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Ananth N Mavinakayanahalli , Hugh Dickins , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Oleg Nesterov , Andrew Morton , Jim Keniston , Roland McGrath , Andi Kleen , LKML In-Reply-To: <1307660606.2497.1770.camel@laptop> References: <20110607125804.28590.92092.sendpatchset@localhost6.localdomain6> <20110607125900.28590.16071.sendpatchset@localhost6.localdomain6> <1307660606.2497.1770.camel@laptop> Content-Type: text/plain; charset="ISO-8859-15" Date: Mon, 13 Jun 2011 12:50:19 -0400 Message-ID: <1307983819.9218.78.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 810 Lines: 23 On Fri, 2011-06-10 at 01:03 +0200, Peter Zijlstra wrote: > The comment in del_consumer() that says: 'drop creation ref' worries me > and makes me thing that is the last reference around and the uprobe will > be freed right there, which clearly cannot happen since its not yet > removed from the RB-tree. I agree about that comment. It scared me too, not only about the RB tree, but the uprobe is used later in that function to drop the write_rwsem. I think that comment needs to be changed to something like: /* Have caller drop the creation ref */ -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/