Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751616AbZIYQpo (ORCPT ); Fri, 25 Sep 2009 12:45:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751249AbZIYQpn (ORCPT ); Fri, 25 Sep 2009 12:45:43 -0400 Received: from casper.infradead.org ([85.118.1.10]:44832 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbZIYQpn (ORCPT ); Fri, 25 Sep 2009 12:45:43 -0400 Date: Fri, 25 Sep 2009 18:45:06 +0200 From: Arjan van de Ven To: "H. Peter Anvin" Cc: Alan Cox , Mathieu Desnoyers , Ingo Molnar , Jason Baron , Thomas Gleixner , Steven Rostedt , Andi Kleen , linux-kernel@vger.kernel.org, Masami Hiramatsu , Prasanna S Panchamukhi , Rusty Lynch , Jim Keniston , Vamsi Krishna S , Suparna Bhattacharya , Nathan Sidwell , Dominique Toupin , Anton Massoud , Richard J Moore Subject: Re: Immediate values Message-ID: <20090925184506.322a9a9a@infradead.org> In-Reply-To: <4ABCED94.4010804@zytor.com> References: <20090924191642.GA19225@elte.hu> <20090924193422.GB2533@elte.hu> <20090925085119.2b77ea04@infradead.org> <20090925073512.GA10346@Krystal> <20090925110206.50ab8a20@lxorguk.ukuu.org.uk> <20090925121449.7bb27b61@infradead.org> <4ABCED94.4010804@zytor.com> Organization: Intel X-Mailer: Claws Mail 3.7.2 (GTK+ 2.14.7; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2264 Lines: 56 On Fri, 25 Sep 2009 09:19:32 -0700 "H. Peter Anvin" wrote: > Arjan van de Ven wrote: > > On Fri, 25 Sep 2009 11:02:06 +0100 > > Alan Cox wrote: > > > >>> Then, following your advice, kprobes should be re-designed to do a > >>> stop_machine around the int3 breakpoint insertion ? And gdb > >>> should be stopping all threads of a target process before > >>> inserting a breakpoint. Therefore, I do not seem to be the only > >>> one confused about Intel statement on this issue. > >> There was considerable discussion abut this when the kprobe stuff > >> went in. If I remember rightly it was stated by someone @intel.com > >> then that int3 was ok (even though its not strictly documented as > >> such). The same is not true for all instructions on all x86 > >> processors unfortunately. > > > > specifically, using int3 *and then going back to the old value*. > > > > As I told Mathieu in person yesterday: > > 1. We have no information if this is safe or not. It is most > certainly not documented as safe, and trying to play language lawyer > with the errata text is pointless, as it's trying to interpret > something that isn't there. > > 2. There are some reasons to believe there might be a safe technique > somewhere in here (the one he described is a possibility, but not the > only one.) > > 3. Being able to patch code without stopping all cores has other > uses, and so spending some time doing legwork on it is probably worth > it. > > 4. "Someone at Intel" isn't a reference... we need to track down > actual CPU architects with real names who can give us a thumbs up or > down. and we need to talk to about 5 or so generations at least. We know whom to talk to, it just will take time (and first indication is frowned faces) AMD will also do the same, and VIA (I think they have dual core/smp as well) -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org -- 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/