Re: panic on bootup due to __GFP_ZERO patch
From: Andrew Morton
Date: Sun Jan 09 2005 - 04:46:58 EST
Chris Wright <chrisw@xxxxxxxx> wrote:
>
> I'm getting a panic during pidmap_init with a backtrace that looks
> something like:
>
> buffered_rmqueue
> __alloc_pages
> get_zeroed_page
> pidmap_init
> start_kernel
>
> Reverting the __GFP_ZERO patch fixes the issue, haven't drilled down
> any deeper yet to see what in the patch is causing the problem. This is
> x86 w/out HIGHMEM (and no NUMA).
>
Well it's doing clear_highpage() before __alloc_pages() has called
kernel_map_pages(), so CONFIG_DEBUG_PAGEALLOC is quite kaput.
So the current __GFP_ZERO buglist is:
1: Breaks CONFIG_DEBUG_PAGEALLOC
2: Breaks the cache aliasing protection for anonymous pages
3: prep_zero_page() uses KM_USER0 so __GFP_ZERO from IRQ context will
cause rare memory corruption.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/