kern/81344: wrong reaction to loading modules compiled into kernel

Mikhail Teterin mi at
Sat May 21 18:00:18 GMT 2005

>Number:         81344
>Category:       kern
>Synopsis:       wrong reaction to loading modules compiled into kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 21 18:00:16 GMT 2005
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.11-STABLE i386
Virtual Estates, Inc.
System: FreeBSD 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed May 18 12:21:05 EDT 2005 mi at i386


	I forgot, I had the umass compiled into the kernel and tried
	to kldload the module after boot. Understandibly, it failed with:
		kldload: can't load umass: File exists
	on stderr, and the following kernel messages:
		module_register: module uhub/umass already exists!
		linker_file_sysinit "umass.ko" failed to register! 17

	however, the module is not listed in the kldstat output and
	can not be unloaded:
		kldunload: can't unload file: Device busy
	and the folloing kernel message:
		linkerunload: attempt to unload file that was loaded by the kernel

	I don't know if this problem is purely cosmetic or not.


	See Description.


More information about the freebsd-bugs mailing list