NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/58820: modload does not properly search the module path



>Number:         58820
>Category:       bin
>Synopsis:       modload does not properly search the module path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 10 11:55:00 +0000 2024
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.12
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD big-apple.aprisoft.de 10.99.12 NetBSD 10.99.12 (POWERMAC_G5.MP) #121: Wed Sep 25 13:34:14 CEST 2024 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/macppc/compile/POWERMAC_G5.MP macppc
Architecture: powerpc
Machine: macppc
>Description:

The modload(8) man page says:

     Modules are loaded from the default system module areas unless the module
     parameter contains a path separator character (`/').


I take this as meaning I can just use the basename of the module, like:

[/tmp] master-of-confusion # modload usbverbose
modload: usbverbose: No such file or directory

But also the full filename does not work:

[/tmp] master-of-confusion # modload usbverbose.kmod
modload: usbverbose.kmod: No such file or directory

nor the relative path to sysctl kern.module.path:

[/tmp] master-of-confusion # modload usbverbose/usbverbose.kmod
modload: usbverbose/usbverbose.kmod: No such file or directory


Using the full path works:

[/tmp] master-of-confusion # modload /stand/amd64/10.99.12/modules/usbverbose/usbverbose.kmod
[/tmp] master-of-confusion # modstat |fgrep verbose
hdaudioverbose             driver   builtin  -        0       - -
pciverbose                 driver   builtin  -        0       - pci
scsiverbose                misc     builtin  -        0       - -
usbverbose                 driver   filesys  -        0     402 -

>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index