insmod broken in 1.12.0

Denys Vlasenko vda.linux at googlemail.com
Thu Sep 4 20:40:11 UTC 2008


On Thursday 04 September 2008 22:13, Denys Vlasenko wrote:
> Can't reproduce. My strace.log has no chdir():
> 
> 
> # strace -o insmod.log ./busybox insmod ufs.ko
> 
> # cat insmod.log
> execve("./busybox", ["./busybox", "insmod", "ufs.ko"], [/* 32 vars */]) = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
> getuid32()                              = 0
> brk(0)                                  = 0x810d000
> brk(0x810e000)                          = 0x810e000
> open("ufs.ko", O_RDONLY|O_LARGEFILE)    = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=88275, ...}) = 0
> brk(0x8123000)                          = 0x8123000
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\1\0>\0\1\0\0\0\0\0\0\0"..., 89088) = 88275
> read(3, "", 813)                        = 0
> close(3)                                = 0
> init_module("ELF", 0x158d3)         = 0
> _exit(0)                                = ?
> 
> 
> I guess we have different .config files. This is mine.
> Can you post yours?

Aha. You probably have CONFIG_MODPROBE_SMALL=y

You are using Vladimir's reimplementation of modprobe,
but it is very new.

So far it does not fully emulate insmod. Basically,
"insmod abc" is handled as "modprobe abc" by it.

--
vda



More information about the busybox mailing list