Skip to content

luo: convert serialized ptr to KHOSER_PTR

Tarun Sahu kexec linux-mm lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest0 of 2 patches 0 repliesNew
  2. v42 patches 6 repliesSuperseded
  3. v3 posting 2/22 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v3 posting 1/22 patches0 repliesSuperseded
v22 patches3 repliesSuperseded

Patches in v5 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchMike Rapoport (Microsoft)Pratyush Yadav (Google)Pasha Tatashin
SeriesA-b R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/2] luo: convert serialized ptr to KHOSER_PTR

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.

v5 <- v4
separate the memfd_luo fix in a new commit to allow backport if needed.

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 (3):
mm/memfd_luo: validate serialized_data before conversion
kho: add KHOSER_COPY_PTR to allow phys copy of serialized ptr
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                         | 22 +++++++++++++---------
 5 files changed, 41 insertions(+), 25 deletions(-)

base-commit: e98a9c61721c14bcd29f11f4802e52e908701f7a

Signature · 1 line
2.55.0.rc0.786.g65d90a0328-goog