Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754928Ab1DSNEO (ORCPT ); Tue, 19 Apr 2011 09:04:14 -0400 Received: from casper.infradead.org ([85.118.1.10]:41618 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754317Ab1DSNEN convert rfc822-to-8bit (ORCPT ); Tue, 19 Apr 2011 09:04:13 -0400 Subject: Re: [PATCH v3 2.6.39-rc1-tip 15/26] 15: uprobes: Handing int3 and singlestep exception. From: Peter Zijlstra To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , 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 In-Reply-To: <20110401143527.15455.32854.sendpatchset@localhost6.localdomain6> References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143527.15455.32854.sendpatchset@localhost6.localdomain6> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Tue, 19 Apr 2011 15:03:05 +0200 Message-ID: <1303218185.8345.0.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 17 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. > + utask->state = UTASK_BP_HIT; > + } -- 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/