Skip to content

Commit

Permalink
livepatch: Re-export two kallsyms functions
Browse files Browse the repository at this point in the history
Revert "kallsyms: unexport kallsyms_lookup_name() and
kallsyms_on_each_symbol()" (bsc#1190003 jsc#SLE-17360).
  • Loading branch information
mirab committed Sep 2, 2021
1 parent 8f68bda commit d62679f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From: Miroslav Benes <mbenes@suse.cz>
Date: Wed, 1 Sep 2021 11:52:11 +0200
Subject: Revert "kallsyms: unexport kallsyms_lookup_name() and
kallsyms_on_each_symbol()"
Patch-mainline: Never, SUSE-specific
References: bsc#1190003 jsc#SLE-17360

This reverts commit 0bd476e6c67190b5eb7b6e105c8db8ff61103281.

Re-export two kallsyms symbols we need for our live patches development.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
---
kernel/kallsyms.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 0ba87982d017..9f5847a50a2b 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -203,6 +203,7 @@ unsigned long kallsyms_lookup_name(const char *name)
}
return module_kallsyms_lookup_name(name);
}
+EXPORT_SYMBOL_GPL(kallsyms_lookup_name);

#ifdef CONFIG_LIVEPATCH
/*
@@ -226,6 +227,7 @@ int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
}
return 0;
}
+EXPORT_SYMBOL_GPL(kallsyms_on_each_symbol);
#endif /* CONFIG_LIVEPATCH */

static unsigned long get_symbol_pos(unsigned long addr,

1 change: 1 addition & 0 deletions series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@
patches.suse/livepatch-define-a-macro-for-new-api-identification.patch
patches.suse/livepatch-dump-ipa-clones.patch
patches.suse/Revert-Revert-kbuild-use-flive-patching-when-CONFIG_LIVEPATCH-is-enabled.patch
patches.suse/Revert-kallsyms-unexport-kallsyms_lookup_name-and-kallsyms_on_each_symbol.patch

########################################################
# Stable minor numbers
Expand Down

0 comments on commit d62679f

Please sign in to comment.