linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm: memfd_luo: preserve file seals
@ 2026-02-16 18:59 Pratyush Yadav
  2026-02-16 18:59 ` [PATCH v2 1/2] memfd: export memfd_{add,get}_seals() Pratyush Yadav
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pratyush Yadav @ 2026-02-16 18:59 UTC (permalink / raw)
  To: Alexander Graf, Mike Rapoport, Pasha Tatashin, Pratyush Yadav,
	Hugh Dickins, Baolin Wang, Andrew Morton
  Cc: Jason Gunthorpe, Samiullah Khawaja, kexec, linux-mm, linux-kernel

From: "Pratyush Yadav (Google)" <pratyush@kernel.org>

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-17 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-16 18:59 [PATCH v2 0/2] mm: memfd_luo: preserve file seals Pratyush Yadav
2026-02-16 18:59 ` [PATCH v2 1/2] memfd: export memfd_{add,get}_seals() Pratyush Yadav
2026-02-16 18:59 ` [PATCH v2 2/2] mm: memfd_luo: preserve file seals Pratyush Yadav
2026-02-17 21:51 ` [PATCH v2 0/2] " Samiullah Khawaja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox