diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-05-08 09:28:39 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 20:15:08 +0200 |
commit | ea07890a680273b25127129fb555aac0d9324bea (patch) | |
tree | b0742aa5dd90792dc10be3563c1181582d0f5d9e /kernel/kprobes.c | |
parent | Simplify module_get_kallsym() by dropping length arg (diff) | |
download | linux-ea07890a680273b25127129fb555aac0d9324bea.tar.xz linux-ea07890a680273b25127129fb555aac0d9324bea.zip |
Fix race between rmmod and cat /proc/kallsyms
module_get_kallsym() leaks "struct module *" outside of module_mutex which is
no-no, because module can dissapear right after mutex unlock.
Copy all needed information from inside module_mutex into caller-supplied
space.
[bunk@stusta.de: is_exported() can now become static]
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions