From nobody@FreeBSD.org  Fri Dec 15 16:21:06 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id C81D016A407
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Dec 2006 16:21:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9933243E0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Dec 2006 16:17:00 +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 kBFGIXq7017568
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Dec 2006 16:18:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBFGIXVS017567;
	Fri, 15 Dec 2006 16:18:33 GMT
	(envelope-from nobody)
Message-Id: <200612151618.kBFGIXVS017567@www.freebsd.org>
Date: Fri, 15 Dec 2006 16:18:33 GMT
From: Doug Denault<doug@safeport.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: umount of a floppy disk results in a reboot
X-Send-Pr-Version: www-3.0

>Number:         106783
>Category:       kern
>Synopsis:       [fdc] umount of a floppy disk results in a reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    trasz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 15 16:30:04 GMT 2006
>Closed-Date:    Sun Jul 19 14:14:48 UTC 2009
>Last-Modified:  Sun Jul 19 14:14:48 UTC 2009
>Originator:     Doug Denault
>Release:        6.1-STABLE
>Organization:
>Environment:
FreeBSD artemis.boltsys.com 6.1-STABLE FreeBSD 6.1-STABLE #7: Sun Jul  2 15:53:52 EDT 2006     doug@artemis.boltsys.com:/usr/obj/usr/src/sys/ARTEMIS  i386

>Description:
I formated a floppy with 6.1 using:
   fdformat -f 1440 /dev/fd0
   bsdlabel -B -r -w /dev/fd0 fd1440
   newfs /dev/fd0

I was using the floppy to transfer a few critical files from a crashed 4.11 system to my 6.1 desktop. I removed the floppy from the 4.11 server forgetting to umount. When I took it to the server and did the umount, I then could use the floppy. Making the same mistake on 6.1 caused a reboot. I then reformated a floppy on 6.1 using the aobve commands. Removing the floppy without a umount caused:

Dec 14 19:36:57 artemis su: doug to root on /dev/ttyp7
Dec 14 19:39:22 artemis kernel: g_vfs_done():fd0[READ(offset=102400, length=45056)]error = 5
Dec 14 19:39:27 artemis kernel: g_vfs_done():fd0[READ(offset=106496, length=40960)]error = 5
Dec 14 19:39:32 artemis kernel: g_vfs_done():fd0[READ(offset=110592, length=36864)]error = 5
Dec 14 19:39:36 artemis kernel: g_vfs_done():fd0[READ(offset=110592, length=4096)]error = 5
Dec 14 19:39:41 artemis kernel: g_vfs_done():fd0[READ(offset=114688, length=32768)]error = 5
Dec 14 19:40:11 artemis kernel: g_vfs_done():fd0[READ(offset=110592, length=4096)]error = 5
Dec 14 19:40:11 artemis kernel: vnode_pager_getpages: I/O read error
Dec 14 19:40:11 artemis kernel: vm_fault: pager read error, pid 18946 (cp)
Dec 14 19:40:40 artemis kernel: g_vfs_done():fd0[READ(offset=110592, length=36864)]error = 5
Dec 14 19:40:45 artemis kernel: g_vfs_done():fd0[READ(offset=110592, length=4096)]error = 5
Dec 14 19:40:50 artemis kernel: g_vfs_done():fd0[READ(offset=114688, length=32768)]error = 5
Dec 14 19:42:11 artemis su: doug to root on /dev/ttype
Dec 14 20:18:29 artemis syslogd: kernel boot file is /boot/kernel/kernel
Dec 14 20:18:29 artemis kernel: Copyright (c) 1992-2006 The FreeBSD Project.
Dec 14 20:18:29 artemis kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Dec 14 20:18:29 artemis kernel: The Regents of the University of California. All rights reserved.

>How-To-Repeat:
My hardware is a Dell PE 800. Nothing special was required to repeat this. 
>Fix:
Sorry no dump was taken. This was make with the generic kernel. I can turn on debugging options and repeat if this helps. This is only a critical problem on a server,and I do not know how many have floppies these days
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->trasz 
Responsible-Changed-By: trasz 
Responsible-Changed-When: Wed Jul 8 12:34:57 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106783 
State-Changed-From-To: open->feedback 
State-Changed-By: trasz 
State-Changed-When: Wed Jul 8 12:35:07 UTC 2009 
State-Changed-Why:  
Can you still reproduce it with FreeBSD 7.2?  It should be fixed already. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=106783 
State-Changed-From-To: feedback->closed 
State-Changed-By: trasz 
State-Changed-When: Sun Jul 19 14:14:47 UTC 2009 
State-Changed-Why:  
Seems to be fixed. 

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