From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tomts13-srv.bellnexxia.net (tomts13-srv.bellnexxia.net [209.226.175.34]) by ozlabs.org (Postfix) with ESMTP id 172DDDE00B for ; Tue, 19 Aug 2008 13:36:22 +1000 (EST) Received: from toip3.srvr.bell.ca ([209.226.175.86]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20080819033619.XNYS29750.tomts13-srv.bellnexxia.net@toip3.srvr.bell.ca> for ; Mon, 18 Aug 2008 23:36:19 -0400 Date: Mon, 18 Aug 2008 23:36:18 -0400 From: Mathieu Desnoyers To: Steven Rostedt Subject: Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3) Message-ID: <20080819033618.GA24085@Krystal> References: <48A9901B.1080900@redhat.com> <20080818154746.GA26835@Krystal> <48A9AFA7.8080508@freescale.com> <1219110814.8062.2.camel@pasglop> <1219113549.8062.13.camel@pasglop> <20080819024707.GA22659@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: "Paul E. McKenney" , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Steven Rostedt , Scott Wood , Eran Liberty List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , * Steven Rostedt (rostedt@goodmis.org) wrote: > > On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > > > * Steven Rostedt (rostedt@goodmis.org) wrote: > > > > > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > > > > > > > Hmm, this was originally copied from x86, where we did a cmpxchg, but that > > > > > is probably not needed since all of this is done in kstop_machine. Also, > > > > > only the "get" is needed. If we don't fault there, we wont fault on the > > > > > put (unless we have permissions wrong, and that would be a bug). > > > > > > > > Would it ? How do we make sure the kernel text is mapped writeable ? > > > > > > We map it writeable if FTRACE is enabled. > > > > > > > Argh. See text_poke(). It's there exactly for this purpose on x86. > > Ouch, I just did. text_poke is quite heavy. It would be interesting to see > that performed on 20,000 locations at one time. I could play with it, but > I'm a bit nervous. > It's alread used to modify the LOCK prefixes in alternative.c and did not seem to be too slow for that.. it should therefore be ok. Mathieu > -- Steve -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68