From b453a7a631dea4f8f53ace1a127b8621fa28e953 Mon Sep 17 00:00:00 2001 From: zhangxi Date: Tue, 22 Apr 2025 03:50:57 +0000 Subject: [PATCH] fix: KLP_SYM_PREFIX does not comply with the livepatch naming conventions Replace the separator "-" with "." to comply with the kernel livepatch naming conventions. Signed-off-by: zhangxi --- 0010-symbol-lookup-enhancement.patch | 2 +- kpatch.spec | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/0010-symbol-lookup-enhancement.patch b/0010-symbol-lookup-enhancement.patch index 0c01619..d611a40 100644 --- a/0010-symbol-lookup-enhancement.patch +++ b/0010-symbol-lookup-enhancement.patch @@ -161,7 +161,7 @@ index c50f0dd..89d37c8 100644 + snprintf(buf, 256, KLP_SYM_PREFIX "%s.%s,%s", objname, name, pos); + } else { + snprintf(pos, 32, "%ld", ref_offset); -+ snprintf(buf, 256, KLP_SYM_PREFIX "%s-%s,%s", objname, ref_name, pos); ++ snprintf(buf, 256, KLP_SYM_PREFIX "%s.%s,%s", objname, ref_name, pos); + } /* Look for an already allocated symbol */ diff --git a/kpatch.spec b/kpatch.spec index 3f2df24..44910a8 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -1,7 +1,7 @@ Name: kpatch Epoch: 1 Version: 0.9.9 -Release: 11 +Release: 12 Summary: A Linux dynamic kernel patching infrastructure License: GPLv2 @@ -125,6 +125,12 @@ popd %{_mandir}/man1/*.1.gz %changelog +* Tue Apr 22 2025 zhangxi - 1:0.9.9-12 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix: KLP_SYM_PREFIX does not comply with the livepatch naming conventions + * Tue Mar 18 2025 yixiangzhike - 1:0.9.9-11 - Type:bugfix - CVE:NA -- Gitee