* [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)
@ 2004-06-17 16:29 Greg KH
2004-06-17 17:31 ` Oleg Drokin
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2004-06-17 16:29 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Hi,
Distros have started to ship kernels with this patch, as it seems that
some unnamed binary module authors are already abusing this function (as
well as some open source modules, like the openib code.) I could not
find any valid reason why this symbol should be exported, so here's a
patch against 2.6.7 that removes it.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
thanks,
greg k-h
diff -Nru a/kernel/kallsyms.c b/kernel/kallsyms.c
--- a/kernel/kallsyms.c Thu Jun 17 09:26:17 2004
+++ b/kernel/kallsyms.c Thu Jun 17 09:26:17 2004
@@ -320,5 +320,4 @@
}
__initcall(kallsyms_init);
-EXPORT_SYMBOL(kallsyms_lookup);
EXPORT_SYMBOL(__print_symbol);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)
2004-06-17 16:29 [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup) Greg KH
@ 2004-06-17 17:31 ` Oleg Drokin
2004-06-17 17:50 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Oleg Drokin @ 2004-06-17 17:31 UTC (permalink / raw)
To: greg, linux-kernel
Hello!
Greg KH <greg@kroah.com> wrote:
GK> Distros have started to ship kernels with this patch, as it seems that
GK> some unnamed binary module authors are already abusing this function (as
GK> well as some open source modules, like the openib code.) I could not
GK> find any valid reason why this symbol should be exported, so here's a
What if some extra carefully written code detects some (non fatal) problem in
itself and decides to dump a decoded backtrace to some internal log buffer,
user will find this later and will send a bugreport to developers?
(yes, there are problems with simply doing dump_stack()).
Or perhaps we need dump_stack version that will print the dump into a
supplied buffer then?
Bye,
Oleg
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)
2004-06-17 17:31 ` Oleg Drokin
@ 2004-06-17 17:50 ` Greg KH
2004-06-17 19:28 ` Christoph Hellwig
2004-06-17 20:14 ` Dave Kleikamp
2 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-06-17 17:50 UTC (permalink / raw)
To: Oleg Drokin; +Cc: linux-kernel
On Thu, Jun 17, 2004 at 08:31:10PM +0300, Oleg Drokin wrote:
> Hello!
>
> Greg KH <greg@kroah.com> wrote:
> GK> Distros have started to ship kernels with this patch, as it seems that
> GK> some unnamed binary module authors are already abusing this function (as
> GK> well as some open source modules, like the openib code.) I could not
> GK> find any valid reason why this symbol should be exported, so here's a
>
> What if some extra carefully written code detects some (non fatal) problem in
> itself and decides to dump a decoded backtrace to some internal log buffer,
> user will find this later and will send a bugreport to developers?
Do you have an example of code in the current kernel tree that does
this? If not, then feel free to bring up the discussion about exporting
this symbol at that point in time :)
> (yes, there are problems with simply doing dump_stack()).
> Or perhaps we need dump_stack version that will print the dump into a
> supplied buffer then?
That might be useful.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)
2004-06-17 17:31 ` Oleg Drokin
2004-06-17 17:50 ` Greg KH
@ 2004-06-17 19:28 ` Christoph Hellwig
2004-06-17 20:14 ` Dave Kleikamp
2 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2004-06-17 19:28 UTC (permalink / raw)
To: Oleg Drokin; +Cc: greg, linux-kernel
On Thu, Jun 17, 2004 at 08:31:10PM +0300, Oleg Drokin wrote:
> user will find this later and will send a bugreport to developers?
> (yes, there are problems with simply doing dump_stack()).
> Or perhaps we need dump_stack version that will print the dump into a
> supplied buffer then?
Yes, please please please! ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)
2004-06-17 17:31 ` Oleg Drokin
2004-06-17 17:50 ` Greg KH
2004-06-17 19:28 ` Christoph Hellwig
@ 2004-06-17 20:14 ` Dave Kleikamp
2 siblings, 0 replies; 5+ messages in thread
From: Dave Kleikamp @ 2004-06-17 20:14 UTC (permalink / raw)
To: Oleg Drokin; +Cc: linux-kernel
On Thu, 2004-06-17 at 12:31, Oleg Drokin wrote:
> Or perhaps we need dump_stack version that will print the dump into a
> supplied buffer then?
That would make it easy to implement /proc/<num>/stack. I think that
would be useful.
--
David Kleikamp
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-17 20:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-17 16:29 [PATCH] remove EXPORT_SYMBOL(kallsyms_lookup) Greg KH
2004-06-17 17:31 ` Oleg Drokin
2004-06-17 17:50 ` Greg KH
2004-06-17 19:28 ` Christoph Hellwig
2004-06-17 20:14 ` Dave Kleikamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox