Skip to content
Commit be593f4c authored by Rusty Russell's avatar Rusty Russell
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 3bafeb62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment