From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754882Ab1KWTtN (ORCPT ); Wed, 23 Nov 2011 14:49:13 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:62115 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753290Ab1KWTtM (ORCPT ); Wed, 23 Nov 2011 14:49:12 -0500 X-Authority-Analysis: v=2.0 cv=NJxXCjGg c=1 sm=0 a=ZycB6UtQUfgMyuk2+PxD7w==:17 a=a_aNjojq4BQA:10 a=5SG0PmZfjMsA:10 a=IkcTkHD0fZMA:10 a=6R96RxJX0PxbPhCWiUoA:9 a=QEXdDO2ut3YA:10 a=ZycB6UtQUfgMyuk2+PxD7w==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.80.29 Subject: Re: [PATCH v7 3.2-rc2 5/30] uprobes: copy of the original instruction. From: Steven Rostedt To: Peter Zijlstra Cc: Srikar Dronamraju , Linus Torvalds , Oleg Nesterov , Andrew Morton , LKML , Linux-mm , Ingo Molnar , Andi Kleen , Christoph Hellwig , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Wilson In-Reply-To: <1322073616.14799.96.camel@twins> References: <20111118110631.10512.73274.sendpatchset@srdronam.in.ibm.com> <20111118110733.10512.11835.sendpatchset@srdronam.in.ibm.com> <1322073616.14799.96.camel@twins> Content-Type: text/plain; charset="UTF-8" Date: Wed, 23 Nov 2011 14:49:08 -0500 Message-ID: <1322077748.20742.68.camel@frodo> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-11-23 at 19:40 +0100, Peter Zijlstra wrote: > On Fri, 2011-11-18 at 16:37 +0530, Srikar Dronamraju wrote: > > + /* TODO : Analysis and verification of instruction */ > > As in refuse to set a breakpoint on an instruction we can't deal with? > > Do we care? The worst case we'll crash the program, but if we're allowed > setting uprobes we already have enough privileges to do that anyway, > right? Well, I wouldn't be happy if I was running a server, and needed to analyze something it was doing, and because I screwed up the location of my probe, I crash the server, made lots of people unhappy and lose my job over it. I think we do care, but it can be a TODO item. -- Steve