From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with ESMTP id 7B14A6B0082 for ; Wed, 15 Jun 2011 14:07:44 -0400 (EDT) Received: from j77219.upc-j.chello.nl ([24.132.77.219] helo=dyad.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.76 #1 (Red Hat Linux)) id 1QWuVB-00052R-Kr for linux-mm@kvack.org; Wed, 15 Jun 2011 18:07:41 +0000 Subject: Re: [PATCH v4 3.0-rc2-tip 7/22] 7: uprobes: mmap and fork hooks. From: Peter Zijlstra In-Reply-To: <20110607125931.28590.12362.sendpatchset@localhost6.localdomain6> References: <20110607125804.28590.92092.sendpatchset@localhost6.localdomain6> <20110607125931.28590.12362.sendpatchset@localhost6.localdomain6> Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Jun 2011 20:11:26 +0200 Message-ID: <1308161486.2171.61.camel@laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Andi Kleen , Hugh Dickins , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Oleg Nesterov , LKML , Jim Keniston , Roland McGrath , Ananth N Mavinakayanahalli , Andrew Morton On Tue, 2011-06-07 at 18:29 +0530, Srikar Dronamraju wrote: > + up_write(&mm->mmap_sem); > + mutex_lock(&uprobes_mutex); > + down_read(&mm->mmap_sem); egads, and all that without a comment explaining why you think that is even remotely sane. I'm not at all convinced, it would expose the mmap() even though you could still decide to tear it down if this function were to fail, I bet there's some funnies there. -- 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