]> git.baikalelectronics.ru Git - kernel.git/commit
module: verify_export_symbols under the lock
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 17:17:37 +0000 (11:17 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 01:47:37 +0000 (11:17 +0930)
commit533d915e87b03ad763d410c8c75e48dcefb24ce1
tree693aee53e2d87a8ae92b6276d2aef766e8154814
parenta061c3c36dab805cede794947e39e058012b515d
module: verify_export_symbols under the lock

It disabled preempt so it was "safe", but nothing stops another module
slipping in before this module is added to the global list now we don't
hold the lock the whole time.

So we check this just after we check for duplicate modules, and just
before we put the module in the global list.

(find_symbol finds symbols in coming and going modules, too).

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