[Bug 627] modprobe-small: incorrect alias-based probe with dep_bb_fd < 0

bugzilla at busybox.net bugzilla at busybox.net
Tue Sep 29 14:13:15 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=627





--- Comment #14 from Jiri J. <jirij.jabb at gmail.com>  2009-09-29 14:13:15 UTC ---
(In reply to comment #13)
> module-init-tools should be suffering from the same problem.
> 
> In their case, the order will be controlled by modules.alias.
> 
> Whether ata_piix or ata_generic will be first in modules.alias
> is determined by readdir() order in which depmod reads modules.
> 
> IOW: it also will be basically random.
> 
> Can you test this theory?
> 

Indeed I can. And I did.

It's true that readdir() affects them as well, all three files (.alias, .dep,
.symbols) are in reverse when depmod is run on "copied" modules directory.

Now the interesting stuff - modprobe seems to load everything that matches the
alias. Both ata_generic and ata_piix gets loaded, regardless of line order in
any of those files.
I can confirm it on my libata-using server machine - ata_generic is loaded even
when it's unused (I can safely rmmod it).

Perhaps an config option allowing to use the above algorithm (for more
memory-restrained systems) would be good in modprobe-small case.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list