summaryrefslogtreecommitdiffstats
path: root/lib/.gitignore
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-05-08 09:28:39 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 20:15:08 +0200
commitea07890a680273b25127129fb555aac0d9324bea (patch)
treeb0742aa5dd90792dc10be3563c1181582d0f5d9e /lib/.gitignore
parentSimplify module_get_kallsym() by dropping length arg (diff)
downloadlinux-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 'lib/.gitignore')
0 files changed, 0 insertions, 0 deletions