From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756119AbYDZLQi (ORCPT ); Sat, 26 Apr 2008 07:16:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752668AbYDZLQ3 (ORCPT ); Sat, 26 Apr 2008 07:16:29 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:46258 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbYDZLQ1 (ORCPT ); Sat, 26 Apr 2008 07:16:27 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=V7GwhK08Zm64kpzaIs8tgEiMA7huHE7LRyYJKTh6FLA9M7CLOAwDtuQAxyVRKGUUZg6tqx1G4RAgtTqRPTEh5ygas0OF+hN5H01DFOhcULcZr1aExOhhpM7JjdbnvJpssYcQc1lHqqS1oNS3bKgArvccDtSUe15OOaw5muKXymI= Message-ID: <48130F00.5010408@gmail.com> Date: Sat, 26 Apr 2008 13:16:16 +0200 From: Jiri Slaby User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Andi Kleen CC: Christoph Lameter , Linus Torvalds , David Miller , zdenek.kabelac@gmail.com, rjw@sisk.pl, paulmck@linux.vnet.ibm.com, akpm@linux-foundation.org, linux-ext4@vger.kernel.org, herbert@gondor.apana.org.au, penberg@cs.helsinki.fi, linux-kernel@vger.kernel.org, Mathieu Desnoyers , pageexec@freemail.hu, "H. Peter Anvin" , Jeremy Fitzhardinge , Ingo Molnar Subject: Re: [PATCH 1/1] x86: fix text_poke References: <20080425.021301.193689806.davem@davemloft.net> <1209343883-7991-1-git-send-email-jirislaby@gmail.com> <20080425151747.GA3265@one.firstfloor.org> <20080426095938.GB17905@one.firstfloor.org> In-Reply-To: <20080426095938.GB17905@one.firstfloor.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/26/2008 11:59 AM, Andi Kleen wrote: > On Fri, Apr 25, 2008 at 12:36:33PM -0700, Christoph Lameter wrote: >> On Fri, 25 Apr 2008, Andi Kleen wrote: >> >>>> And we should really add a lot more sanity checking there. >>> A debug mode for virt_to_page(),__pa,__va et.al. would probably make sense >>> and would have caught it. >>> >>> I used to have that partly in the x86-64 port with VIRTUAL_BUG_ON. >> Good idea! Do you have a patch? > > Yes. Appended. But it just enables the old NUMA VIRTUAL_BUG_ON()s, more > work could be done e.g. by instrumenting pa/va and the non NUMA and i386 > case too. Is anybody working on that? I would volunteer to do it. > --- linux.orig/include/asm-x86/mmzone_64.h > +++ linux/include/asm-x86/mmzone_64.h > @@ -7,7 +7,11 @@ > > #ifdef CONFIG_NUMA > > +#ifdef CONFIG_DEBUG_VIRTUAL > +#define VIRTUAL_BUG_ON(x) BUG_ON(x) > +#else > #define VIRTUAL_BUG_ON(x) > +#endif > > #include