30 lines
834 B
Diff
30 lines
834 B
Diff
From 54c3d6d8fef188da10a5040c9cc841f35e01bfbf Mon Sep 17 00:00:00 2001
|
|
From: Artem Savkov <asavkov@redhat.com>
|
|
Date: Tue, 7 May 2019 14:12:38 +0200
|
|
Subject: [PATCH] Fix livepatch-enabled kernel detection in kpatch script
|
|
|
|
We can no longer use klp_register_patch symbol to determine if the
|
|
kernel is livepatch-enabled. Use klp_enable_patch instead.
|
|
|
|
Signed-off-by: Artem Savkov <asavkov@redhat.com>
|
|
---
|
|
kpatch/kpatch | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/kpatch/kpatch b/kpatch/kpatch
|
|
index 1d9f90c..bdceff1 100755
|
|
--- a/kpatch/kpatch
|
|
+++ b/kpatch/kpatch
|
|
@@ -126,7 +126,7 @@ find_core_module() {
|
|
}
|
|
|
|
core_loaded () {
|
|
- grep -q -e "T klp_register_patch" -e "T kpatch_register" /proc/kallsyms
|
|
+ grep -q -e "T klp_enable_patch" -e "T kpatch_register" /proc/kallsyms
|
|
}
|
|
|
|
get_module_name () {
|
|
--
|
|
2.21.0
|
|
|