Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755708Ab0A0RsV (ORCPT ); Wed, 27 Jan 2010 12:48:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755490Ab0A0RsT (ORCPT ); Wed, 27 Jan 2010 12:48:19 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43924 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754697Ab0A0RsS (ORCPT ); Wed, 27 Jan 2010 12:48:18 -0500 Message-ID: <4B607B1A.3080007@zytor.com> Date: Wed, 27 Jan 2010 09:42:50 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1 MIME-Version: 1.0 To: rostedt@goodmis.org CC: Linus Torvalds , Peter Zijlstra , Tom Tromey , Kyle Moffett , "Frank Ch. Eigler" , Oleg Nesterov , Andrew Morton , Stephen Rothwell , Fr??d??ric Weisbecker , LKML , Arnaldo Carvalho de Melo , linux-next@vger.kernel.org, utrace-devel@redhat.com, Thomas Gleixner , JimKeniston , Arjan van de Ven Subject: Re: linux-next: add utrace tree References: <20100121013822.28781960.sfr@canb.auug.org.au> <20100122005147.GD22003@redhat.com> <20100121170541.7425ff10.akpm@linux-foundation.org> <20100122182827.GA13185@redhat.com> <20100122200129.GG22003@redhat.com> <20100122221348.GA4263@redhat.com> <1264575134.4283.1983.camel@laptop> <1264600792.31321.464.camel@gandalf.stny.rr.com> In-Reply-To: <1264600792.31321.464.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1519 Lines: 40 On 01/27/2010 05:59 AM, Steven Rostedt wrote: > [ Added Arjan ] > > On Wed, 2010-01-27 at 02:43 -0800, Linus Torvalds wrote: >> >> On Wed, 27 Jan 2010, Peter Zijlstra wrote: >>> >>> Right, so you're going to love uprobes, which does exactly that. The >>> current proposal is overwriting the target instruction with an INT3 and >>> injecting an extra vma into the target process's address space >>> containing the original instruction(s) and possible jumps back to the >>> old code stream. >> >> Just out of interest, how does it handle the threading issue? >> >> Last I saw, at least some CPU people were _very_ nervous about overwriting >> instructions if another CPU might be just about to execute them. > > I think the issue was that ring 0 was never meant to do that, where as, > ring 3 does it all the time. Doesn't the dynamic library modify its > text? > No, it has nothing to do with ring. It has to do with modifying code that another CPU could be executing at the same time, and with modifying code on the same processor through another virtual alias (they are different issues.) The same issues apply regardless of the CPL of the processor. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/