All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] mm/memfd_luo: use KHOSER_PTR for serialized_data checks
@ 2026-06-15 13:05 Tarun Sahu
  2026-06-15 13:05 ` [PATCH 1/1] " Tarun Sahu
  0 siblings, 1 reply; 2+ messages in thread
From: Tarun Sahu @ 2026-06-15 13:05 UTC (permalink / raw)
  To: Pasha Tatashin, Mike Rapoport, Pratyush Yadav
  Cc: Andrew Morton, linux-mm, linux-kernel, kexec, Tarun Sahu

Use the KHOSER_PTR interface for serialized_data in memfd_luo to
perform type-safe pointer conversions and checks.

I have tried to keep the changes minimal. So only changed
the memfd_luo. Would love the suggestions for if we should be changing
struct liveupdate_file_op_args like the following.

@@ -46,7 +47,7 @@ struct liveupdate_file_op_args {
 	struct liveupdate_file_handler *handler;
 	int retrieve_status;
 	struct file *file;
-	u64 serialized_data;
+	DECLARE_KHOSER_PTR(serialized_data, void *);
 	void *private_data;
 };

Ofcourse, it will require change in liveupdate and luo_file.

Tarun Sahu (1):
  mm/memfd_luo: use KHOSER_PTR for serialized_data checks

 mm/memfd_luo.c | 30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)


base-commit: 0e0611827f3349d0a2ac121c023a6d3260dcecdb
-- 
2.54.0.1136.gdb2ca164c4-goog



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

end of thread, other threads:[~2026-06-15 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 13:05 [PATCH 0/1] mm/memfd_luo: use KHOSER_PTR for serialized_data checks Tarun Sahu
2026-06-15 13:05 ` [PATCH 1/1] " Tarun Sahu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.