2020-05-11 14:59:12 +08:00
|
|
|
From b407defcd16f6a8a49ed0f66d4902eb0bc1b2021 Mon Sep 17 00:00:00 2001
|
2019-12-30 15:59:18 +08:00
|
|
|
From: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
|
|
|
Date: Fri, 2 Nov 2018 17:24:42 +0000
|
2020-05-11 14:59:12 +08:00
|
|
|
Subject: [PATCH 04/21] livepatch, fix: use THIS modname as the name of
|
2019-12-30 15:59:18 +08:00
|
|
|
ddebug_table
|
|
|
|
|
|
|
|
|
|
We just want a unique name for every module, so put a _ddebug in
|
|
|
|
|
this file as the first of _ddebug array. Then remove path will work
|
|
|
|
|
correctly, use the mod->name.
|
|
|
|
|
|
|
|
|
|
Suggested-by: Li Bin <huawei.libin@huawei.com>
|
|
|
|
|
Signed-off-by: Zhou Chengming <zhouchengming1@huawei.com>
|
|
|
|
|
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
|
|
|
---
|
2020-02-27 17:15:29 -05:00
|
|
|
kmod/patch/livepatch-patch-hook.c | 1 +
|
|
|
|
|
1 file changed, 1 insertion(+)
|
2019-12-30 15:59:18 +08:00
|
|
|
|
|
|
|
|
diff --git a/kmod/patch/livepatch-patch-hook.c b/kmod/patch/livepatch-patch-hook.c
|
2020-02-27 17:15:29 -05:00
|
|
|
index e12fd50..613d037 100644
|
2019-12-30 15:59:18 +08:00
|
|
|
--- a/kmod/patch/livepatch-patch-hook.c
|
|
|
|
|
+++ b/kmod/patch/livepatch-patch-hook.c
|
2020-02-27 17:15:29 -05:00
|
|
|
@@ -473,6 +473,7 @@ out:
|
2019-12-30 15:59:18 +08:00
|
|
|
|
|
|
|
|
static void __exit patch_exit(void)
|
|
|
|
|
{
|
2020-02-27 17:15:29 -05:00
|
|
|
+ pr_debug("make THIS modname first\n");
|
|
|
|
|
#ifndef HAVE_SIMPLE_ENABLE
|
2019-12-30 15:59:18 +08:00
|
|
|
WARN_ON(klp_unregister_patch(lpatch));
|
2020-02-27 17:15:29 -05:00
|
|
|
#endif
|
2019-12-30 15:59:18 +08:00
|
|
|
--
|
2020-02-27 17:15:29 -05:00
|
|
|
2.18.1
|