This is a note to let you know that I've just added the patch titled mm/memremap: fix missing call to untrack_pfn() in pagemap_range() to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mm-memremap-fix-missing-call-to-untrack_pfn-in-pagemap_range.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From a04e1928e2ead144dc2f369768bc0a0f3110af89 Mon Sep 17 00:00:00 2001 From: Miaohe Lin <linmiaohe@xxxxxxxxxx> Date: Tue, 31 May 2022 20:26:43 +0800 Subject: mm/memremap: fix missing call to untrack_pfn() in pagemap_range() From: Miaohe Lin <linmiaohe@xxxxxxxxxx> commit a04e1928e2ead144dc2f369768bc0a0f3110af89 upstream. We forget to call untrack_pfn() to pair with track_pfn_remap() when range is not allowed to hotplug. Fix it by jump err_kasan. Link: https://lkml.kernel.org/r/20220531122643.25249-1-linmiaohe@xxxxxxxxxx Fixes: bca3feaa0764 ("mm/memory_hotplug: prevalidate the address range being added with platform") Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Acked-by: Muchun Song <songmuchun@xxxxxxxxxxxxx> Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- mm/memremap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memremap.c +++ b/mm/memremap.c @@ -245,7 +245,7 @@ static int pagemap_range(struct dev_page if (!mhp_range_allowed(range->start, range_len(range), !is_private)) { error = -EINVAL; - goto err_pfn_remap; + goto err_kasan; } mem_hotplug_begin(); Patches currently in stable-queue which might be from linmiaohe@xxxxxxxxxx are queue-5.15/mm-memremap-fix-missing-call-to-untrack_pfn-in-pagemap_range.patch queue-5.15/mm-compaction-fast_find_migrateblock-should-return-pfn-in-the-target-zone.patch queue-5.15/drivers-base-node.c-fix-compaction-sysfs-file-leak.patch