[PATCH 0/6] selftests/liveupdate: add memfd tests

Pratyush Yadav posted 6 patches 1 month ago
There is a newer version of this series
tools/testing/selftests/liveupdate/Makefile   |   2 +
.../testing/selftests/liveupdate/luo_memfd.c  | 306 ++++++++++++++++++
.../selftests/liveupdate/luo_test_utils.c     | 175 +++++++++-
.../selftests/liveupdate/luo_test_utils.h     |   9 +
4 files changed, 491 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/liveupdate/luo_memfd.c
[PATCH 0/6] selftests/liveupdate: add memfd tests
Posted by Pratyush Yadav 1 month ago
From: "Pratyush Yadav (Google)" <pratyush@kernel.org>

Hi,

This series adds some tests for memfd preservation across a live update.
Currently memfd is only tested indirectly via luo_kexec_simple or
luo_multi_session. Add a dedicated test suite for it.

Patches 1 and 2 are preparatory, adding base framework and helpers, and
the other patches each add a test. Some of the code is taken from the
libluo patches [0] I sent a while ago.

[0] https://lore.kernel.org/linux-mm/20250723144649.1696299-33-pasha.tatashin@soleen.com/

Regards,
Pratyush Yadav

Pratyush Yadav (Google) (6):
  selftests/liveupdate: add framework for memfd tests
  selftests/liveupdate: add helper functions for memfd tests
  selftests/liveupdate: add test for memfd content preservation
  selftests/liveupdate: add test for zero-size memfd preservation
  selftests/liveupdate: add test for operations on a preserved memfd
  selftests/liveupdate: add fallocate test for memfd

 tools/testing/selftests/liveupdate/Makefile   |   2 +
 .../testing/selftests/liveupdate/luo_memfd.c  | 306 ++++++++++++++++++
 .../selftests/liveupdate/luo_test_utils.c     | 175 +++++++++-
 .../selftests/liveupdate/luo_test_utils.h     |   9 +
 4 files changed, 491 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/liveupdate/luo_memfd.c


base-commit: 6f04517c06a898228eda00cbd8573d9e84003108
-- 
2.53.0.473.g4a7958ca14-goog