Commit 0bd476e6 authored by Will Deacon's avatar Will Deacon Committed by Linus Torvalds

kallsyms: unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()

kallsyms_lookup_name() and kallsyms_on_each_symbol() are exported to
modules despite having no in-tree users and being wide open to abuse by
out-of-tree modules that can use them as a method to invoke arbitrary
non-exported kernel functions.

Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol().
Signed-off-by: default avatarWill Deacon <>
Signed-off-by: default avatarAndrew Morton <>
Reviewed-by: default avatarGreg Kroah-Hartman <>
Reviewed-by: default avatarChristoph Hellwig <>
Reviewed-by: default avatarMasami Hiramatsu <>
Reviewed-by: default avatarQuentin Perret <>
Acked-by: default avatarAlexei Starovoitov <>
Cc: Thomas Gleixner <>
Cc: Frederic Weisbecker <>
Cc: K.Prasad <>
Cc: Miroslav Benes <>
Cc: Petr Mladek <>
Cc: Joe Lawrence <>
Cc: Mathieu Desnoyers <>
Link: default avatarLinus Torvalds <>
parent d8a84d33
......@@ -175,7 +175,6 @@ unsigned long kallsyms_lookup_name(const char *name)
return module_kallsyms_lookup_name(name);
int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
unsigned long),
......@@ -194,7 +193,6 @@ int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
return module_kallsyms_on_each_symbol(fn, data);
static unsigned long get_symbol_pos(unsigned long addr,
unsigned long *symbolsize,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment