2014-01-22 16:33:00

by Dave Jones

[permalink] [raw]
Subject: hang on early boot, numa init code stack overflow?

I'm seeing a hang during boot on my test box running the current tree,
It doesn't always happen, perhaps one in five boots.
I managed to get a partial trace after booting with earlyprintk=vga

dump_stack
panic
? numa_clear_kernel_node_hotplug
__stack_chk_fail
numa_clear_kernel_node_hotplug
? memblock_search_pfn_nid
? __early_pfn_to_nid
numa_init
x86_numa_init
initmem_init
setup_arch
start_kernel

Looks like something overflowed the stack.
This is just a quad-core i5, nothing fancy numa-wise.

This code was added in a0acda917284183f9b71e2d08b0aa0aea722b321

Dave


2014-01-22 23:36:50

by Tang Chen

[permalink] [raw]
Subject: Re: hang on early boot, numa init code stack overflow?

On 01/23/2014 12:32 AM, Dave Jones wrote:
> I'm seeing a hang during boot on my test box running the current tree,
> It doesn't always happen, perhaps one in five boots.
> I managed to get a partial trace after booting with earlyprintk=vga
>
> dump_stack
> panic
> ? numa_clear_kernel_node_hotplug
> __stack_chk_fail
> numa_clear_kernel_node_hotplug
> ? memblock_search_pfn_nid
> ? __early_pfn_to_nid
> numa_init
> x86_numa_init
> initmem_init
> setup_arch
> start_kernel
>
> Looks like something overflowed the stack.
> This is just a quad-core i5, nothing fancy numa-wise.
>
> This code was added in a0acda917284183f9b71e2d08b0aa0aea722b321

Will send a patch to fix it today.

Thanks.

>
> Dave
>
>