Skip to content

mm: memfd_luo: preserve file seals

Pratyush Yadav kexec linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review 1 of 2 applied
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Define the set of seals supported by this version. Support for any other seal would need a version bump. Make sure the memfd only has this set of seals. Reject any that don't.

- Make seals a u32 since uABI defined it as an int. Change the __reserved into flags.

Patches in v2 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2memfd: export memfd_{add,get}_seals()include/linux/memfd.h mm/memfd.c+14 -20 replies
2/2mm: memfd_luo: preserve file sealsinclude/linux/kho/abi/memfd.h mm/memfd_luo.c+50 -30 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMike Rapoport (Microsoft)Samiullah Khawaja
SeriesT-b
1/2A-b
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] mm: memfd_luo: preserve file seals

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

Hi,

This series adds support for preserving file seals when preserving a memfd using LUO. Patch 1 exports some memfd seal manipulation functions and patch 2 adds support for preserving them. Since it makes changes to the serialized data structure for memfd, it also bumps the version number.

Changes in v2:
- Define the set of seals supported by this version. Support for any other seal would need a version bump. Make sure the memfd only has this set of seals. Reject any that don't.

- Make seals a u32 since uABI defined it as an int. Change the __reserved into flags.

Pratyush Yadav (Google) (2):
memfd: export memfd_{add,get}_seals()
mm: memfd_luo: preserve file seals

 include/linux/kho/abi/memfd.h | 18 +++++++++++++++++-
 include/linux/memfd.h         | 12 ++++++++++++
 mm/memfd.c                    |  4 ++--
 mm/memfd_luo.c                | 35 +++++++++++++++++++++++++++++++++--
 4 files changed, 64 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0.335.g19a08e0c02-goog