Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759229AbYG0Tfg (ORCPT ); Sun, 27 Jul 2008 15:35:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757490AbYG0Tf3 (ORCPT ); Sun, 27 Jul 2008 15:35:29 -0400 Received: from qb-out-0506.google.com ([72.14.204.230]:3317 "EHLO qb-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751006AbYG0Tf2 (ORCPT ); Sun, 27 Jul 2008 15:35:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=CfrryTjWenjwbmt+X2ALYFwfQBy65IQ7gq1ycPRKEShnD0xZp2y+bsmJgUtPqLY5je Hv8ZSodO4d8QQPogYSl+MgxUsmxygJ4WmAB9yxHc0XELmYa+A/K7pqNvoqakRi/2SaVX jlgnokE/l54GY+dF9ZqEtFmBjtIv1zHogcn/A= Message-ID: <19f34abd0807271235q516fc2e1rc43c6736044eabfc@mail.gmail.com> Date: Sun, 27 Jul 2008 21:35:27 +0200 From: "Vegard Nossum" To: "Thomas Gleixner" Subject: Re: -git: BUG: unable to handle kernel paging request at c0100248 [CPU hotplug] Cc: "Dmitry Adamushko" , lkml , "Thomas Meyer" , "the arch/x86 maintainers" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <19f34abd0807270255o1ff260a8ucb9d931905aa4947@mail.gmail.com> <19f34abd0807271019i2112498ay57c267354bd63a8c@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 41 On Sun, Jul 27, 2008 at 9:23 PM, Thomas Gleixner wrote: > On Sun, 27 Jul 2008, Vegard Nossum wrote: >> Booting processor 1/1 ip 6000 >> Initializing CPU#1 >> [...] >> Write protecting the kernel text: 5648k >> >> So it succeeds because the protection happens much later :-) > > Patch below fixes the issue. I get it to Linus ASAP. Nice :) [...] > +.section .cpuinit.data,"wa" > +.align 4 > +ENTRY(initial_code) > + .long i386_start_kernel > + > .section .text > /* > * Real beginning of normal "text" segment > Hm, isn't there some kind of "section stack" that can be used to restore the previous section? .pushsection/.popsection directives? Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036 -- 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/