From 7fdb26c4b7d2916ae151265953b66afa34cba900 Mon Sep 17 00:00:00 2001 From: Song Liu Date: Thu, 23 Oct 2025 09:39:44 -0700 Subject: [PATCH] tar-artifacts: Include samples/livepatch/livepatch-sample.ko livepatch and bpf trampoline both use ftrace direct functions. Special cares are needed to make the two work together. To add selftests for livepatch + trampoline, a livepatch kernel module is needed. Enable compiling samples/livepatch/livepatch-sample.ko and include it in the tar artifacts. Signed-off-by: Song Liu --- ci/vmtest/configs/config | 3 +++ tar-artifacts/tar-artifacts.sh | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/vmtest/configs/config b/ci/vmtest/configs/config index 0a50ecf..7a2427b 100644 --- a/ci/vmtest/configs/config +++ b/ci/vmtest/configs/config @@ -1,4 +1,7 @@ CONFIG_KASAN=y CONFIG_KASAN_GENERIC=y CONFIG_KASAN_VMALLOC=y +CONFIG_LIVEPATCH=y +CONFIG_SAMPLES=y +CONFIG_SAMPLE_LIVEPATCH=m # CONFIG_UBSAN=y diff --git a/tar-artifacts/tar-artifacts.sh b/tar-artifacts/tar-artifacts.sh index 49b4011..9167f19 100755 --- a/tar-artifacts/tar-artifacts.sh +++ b/tar-artifacts/tar-artifacts.sh @@ -29,7 +29,7 @@ source "${GITHUB_ACTION_PATH}/../helpers.sh" "${arch}"-linux-gnu-strip --strip-debug "${KBUILD_OUTPUT}"/vmlinux image_name=$(make -C ${REPO_ROOT} ARCH="$(platform_to_kernel_arch "${arch}")" -s image_name) -kbuild_output_file_list=(".config" "${image_name}" "vmlinux") +kbuild_output_file_list=(".config" "${image_name}" "vmlinux" "samples/livepatch/livepatch-sample.ko") function push_to_kout_list() { local item="$1" @@ -88,4 +88,3 @@ if [[ -n "${ARCHIVE_SCHED_EXT_SELFTESTS}" ]]; then fi zstd -T0 -19 -i "${tarball}" -o "${zst_tarball}" -