The patch titled Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer has been added to the -mm tree. Its filename is xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Mike Rapoport <rppt@xxxxxxxxxxxxx> Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer free_p2m_page() wrongly passes a virtual pointer to memblock_free() that treats it as a physical address. Call memblock_free_ptr() instead that gets a virtual address to free the memory. Link: https://lkml.kernel.org/r/20210930185031.18648-3-rppt@xxxxxxxxxx Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Cc: Shahab Vahedi <Shahab.Vahedi@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/xen/p2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/xen/p2m.c~xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer +++ a/arch/x86/xen/p2m.c @@ -197,7 +197,7 @@ static void * __ref alloc_p2m_page(void) static void __ref free_p2m_page(void *p) { if (unlikely(!slab_is_available())) { - memblock_free((unsigned long)p, PAGE_SIZE); + memblock_free_ptr(p, PAGE_SIZE); return; } _ Patches currently in -mm which might be from rppt@xxxxxxxxxxxxx are arch_numa-simplify-numa_distance-allocation.patch xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch memblock-drop-memblock_free_early_nid-and-memblock_free_early.patch memblock-stop-aliasing-__memblock_free_late-with-memblock_free_late.patch memblock-rename-memblock_free-to-memblock_phys_free.patch memblock-use-memblock_free-for-freeing-virtual-pointers.patch