Skip to content

mm: memfd_luo hotfixes

Pratyush Yadav linux-mm lkml 1 version Applied

Status from this message: [merged mm-hotfixes-stable] mm-memfd_luo-restore-and-free-memfd_luo_ser-on-failure.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3memfd: export alloc_file()include/linux/memfd.h mm/memfd.c+8 -22 repliesApplied
2/3mm: memfd_luo: use memfd_alloc_file() instead of shmem_file_setup()mm/memfd_luo.c+2 -22 repliesApplied
3/3mm: memfd_luo: restore and free memfd_luo_ser on failuremm/memfd_luo.c+4 -22 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMike Rapoport (Microsoft)Pasha Tatashin
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] mm: memfd_luo hotfixes

From: "Pratyush Yadav (Google)" <[email protected]>

Hi,

This series contains a couple of fixes for memfd preservation using LUO. Patch 1 is a preparatory patch for patch 2. Patch 2 sets up the right flags on the file and makes sure security hooks are called. Patch 3 fixes a small memory leak in the error path.

Andrew, it would be great if we can land these in v6.19, especially patches 1 and 2 since they fix a usability and a security problem. Patch 3 can wait, but then it is pretty simple too. Anyway, since it is pretty late in the cycle, I'll leave it to your judgement.

Regards,
Pratyush Yadav

Pratyush Yadav (Google) (3):
memfd: export alloc_file()
mm: memfd_luo: use memfd_alloc_file() instead of shmem_file_setup()
mm: memfd_luo: restore and free memfd_luo_ser on failure

 include/linux/memfd.h |  6 ++++++
 mm/memfd.c            |  4 ++--
 mm/memfd_luo.c        | 10 ++++++----
 3 files changed, 14 insertions(+), 6 deletions(-)

base-commit: 1ac8a55c76e78fc4fc406fd7bd872d0127d04feb

Signature · 1 line
2.52.0.457.g6b5491de43-goog