Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759208AbYG0Tk5 (ORCPT ); Sun, 27 Jul 2008 15:40:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757503AbYG0Tkt (ORCPT ); Sun, 27 Jul 2008 15:40:49 -0400 Received: from py-out-1112.google.com ([64.233.166.178]:23873 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757490AbYG0Tks (ORCPT ); Sun, 27 Jul 2008 15:40:48 -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=TbvfQqZp/+47s+qFezemoamHVzHl+f05ktsnP9Up0xl8Hxsxmf6EXfpTv3jybEhAeW PxPYnJZ+WjVaL+f7nMF/PRoF6bcs8E7vPDBhv8d29HzbLkBFWTB6rLLuizD1QHLCBuVG LBWHAf3mh9JQXGBlHA+zTjK2gKtlOW+OGud7Q= Message-ID: <19f34abd0807271240x71fb85e3qae5d7beaad6eaba3@mail.gmail.com> Date: Sun, 27 Jul 2008 21:40:46 +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: <19f34abd0807271235q516fc2e1rc43c6736044eabfc@mail.gmail.com> 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> <19f34abd0807271235q516fc2e1rc43c6736044eabfc@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1314 Lines: 46 On Sun, Jul 27, 2008 at 9:35 PM, Vegard Nossum wrote: > 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? Oh, never mind :-) (Sorry for the noise.) 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/