From: Linus Torvalds Subject: Re: [PATCH 1/1] x86: fix text_poke Date: Fri, 25 Apr 2008 08:03:27 -0700 (PDT) Message-ID: References: <20080425.021301.193689806.davem@davemloft.net> <1209343883-7991-1-git-send-email-jirislaby@gmail.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: 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, clameter@sgi.com, linux-kernel@vger.kernel.org, Mathieu Desnoyers , Andi Kleen , pageexec@freemail.hu, "H. Peter Anvin" , Jeremy Fitzhardinge , Ingo Molnar To: Jiri Slaby Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:35466 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbYDYPGT (ORCPT ); Fri, 25 Apr 2008 11:06:19 -0400 In-Reply-To: <1209343883-7991-1-git-send-email-jirislaby@gmail.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, 28 Apr 2008, Jiri Slaby wrote: > > Thanks. Bisected mm down to git-x86.patch, bisected git-x86-latest down to > x86: enhance DEBUG_RODATA support - alternatives > The patch below fixes the problem for me. Comments welcome. You're a hero, Jiri. And that also explains why I didn't see it - I don't do modules. Thanks a heap. > The 0xf0 pattern comes from alternatives_smp_lock: > text_poke(*ptr, ((unsigned char []){0xf0}), 1); And we should really add a lot more sanity checking there. Linus