]> git.baikalelectronics.ru Git - kernel.git/commit
module: make module_address_lookup safe
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Jan 2008 22:13:22 +0000 (17:13 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Jan 2008 06:13:23 +0000 (17:13 +1100)
commit26c77fc93c2783c8efaa7a8ab64b7fb1b2ea0f6b
tree5c946eb93f30c64fd435bdd6d1064880ef21557a
parent9a183b43d98e09cc8744d6aedaa8fe475127bc06
module: make module_address_lookup safe

module_address_lookup releases preemption then returns a pointer into
the module space.  The only user (kallsyms) copies the result, so just
do that under the preempt disable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
kernel/kallsyms.c
kernel/module.c