[Bug 15670] New: modprobe applet doesn't work properly

bugzilla at busybox.net bugzilla at busybox.net
Mon Jun 26 12:03:53 UTC 2023


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

            Bug ID: 15670
           Summary: modprobe applet doesn't work properly
           Product: Busybox
           Version: 1.35.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: icastell at circontrol.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 9616
  --> https://bugs.busybox.net/attachment.cgi?id=9616&action=edit
config file

We use "modprobe" applet to load kernel modules.

$ ls -l /sbin/modprobe 
lrwxrwxrwx    1 root   root  14 Jun 26 11:00 /sbin/modprobe -> ../bin/busybox

$ uname -r
4.9.88

$ find /lib/modules/4.9.88/ | grep extra
/lib/modules/4.9.88/extra
/lib/modules/4.9.88/extra/lcd.ko
/lib/modules/4.9.88/extra/pot.ko

$ cat /lib/modules/4.9.88/modules.dep | grep extra
extra/lcd.ko:
extra/pot.ko:

Both kernel drivers load PERFECT using modprobe applet of busybox 1.27.2:

$ /bin/busybox
BusyBox v1.27.2 (2022-02-02 15:18:49 CET) multi-call binary.

$ /bin/busybox modprobe lcd
$ /bin/busybox modprobe pot
$ lsmod
Module                  Size  Used by    Tainted: G  
lcd                     4141  0 
pot                     1930  0 

But when using 1.35, 1.36 and 1.36.1 versions (not tested with other versions),
only "pot" is loading, but not "lcd":

$ /bin/busybox
BusyBox v1.36.1 (2023-06-26 11:42:55 UTC) multi-call binary.

$ /bin/busybox modprobe  pot
$ /bin/busybox modprobe  lcd
$ lsmod
Module                  Size  Used by    Tainted: G  
pot                     1930  0 

Retcode is 0 in all cases:

$  /bin/busybox modprobe  lcd
$ echo $?
0

In all cases, the "lcd" driver can be properly loaded using insmod:

$ ls -l /sbin/insmod 
lrwxrwxrwx    1 root     root   14 Jun 26 11:00 /sbin/insmod -> ../bin/busybox

$ insmod /lib/modules/4.9.88/extra/lcd.ko 
$ lsmod
Module                  Size  Used by    Tainted: G  
lcd                     4141  0 
pot                     1930  0 

If you need more information, please let me know. Thank you!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list