From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 15 20:20:24 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AFBE16A41F for ; Tue, 15 Nov 2005 20:20:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D97943D46 for ; Tue, 15 Nov 2005 20:20:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAFKKN0a000479 for ; Tue, 15 Nov 2005 20:20:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAFKKNZM000478; Tue, 15 Nov 2005 20:20:23 GMT (envelope-from gnats) Resent-Date: Tue, 15 Nov 2005 20:20:23 GMT Resent-Message-Id: <200511152020.jAFKKNZM000478@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rostislav Krasny Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF85016A41F for ; Tue, 15 Nov 2005 20:14:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A34143D45 for ; Tue, 15 Nov 2005 20:14:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAFKEvDi007134 for ; Tue, 15 Nov 2005 20:14:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jAFKEvYc007113; Tue, 15 Nov 2005 20:14:57 GMT (envelope-from nobody) Message-Id: <200511152014.jAFKEvYc007113@www.freebsd.org> Date: Tue, 15 Nov 2005 20:14:57 GMT From: Rostislav Krasny To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/89085: Running 'kldunload smbfs' without 'smbutil logout' always panicing the system X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 20:20:24 -0000 >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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 15 20:20:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rostislav Krasny >Release: 6.0 >Organization: >Environment: FreeBSD saturn.lan 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 2 23:45:48 IST 2005 root@saturn.lan:/usr/obj/usr/src/sys/GENERIC i386 >Description: The system doesn't prevent unloading the smbfs.ko module when there is any yet opened SMB connection. The result is a panic. >How-To-Repeat: # kldload smbfs netsmb_dev: loaded # smbutil login //user@server Password: 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) [snip] The server is Windows XP Professional SP2. >Fix: >Release-Note: >Audit-Trail: >Unformatted: