[Bug 263] New: modutils/rmmod can't remove modules with dash in name on 2.4 kernels

bugzilla at busybox.net bugzilla at busybox.net
Sun Apr 5 08:09:40 UTC 2009


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

            Target: linux-mips
             Build: 1.13.3
           Summary: modutils/rmmod can't remove modules with dash in name on
                    2.4 kernels
           Product: Busybox
           Version: 1.13.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: lly.dev at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created an attachment (id=227)
 --> (https://bugs.busybox.net/attachment.cgi?id=227)
Fix

It is impossible to remove modules with dash in name on 2.4 kernels. This
happens on MIPS32 platform, 2.4.37 Linux kernel & uClibc 0.9.29.

Example:
===============================================================================
$ lsmod
    Tainted: P
usb-uhci               27380   0 (unused)
usb-storage            63312   0 (unused)
sd_mod                 12660   0 (unused)
scsi_mod               72624   1 [usb-storage sd_mod]
ehci-hcd               28180   0 (unused)
usbcore                76144   1 [usb-uhci usb-storage ehci-hcd]
wl                    897336   0 (unused)
et                     29088   0 (unused)
$ rmmod usb-uhci
rmmod: cannot unload 'usb_uhci': unknown symbol in module, or unknown parameter
===============================================================================

I apologize that happens due to unwanted filename2modname() call in
rmmod_main() for old 2.4 kernels. Patch attached solves problem for me.


-- 
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