[PATCH v4 0/2] luo: convert serialized ptr to KHOSER_PTR

From: Tarun Sahu

Date: Mon Jun 22 2026 - 18:57:51 EST


Convert raw serialized_data to KHO serializeable pointer (KHOSER_PTR).
This series also takes care of resolving the bug with memfd of using
phys_to_virt before checking the args->serialized_data value.

v4 <- RESEND V3
use only KHOSER_COPY_PTR and have compiler time check for type
excluding void * types. Remove TYPE(UN)SAFE variants.
RESEND V3:
Sent incorrect thread format earlier, this one is with correct
one.
v3 <- v2
Rebased on top of liveupdate/next
v2 <- v1
Use KHOSER_PTR across liveupdate files instead of only memfd_luo

Tarun Sahu (2):
kho: add KHOSER_COPY_TYPE(UN)SAFE for phys copy
luo: Update serialized data to use KHOSER_PTR

include/linux/kho/abi/kexec_handover.h | 11 +++++++++++
include/linux/kho/abi/luo.h | 5 +++--
include/linux/liveupdate.h | 4 ++--
kernel/liveupdate/luo_file.c | 24 ++++++++++++------------
mm/memfd_luo.c | 18 +++++++++---------
5 files changed, 37 insertions(+), 25 deletions(-)


base-commit: e98a9c61721c14bcd29f11f4802e52e908701f7a
--
2.55.0.rc0.786.g65d90a0328-goog