From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 871388D003B for ; Tue, 19 Apr 2011 09:12:25 -0400 (EDT) Subject: Re: [PATCH v3 2.6.39-rc1-tip 15/26] 15: uprobes: Handing int3 and singlestep exception. From: Steven Rostedt In-Reply-To: <1303218185.8345.0.camel@twins> References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143527.15455.32854.sendpatchset@localhost6.localdomain6> <1303218185.8345.0.camel@twins> Content-Type: text/plain; charset="ISO-8859-15" Date: Tue, 19 Apr 2011 09:12:21 -0400 Message-ID: <1303218742.7181.96.camel@gandalf.stny.rr.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Srikar Dronamraju , Ingo Molnar , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Jonathan Corbet , Christoph Hellwig , Masami Hiramatsu , Thomas Gleixner , Ananth N Mavinakayanahalli , Oleg Nesterov , LKML , SystemTap , Jim Keniston , Roland McGrath , Andi Kleen , Andrew Morton On Tue, 2011-04-19 at 15:03 +0200, Peter Zijlstra wrote: > On Fri, 2011-04-01 at 20:05 +0530, Srikar Dronamraju wrote: > > + if (unlikely(!utask)) { > > + utask = add_utask(); > > + > > + /* Failed to allocate utask for the current task. */ > > + BUG_ON(!utask); > > That's not really nice is it ;-) means I can make the kernel go BUG by > simply applying memory pressure. Agreed, None of these patches should have a single BUG_ON(). They all must fail nicely. -- Steve > > > + utask->state = UTASK_BP_HIT; > > + } -- 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