Files
twx-linux/kernel
Ed Swierk de37843b23 load_module: no BUG if module_subsys uninitialized
Invoking load_module() before param_sysfs_init() is called crashes in
mod_sysfs_setup(), since the kset in module_subsys is not initialized yet.

In my case, net-pf-1 is getting modprobed as a result of hotplug trying to
create a UNIX socket.  Calls to hotplug begin after the topology_init
initcall.

Another patch for the same symptom (module_subsys-initialize-earlier.patch)
moves param_sysfs_init() to the subsys initcalls, but this is still not
early enough in the boot process in some cases.  In particular,
topology_init() causes /sbin/hotplug to run, which requests net-pf-1 (the
UNIX socket protocol) which can be compiled as a module.  Moving
param_sysfs_init() to the postcore initcalls fixes this particular race,
but there might well be other cases where a usermodehelper causes a module
to load earlier still.

The patch makes load_module() return an error rather than crashing the
kernel if invoked before module_subsys is initialized.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
2007-03-21 00:28:30 +01:00
..
2006-01-08 20:13:48 -08:00
2006-08-03 21:56:53 +02:00
2006-01-11 18:42:13 -08:00
2006-01-18 19:20:30 -08:00
2006-01-11 18:42:13 -08:00
2006-01-09 15:59:19 -08:00
2006-01-08 20:13:40 -08:00
2006-03-08 14:14:01 -08:00
2006-03-08 14:14:01 -08:00
2006-11-24 03:08:27 +01:00
2006-04-24 09:56:05 -07:00