Blame SOURCES/0005-Fix-livepatch-enabled-kernel-detection-in-kpatch-scr.patch

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