kern/89085: Running 'kldunload smbfs' without 'smbutil logout' always panicing the system

Rostislav Krasny rosti.bsd at
Tue Nov 15 20:20:24 GMT 2005

>Number:         89085
>Category:       kern
>Synopsis:       Running 'kldunload smbfs' without 'smbutil logout' always panicing the system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 20:20:22 GMT 2005
>Originator:     Rostislav Krasny
>Release:        6.0
FreeBSD saturn.lan 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov  2 23:45:48 IST 2005     root at saturn.lan:/usr/obj/usr/src/sys/GENERIC  i386
The system doesn't prevent unloading the smbfs.ko module when there is any yet opened SMB connection. The result is a panic.
# kldload smbfs
netsmb_dev: loaded
# smbutil login //user at server
Connect to USER
# kldunload smbfs
smb_sm_done: 1 connection still active
netsmb_dev: unload

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xc17c295d
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc17c295d
stack pointer		= 0x28:0xcc8e2ce0
frame pointer		= 0x28:0xcc8e2d10
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor flags		= interrupt enabled, resume, IOPL = 0
current process		= 596 (smbiod0)
trap number		= 12
panic: page fault
Uptime: 15m7s
Dumping 127 MB (2 chunks)

The server is Windows XP Professional SP2.


More information about the freebsd-bugs mailing list