Please sign in to comment.
mm: nobootmem: fix sign extend problem in __free_pages_memory()
commit 6bc2e85 upstream. Systems with 8 TBytes of memory or greater can hit a problem where only the the first 8 TB of memory shows up. 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 for assistance tracking this down. Signed-off-by: Russ Anderson <firstname.lastname@example.org> Cc: Jack Steiner <email@example.com> Cc: Johannes Weiner <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Cc: David S. Miller <firstname.lastname@example.org> Cc: Yinghai Lu <email@example.com> Cc: Gavin Shan <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org> Signed-off-by: Ben Hutchings <email@example.com>
- Loading branch information...