The patch titled Subject: mm: page_isolation: check pfn validity before access has been added to the -mm tree. Its filename is mm-page_isolation-check-pfn-validity-before-access.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-page_isolation-check-pfn-validity-before-access.patch echo and later at echo http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_isolation-check-pfn-validity-before-access.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: Weijie Yang <weijie.yang@xxxxxxxxxxx> Subject: mm: page_isolation: check pfn validity before access In the undo path of start_isolate_page_range(), we need to check the pfn validity before access its page, or it will trigger an addressing exception if there is hole in the zone. Signed-off-by: Weijie Yang <weijie.yang@xxxxxxxxxxx> Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_isolation.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN mm/page_isolation.c~mm-page_isolation-check-pfn-validity-before-access mm/page_isolation.c --- a/mm/page_isolation.c~mm-page_isolation-check-pfn-validity-before-access +++ a/mm/page_isolation.c @@ -176,8 +176,11 @@ int start_isolate_page_range(unsigned lo undo: for (pfn = start_pfn; pfn < undo_pfn; - pfn += pageblock_nr_pages) - unset_migratetype_isolate(pfn_to_page(pfn), migratetype); + pfn += pageblock_nr_pages) { + page = __first_valid_page(pfn, pageblock_nr_pages); + if (page) + unset_migratetype_isolate(page, migratetype); + } return -EBUSY; } _ Patches currently in -mm which might be from weijie.yang@xxxxxxxxxxx are zram-avoid-kunmap_atomic-a-null-pointer.patch mm-page_isolation-check-pfn-validity-before-access.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