From nobody@FreeBSD.org  Sat Dec 29 10:20:31 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3FFF116A417
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Dec 2007 10:20:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3447E13C43E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Dec 2007 10:20:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBTAJoHk096610
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Dec 2007 10:19:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBTAJn4j096609;
	Sat, 29 Dec 2007 10:19:49 GMT
	(envelope-from nobody)
Message-Id: <200712291019.lBTAJn4j096609@www.freebsd.org>
Date: Sat, 29 Dec 2007 10:19:49 GMT
From: Pavlyuk.Oleksiy@FreeBSD.org, Kovbasyuk Leonid <bi9bu9@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [smbfs] System reboot while umount smbfs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119128
>Category:       kern
>Synopsis:       [smbfs] [patch] System reboot while umount smbfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 29 10:30:00 UTC 2007
>Closed-Date:    Wed Jan 02 10:58:21 UTC 2008
>Last-Modified:  Wed Jan 02 10:58:21 UTC 2008
>Originator:     Pavlyuk Oleksiy, Kovbasyuk Leonid
>Release:        FreeBSD 6.2-RELEASE stable
>Organization:
Ukrtelecom
>Environment:
FreeBSD tmp_unix.xx.xxxxxx.net 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #3: Sat Dec 29 08:23:21 UTC 2007     root@tmp_unix.xx.xxxxxxxx.net:/usr/src/sys/i386/compile/CIT-ADM06  i386
>Description:
Foweword:
The similar bug was reported in "Current FreeBSD problem reports" section on Sun, 23 Oct 2005 04:46:52 GMT by YuHong <bsditer@gmail.com>, (kern/87859) for Release:5.4 Stable. I noticed the same OS behavior on my Release:6.2 box.
However it reveals only under certain circumstainces.

Description:
System will reboot while umount smbfs, but it will happen only if network connection for FreeBSD machine got lost for approximately 12-15 minutes exactly after mounted_smbfs share, and went back just before umount procedure is performed. If to umount just after network unplugged - everything goes fine. If to umount without plugging network cable back everything goes fine.

We atach file archive bug.zip that is renamed to bug.txt to send to you (rename it back to bug.zip and unpack to view). The package contains:
Kgdb utility information in debug.txt (kernel debug info)
Uname -a information in unamea.txt
Kernel config in kernel.conf.
Dmesg info in dmesg.txt

>How-To-Repeat:
We managed to repeat a problem under following circumstances:
1. mount_smbfs <smb resource>
2. Unplug network cable
3. Wait for 12-15 min 
4. Plug cable back,wait 5 sec
5. umount smb resource
6. System will reboot
>Fix:


Patch attached with submission follows:

[bugmeister note: binary file removed]

>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@FreeBSD.org>
To: Pavlyuk.Oleksiy@FreeBSD.org, Kovbasyuk Leonid <bi9bu9@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/119128: [smbfs] System reboot while umount smbfs
Date: Sat, 29 Dec 2007 17:50:51 +0100

 Hi,
 
 As you can see the attachment was not successful.  Can you please follow 
 up with the plain text of the files so they are easily read?
 
 Kris
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Wed Jan 2 10:56:57 UTC 2008 
State-Changed-Why:  
Submitter clarified that the problem only occurs when the kernel is 
compiled with highly non-standard CFLAGS (-O2 -funroll-loops 
-ffast-math).  This is unsupported and broke their kernel. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119128 
>Unformatted:
