mm-memfd_luo-restore-and-free-memfd_luo_ser-on-failure.patch removed from -mm tree
The quilt patch titled
Subject: mm: memfd_luo: restore and free memfd_luo_ser on failure
has been removed from the -mm tree. Its filename was
mm-memfd_luo-restore-and-free-memfd_luo_ser-on-failure.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Pratyush Yadav (Google)" <[email protected]>
Subject: mm: memfd_luo: restore and free memfd_luo_ser on failure
Date: Thu, 22 Jan 2026 16:18:41 +0100
memfd_luo_ser has the serialization metadata. It is of no use once restoration fails. Free it on failure.
---
mm/memfd_luo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
mm/memfd_luo.c renamed from mm/memfd_luo.c~mm-memfd_luo-restore-and-free-memfd_luo_ser-on-failure +4 -2
@@ -447,7 +447,8 @@ static int memfd_luo_retrieve(struct liv file =memfd_alloc_file ("" ,0 );if (IS_ERR (file)) {pr_err ("failed to setup file: %pe\n" , file); -return PTR_ERR (file); + err =PTR_ERR (file); + goto free_ser; }vfs_setpos (file, ser->pos,MAX_LFS_FILESIZE );
@@ -473,7 +474,8 @@ static int memfd_luo_retrieve(struct liv put_file:fput (file); - +free_ser: +kho_restore_free (ser);return err; }
_
Patches currently in -mm which might be from [email protected] are
liveupdate-luo_file-do-not-clear-serialized_data-on-unfreeze.patch liveupdate-luo_file-remember-retrieve-status.patch memfd-export-memfd_addget_seals.patch mm-memfd_luo-preserve-file-seals.patch kho-use-unsigned-long-for-nr_pages.patch kho-simplify-page-initialization-in-kho_restore_page.patch