Skip to contentSkip to conversation

kho-free-chunks-using-free_page-instead-of-kfree.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 27, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kho: free chunks using free_page() instead of kfree()
has been removed from the -mm tree. Its filename was
kho-free-chunks-using-free_page-instead-of-kfree.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Pratyush Yadav <[email protected]>
Subject: kho: free chunks using free_page() instead of kfree()
Date: Tue, 18 Nov 2025 19:22:16 +0100

Before commit fa759cd75bce5 ("kho: allocate metadata directly from the buddy allocator"), the chunks were allocated from the slab allocator using kzalloc(). Those were rightly freed using kfree().

When the commit switched to using the buddy allocator directly, it missed updating kho_mem_ser_free() to use free_page() instead of kfree().

Fixes fa759cd75bce5 ("kho: allocate metadata directly from the buddy allocator")
Cc Alexander Graf <[email protected]>
Cc David Matlack <[email protected]>

---

 kernel/liveupdate/kexec_handover.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/liveupdate/kexec_handover.c renamed from kernel/liveupdate/kexec_handover.c~kho-free-chunks-using-free_page-instead-of-kfree +1 -1
@@ -360,7 +360,7 @@ static void kho_mem_ser_free(struct khos
 		struct khoser_mem_chunk *tmp = chunk;
 
 		chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
-		kfree(tmp);
+		free_page((unsigned long)tmp);
 	}
 }
 

_

Patches currently in -mm which might be from [email protected] are