* kernel won't boot if kernel image passes 0xffffffff82000000
@ 2010-10-14 23:58 Rong Xu
2010-10-15 4:30 ` H. Peter Anvin
0 siblings, 1 reply; 3+ messages in thread
From: Rong Xu @ 2010-10-14 23:58 UTC (permalink / raw)
To: linux-kernel
I found that if the kernel image passes 0xffffffff82000000, the kernel won't
boot. It dies in very early stage of booting, right after the kernel image
is loaded.
More details:
This is 2.6.26 kernel on x86-64 platform, using the default x86_64 config.
I'm not booting with any option. Kernel image starts from
0xffffffff80000000. kernel_text starts from 0xffffffff80200000. From the
comments in head64.S, I suppose we can use 512M for kernel image, to
0xffffffffa000000 where the module starts. But my experiments shows the
maximum kernel image size is from 0xffffffff80200000 to 0xffffffff82000000
(30MB).
Here are some of the experiments I did:
(1) increase the bss size to let it pass 0xffffffff82000000, then kernel
won't boot.
(2) change the linker-script to move the bss section of a good kernel,
making part of the section pass 0xffffffff82000000, then the kernel
becomes not bootable.
(3) change the linker-script to move the bss section of a good kernel, not
letting it pass 0xffffffff82000000. the result kernel can boot.
(4) keep all sections intact and move PHYSICAL_START to make the end of
kernel image pass 0xffffffff82000000. Kernel won't boot
(5) keep all sections intact and move PHYSICAL_START, not letting the kernel
image pass 0xffffffff82000000. the result kernel can boot.
So it looks this not related to the kernel size, but to the address
0xffffffff82000000. what is special for this address? I could not find any
documentation (or source reference) to this address.
In the head_64.S, we actually initialized the PMD entries for all the
possible 512MB space. I think we should be able to use it. In a booted
kernel, the PMD entries for 0xffffffff82000000 is zeroed out (when I dump
the kernel page table). so I guess this address is not used by other part of
kernel.
I tried kernel 2.6.27 and it seems to have the same issue.
Any comment?
-Rong
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: kernel won't boot if kernel image passes 0xffffffff82000000
2010-10-14 23:58 kernel won't boot if kernel image passes 0xffffffff82000000 Rong Xu
@ 2010-10-15 4:30 ` H. Peter Anvin
2010-10-15 19:11 ` Rong Xu
0 siblings, 1 reply; 3+ messages in thread
From: H. Peter Anvin @ 2010-10-15 4:30 UTC (permalink / raw)
To: Rong Xu; +Cc: linux-kernel
On 10/14/2010 04:58 PM, Rong Xu wrote:
>
> I tried kernel 2.6.27 and it seems to have the same issue.
>
> Any comment?
2.6.26/27 are old kernels. The current kernel is 2.6.35, with 2.6.36
coming out very soon.
As far as I know, this problem was found and fixed about two years ago,
but if you could verify that so is indeed the case that would be useful.
Thanks,
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel won't boot if kernel image passes 0xffffffff82000000
2010-10-15 4:30 ` H. Peter Anvin
@ 2010-10-15 19:11 ` Rong Xu
0 siblings, 0 replies; 3+ messages in thread
From: Rong Xu @ 2010-10-15 19:11 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
Thanks for the information. I just tried 2.6.34 and it indeed does not
have this problem. Do you remember which patch fixed this? I tried
to search in the bugzilla but got no luck.
Regards,
-Rong
On Thu, Oct 14, 2010 at 9:30 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>
> On 10/14/2010 04:58 PM, Rong Xu wrote:
> >
> > I tried kernel 2.6.27 and it seems to have the same issue.
> >
> > Any comment?
>
> 2.6.26/27 are old kernels. The current kernel is 2.6.35, with 2.6.36
> coming out very soon.
>
> As far as I know, this problem was found and fixed about two years ago,
> but if you could verify that so is indeed the case that would be useful.
>
> Thanks,
>
> -hpa
>
> --
> H. Peter Anvin, Intel Open Source Technology Center
> I work for Intel. I don't speak on their behalf.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-15 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 23:58 kernel won't boot if kernel image passes 0xffffffff82000000 Rong Xu
2010-10-15 4:30 ` H. Peter Anvin
2010-10-15 19:11 ` Rong Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox