• Vivek Goyal's avatar
    [PATCH] x86-64: fix page align in e820 allocator · 73bb8919
    Vivek Goyal authored
    Currently some code pieces assume that address returned by find_e820_area()
    are page aligned.  But looks like find_e820_area() had no such intention
    and hence one might end up stomping over some of the data.  One such case
    is bootmem allocator initialization code stomped over bss.
    
    This patch modified find_e820_area() to return page aligned address.  This
    might be little wasteful of memory but at the same time probably it is
    easier to handle page aligned memory.
    Signed-off-by: default avatarVivek Goyal <vgoyal@in.ibm.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Cc: Andi Kleen <ak@muc.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    73bb8919
e820.c 18.2 KB