From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756074Ab2AYQjG (ORCPT ); Wed, 25 Jan 2012 11:39:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19097 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755723Ab2AYQjE (ORCPT ); Wed, 25 Jan 2012 11:39:04 -0500 Date: Wed, 25 Jan 2012 17:31:51 +0100 From: Oleg Nesterov To: Denys Vlasenko Cc: Srikar Dronamraju , Peter Zijlstra , Linus Torvalds , Ingo Molnar , Andrew Morton , LKML , Linux-mm , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Rothwell Subject: Re: [PATCH v9 3.2 1/9] uprobes: Install and remove breakpoints. Message-ID: <20120125163151.GA9242@redhat.com> References: <20120110114821.17610.9188.sendpatchset@srdronam.in.ibm.com> <20120110114831.17610.88468.sendpatchset@srdronam.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/25, Denys Vlasenko wrote: > > On Tue, Jan 10, 2012 at 12:48 PM, Srikar Dronamraju > wrote: > > +/* > > + * opcodes we'll probably never support: > > + * 6c-6d, e4-e5, ec-ed - in > > + * 6e-6f, e6-e7, ee-ef - out > > + * cc, cd - int3, int > > I imagine desire to set a breakpoint on int 0x80 will be rather typical. > (Same for sysenter). May be uprobes will support this later. But imho we should not try to do this now. With the current code, afaics we do not want to allow the UTASK_SSTEP/TIF_SINGLESTEP task to enter the kernel mode, this state is "too special". Just for example, suppose it clones another task and the child gets the invalid uprobe state. Oleg.