mirror of
https://abf.rosa.ru/djam/kernel-5.16.git
synced 2025-02-23 14:02:49 +00:00
30 lines
837 B
Diff
30 lines
837 B
Diff
Subject: [PATCH] Revert "kallsyms: unexport kallsyms_lookup_name() and
|
|
kallsyms_on_each_symbol()"
|
|
|
|
This reverts commit 0bd476e6c67190b5eb7b6e105c8db8ff61103281.
|
|
https://lwn.net/Articles/813350/
|
|
|
|
anbox kernel modules require kallsyms_lookup_name(), they are not propietary stuff like e.g. Nvidia, I want it to work more than trying to fight with violations of GPL where I do not have enough power.
|
|
|
|
Update for 5.15.28
|
|
|
|
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
|
|
--- a/kernel/kallsyms.c
|
|
+++ b/kernel/kallsyms.c
|
|
@@ -203,6 +203,7 @@
|
|
}
|
|
return module_kallsyms_lookup_name(name);
|
|
}
|
|
+EXPORT_SYMBOL_GPL(kallsyms_lookup_name);
|
|
|
|
#ifdef CONFIG_LIVEPATCH
|
|
/*
|
|
@@ -226,6 +227,7 @@
|
|
}
|
|
return 0;
|
|
}
|
|
+EXPORT_SYMBOL_GPL(kallsyms_on_each_symbol);
|
|
#endif /* CONFIG_LIVEPATCH */
|
|
|
|
static unsigned long get_symbol_pos(unsigned long addr,
|
|
|