The patch titled Subject: mm-hugetlb-resv-map-memory-leak-for-placeholder-entries-v2 has been removed from the -mm tree. Its filename was mm-hugetlb-resv-map-memory-leak-for-placeholder-entries-v2.patch This patch was dropped because it was folded into mm-hugetlb-resv-map-memory-leak-for-placeholder-entries.patch ------------------------------------------------------ From: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Subject: mm-hugetlb-resv-map-memory-leak-for-placeholder-entries-v2 V2: The original version of the patch did not correctly handle placeholder entries before the range to be deleted. The new check is more specific and only matches placeholders at the start of range. Signed-off-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Reported-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff -puN mm/hugetlb.c~mm-hugetlb-resv-map-memory-leak-for-placeholder-entries-v2 mm/hugetlb.c --- a/mm/hugetlb.c~mm-hugetlb-resv-map-memory-leak-for-placeholder-entries-v2 +++ a/mm/hugetlb.c @@ -486,13 +486,15 @@ retry: spin_lock(&resv->lock); list_for_each_entry_safe(rg, trg, head, link) { /* - * file_region ranges are normally of the form [from, to). - * However, there may be a "placeholder" entry in the map - * which is of the form (from, to) with from == to. Check - * for placeholder entries as well. + * Skip regions before the range to be deleted. file_region + * ranges are normally of the form [from, to). However, there + * may be a "placeholder" entry in the map which is of the form + * (from, to) with from == to. Check for placeholder entries + * at the beginning of the range to be deleted. */ - if (rg->to <= f && rg->to != rg->from) + if (rg->to <= f && (rg->to != rg->from || rg->to != f)) continue; + if (rg->from >= t) break; _ Patches currently in -mm which might be from mike.kravetz@xxxxxxxxxx are mm-hugetlb-resv-map-memory-leak-for-placeholder-entries.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