On Mon, Feb 16, 2026 at 11:00 AM Pratyush Yadav <[email protected]> wrote: > > 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(-) > > -- > 2.53.0.335.g19a08e0c02-goog >
Tested-by: Samiullah Khawaja <[email protected]> Tested with IOMMU persistence patch series using iommufd_liveupdate test.
