[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1abwwqiof.fsf@ebiederm.dsl.xmission.com>
Date: Wed, 25 Apr 2007 14:54:08 -0600
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: Chuck Ebbert <cebbert@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Andi Kleen <ak@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>,
virtualization@...ts.osdl.org, lkml <linux-kernel@...r.kernel.org>,
Zachary Amsden <zach@...are.com>,
Chris Wright <chrisw@...s-sol.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 10/28] i386: map enough initial memory to create lowmem mappings
Jeremy Fitzhardinge <jeremy@...p.org> writes:
> Chuck Ebbert wrote:
>> H. Peter Anvin wrote:
>>
>>> Andi Kleen wrote:
>>>
>>>> Then we would have seen reports surely?
>>>>
>
> Yes, I would have thought so. It surprised me that such an obvious bug
> could be there, apparently for a long time. But it's real, and
> potentially affects everyone. It probably doesn't affect highly modular
> distros much, since the kernel itself will be relatively small.
>
>> I never saw a description of the symptoms of encountering this bug.
>> Does it just hang, or what?
>>
>
> You get an early-fault message on-screen, assuming that's enabled;
> otherwise it will just appear to hang. It happens in pagetable_init,
> when it allocates a new pagetable above the head.S mapping (8M in my
> case). It will only hit if the kernel size approaches a 4M boundary,
> since it won't leave enough space mapped to construct the lowmem mappings.
>
> It only affects native booting, since under Xen all those mappings have
> already been constructed. It happened to me with a paravirt kernel that
> happened to Xen compiled into it, but that was irrelevent (though
> misleading; the 40k difference in kernel size was enough to make it not
> happen in a non-Xen kernel).
Jeremy did your kernel have PAE enabled?
It just occurred to me that we have at all of the memory below 1M (say about
512K) mapped and available to setup new mappings.
The only way I can see a page fault happening is if you were using a PAE
enabled kernel (so you were not updating the current page tables) and
you have more than 256M of low memory, and we don't get any much extra
from always mapping 4M at a time.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists