kern/95804: kldstat -m fails and succeeds randomly
Jukka A. Ukkonen
jau at iki.fi
Sat Apr 15 15:00:33 UTC 2006
>Number: 95804
>Category: kern
>Synopsis: kldstat -m fails and succeeds randomly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 15 15:00:30 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jukka A. Ukkonen
>Release: 6.1-RC
>Organization:
private person
>Environment:
FreeBSD mjolnir 6.1-RC FreeBSD 6.1-RC #0: Fri Apr 14 13:36:01 EET DST 2006 root at mjolnir:/usr/obj/usr/src/sys/Mjolnir i386
>Description:
Without the -m option kldstat behaves as before.
When used with the -m option kldstat sometimes succeeds and sometimes fails.
And even when it sort of works with the -m option the ID field is shown wrong.
See the example below...
(mjolnir) 14:23 security/openvpn# kldstat
Id Refs Address Size Name
1 55 0xc0400000 6d477c kernel
2 6 0xc0ad5000 22ae8 sound.ko
3 1 0xc0af8000 7674 snd_emu10k1.ko
4 1 0xc0b00000 719c snd_es137x.ko
5 1 0xc0b08000 4ec0 snd_sb16.ko
6 3 0xc0b0d000 489c snd_sbc.ko
7 1 0xc0b12000 48cc snd_sb8.ko
8 1 0xc0b17000 13c40 geom_mirror.ko
9 1 0xc0b2b000 4a68 atapicam.ko
10 1 0xc0b30000 58554 acpi.ko
11 1 0xc0b89000 9958 hifn.ko
12 1 0xc0b93000 9a54 ubsec.ko
13 1 0xc0b9d000 66c0 safe.ko
14 1 0xc0ba4000 2d94 padlock.ko
15 1 0xc0ba7000 f9a0 if_ath.ko
16 3 0xc0bb7000 3015c ath_hal.ko
17 2 0xc0be8000 3f1c ath_rate.ko
18 1 0xc0bec000 2c54 wlan_acl.ko
19 1 0xc0bef000 6d04 wlan_ccmp.ko
20 1 0xc0bf6000 3fa0 wlan_tkip.ko
21 1 0xc0bfa000 2cc8 wlan_wep.ko
22 1 0xc0bfd000 1b10 wlan_xauth.ko
23 1 0xc0bff000 10940 GPLUS.bin.ko
24 1 0xc0c10000 3f7c4 GPLUS_sys.ko
25 1 0xc3b4b000 6000 linprocfs.ko
26 2 0xc3b51000 16000 linux.ko
27 1 0xc3dce000 4000 logo_saver.ko
28 1 0xc3ec1000 2000 rtc.ko
29 1 0xc3f6f000 1c000 radeon.ko
30 1 0xc3f8b000 e000 drm.ko
(mjolnir) 14:33 security/openvpn# kldstat -m hifn
kldstat: can't find module hifn: No such file or directory
(mjolnir) 14:33 security/openvpn# kldstat -m safe
kldstat: can't find module safe: No such file or directory
(mjolnir) 14:33 security/openvpn# kldstat -m wlan_acl
Id Refs Name
38 1 wlan_acl
(mjolnir) 14:33 security/openvpn# kldstat -m GPLUS.bin
kldstat: can't find module GPLUS.bin: No such file or directory
(mjolnir) 14:33 security/openvpn# kldstat -m GPLUS_sys
kldstat: can't find module GPLUS_sys: No such file or directory
(mjolnir) 14:33 security/openvpn# kldstat -m linux
kldstat: can't find module linux: No such file or directory
(mjolnir) 14:33 security/openvpn# kldstat -m radeon
kldstat: can't find module radeon: No such file or directory
(mjolnir) 14:34 security/openvpn# kldstat -m drm
kldstat: can't find module drm: No such file or directory
(mjolnir) 14:34 security/openvpn# kldstat -m wlan_wep
Id Refs Name
41 1 wlan_wep
>How-To-Repeat:
See the full description section.
Follow the example set in there.
First list all modules. Everything should be just fine.
Then start trying individual modules one by one.
For some modules kldstat -m should return "No such file or directory" (ENOENT).
For others it may find the module, but with all likelyhood the ID will be wrong.
>Fix:
No fix yet.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list