Re: [patch] mm: nobootmem: fix sign extend problem in__free_pages_memory()

From: Andrew Morton
Date: Mon May 07 2012 - 17:32:20 EST


On Mon, 7 May 2012 14:32:03 -0500
Russ Anderson <rja@xxxxxxx> wrote:

> Systems with 8 TBytes of memory or greater can hit a problem
> where only the the first 8 TB of memory shows up.

erk.

> This is
> due to "int i" being smaller than "unsigned long start_aligned",
> causing the high bits to be dropped.
>
> The fix is to change i to unsigned long to match start_aligned
> and end_aligned.
>
> Thanks to Jack Steiner (steiner@xxxxxxx) for assistance tracking
> this down.
>

I added the Cc: <stable@xxxxxxxxxxxxxxx> to this. The fix is small and
safe and someone might want to run older kernels on such a machine.

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