[Bugme-new] [Bug 8957] New: Exported functions and variables should
not be reachable by the outside of the module until
module_init finishes
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Wed Aug 29 11:33:06 PDT 2007
http://bugzilla.kernel.org/show_bug.cgi?id=8957
Summary: Exported functions and variables should not be reachable
by the outside of the module until module_init finishes
Product: Other
Version: 2.5
KernelVersion: 2.6.23-rc4
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Modules
AssignedTo: other_modules at kernel-bugs.osdl.org
ReportedBy: mattilinnanvuori at yahoo.com
Problem Description: a module's exported functions can be called before before
they are properly initialized by the module_init function.
Steps to reproduce: write a module that exports functions that require
initialization by the module_init function to work correctly.
E.g. spin lock variables are no longer allowed to be initialized by C
initializers of the module but only by spin_lock_init that can be called by the
module_init function. If an exported function calls spin_lock before it is
initialized, it deadlocks.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list