Re: [patch] mm: sparsemem memory_present() memory corruption fix

From: Yinghai Lu
Date: Tue Apr 15 2008 - 20:33:54 EST


On Tue, Apr 15, 2008 at 5:19 PM, Christoph Lameter <clameter@xxxxxxx> wrote:
> On Wed, 16 Apr 2008, Ingo Molnar wrote:
>
> > if a !PAE x86 kernel is booted on a 32-bit system with more than
> > 4GB of RAM, then we call memory_present() with a start/end that
> > goes outside the scope of MAX_PHYSMEM_BITS.
>
> Well okay this fixes it but is this the right fix? The arch should not
> call memory_present() with an invalid pfn.

yes in find_max_pfn...

YH
--
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/