The patch titled Subject: mm-fix-a-overflow-in-test_pages_in_a_zone-fix has been added to the -mm tree. Its filename is mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Kani, Toshimitsu" <toshi.kani@xxxxxxx> Subject: mm-fix-a-overflow-in-test_pages_in_a_zone-fix remove assumption that end_pfn is aligned by MAX_ORDER_NR_PAGES Cc: zhong jiang <zhongjiang@xxxxxxxxxx> Cc: Toshi Kani <toshi.kani@xxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memory_hotplug.c~mm-fix-a-overflow-in-test_pages_in_a_zone-fix mm/memory_hotplug.c --- a/mm/memory_hotplug.c~mm-fix-a-overflow-in-test_pages_in_a_zone-fix +++ a/mm/memory_hotplug.c @@ -1512,7 +1512,7 @@ int test_pages_in_a_zone(unsigned long s while ((i < MAX_ORDER_NR_PAGES) && !pfn_valid_within(pfn + i)) i++; - if (i == MAX_ORDER_NR_PAGES) + if (i == MAX_ORDER_NR_PAGES || pfn + i >= end_pfn) continue; page = pfn_to_page(pfn + i); if (zone && page_zone(page) != zone) _ Patches currently in -mm which might be from toshi.kani@xxxxxxx are mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html