archlinuxarm/PKGBUILDs — Issue #127: depmod fails to compute kernel module dependencies
Author: ambrop7
Created: 2012-02-03 00:45:49+00:00
State: open

The depmod program from the kmod-4-2 package fails to properly compute kernel module dependencies on ARMv5 systems:

[root@alarm ~]# modinfo bridge
filename: /lib/modules/2.6.39.4/kernel/net/bridge/bridge.ko
version: 2.3
license: GPL
srcversion: 6B583530AE2B39C7E2317BF
depends: stp,llc
vermagic: 2.6.39.4 preempt mod_unload ARMv5
[root@alarm ~]# depmod
[root@alarm ~]# cat /lib/modules/2.6.39.4/modules.dep |grep bridge
kernel/net/bridge/bridge.ko:
[root@alarm ~]#

See how modinfo properly lists the dependencies, but modules.dep which depmod generates does not contain them. As a result, most kernel modules fail to load because their dependencies are not loaded by modprobe.

The cause is unaligned memory access in a hash function. Patch is attached.