From conradj@tom-jones.is.co.za Tue Sep  7 22:38:15 1999
Return-Path: <conradj@tom-jones.is.co.za>
Received: from mercury.is.co.za (mercury.is.co.za [196.4.160.222])
	by hub.freebsd.org (Postfix) with ESMTP id AF1F415047
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Sep 1999 22:38:10 -0700 (PDT)
	(envelope-from conradj@tom-jones.is.co.za)
Received: from admin.is.co.za (admin.is.co.za [196.23.0.9])
	by mercury.is.co.za (8.9.3/8.9.3) with ESMTP id HAA02401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Sep 1999 07:36:17 +0200
Received: from tom-jones.is.co.za (tom-jones.is.co.za [196.23.0.193]) by admin.is.co.za (8.8.6/8.7.3/ISsubsidiary#1) with SMTP id HAA26692 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Sep 1999 07:36:16 +0200 (GMT)
Received: (qmail 3924 invoked by uid 1001); 8 Sep 1999 07:36:33 -0000
Message-Id: <19990908073633.3923.qmail@tom-jones.is.co.za>
Date: 8 Sep 1999 07:36:33 -0000
From: conradj@is.co.za
Sender: conradj@tom-jones.is.co.za
Reply-To: conradj@is.co.za
To: FreeBSD-gnats-submit@freebsd.org
Subject: Floppy hangs system
X-Send-Pr-Version: 3.2

>Number:         13632
>Category:       kern
>Synopsis:       Floppy hangs system
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep  7 22:40:00 PDT 1999
>Closed-Date:    Fri Aug 10 14:54:08 MEST 2001
>Last-Modified:  Fri Aug 10 14:55:15 MEST 2001
>Originator:     Conrad Juleff
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
The Internet Solution
>Environment:

Standard i386 Pentium 133 server with UW-SCSI and standard 1.44M floppy
drive.

>Description:

If I mount an msdos floppy read-write when the disk has write protection  
turned on it hangs the system. This sometimes happens if I access the disk
and everytime I try to copy to it. I am not aware of this being fixed in
-stable.
  
Sep  7 10:15:51 x /kernel: fd0c: hard error writing fsbn 19 (ST0
40<abnrml> ST1 
+2<write_protect> ST2 0 cyl 0 hd 1 sec 2)                      
  
>How-To-Repeat:

mount -t msdos /dev/fd0 /mnt and then attempt to write to the disk.

>Fix:
	
mount -r -t msdos /dev/fd0 /mnt

>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: conradj@is.co.za
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/13632: Floppy hangs system 
Date: Wed, 08 Sep 1999 13:30:02 +0200

 On 08 Sep 1999 07:36:33 GMT, conradj@is.co.za wrote:
 
 > If I mount an msdos floppy read-write when the disk has write protection  
 > turned on it hangs the system. This sometimes happens if I access the disk
 > and everytime I try to copy to it. I am not aware of this being fixed in
 > -stable.
 
 The results are different under STABLE.  Writing to a floppy mounted
 read-only fails as expected, but a subsequent umount attempt panics the
 box:
 
 fd0c: hard error writing fsbn 5 of 5-12 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 6)
 [several of these messages repeated]
 panic: vinvalbuf: dirty bufs
 
 Ciao,
 sheldon.
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/13632: Floppy hangs system 
Date: Wed, 08 Sep 1999 14:57:57 +0200

 Following up on myself, here's a back trace of the panic I mentioned.
 I have the crash dump available if anyone has things they;d like me to
 look at.
 
 Ciao,
 Sheldon.
 
 #9  0xc012f710 in panic (fmt=0xc01fa7f4 "vinvalbuf: dirty bufs")
     at ../../kern/kern_shutdown.c:444
 #10 0xc0151504 in vinvalbuf (vp=0xc4c4af00, flags=1, cred=0x0, p=0xc4bf0440,
     slpflag=0, slptimeo=0) at ../../kern/vfs_subr.c:599
 #11 0xc015e034 in spec_close (ap=0xc4c4eec0)
     at ../../miscfs/specfs/spec_vnops.c:648
 #12 0xc01a938e in ufsspec_close (ap=0xc4c4eec0)
     at ../../ufs/ufs/ufs_vnops.c:1872
 #13 0xc01a9861 in ufs_vnoperatespec (ap=0xc4c4eec0)
     at ../../ufs/ufs/ufs_vnops.c:2317
 #14 0xc0162d9c in msdosfs_unmount (mp=0xc09cbc00, mntflags=0, p=0xc4bf0440)
     at vnode_if.h:191
 #15 0xc0153fd4 in dounmount (mp=0xc09cbc00, flags=0, p=0xc4bf0440)
     at ../../kern/vfs_syscalls.c:488
 #16 0xc0153f14 in unmount (p=0xc4bf0440, uap=0xc4c4ef94)
     at ../../kern/vfs_syscalls.c:456
 #17 0xc01d2627 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 134631479,
       tf_esi = 134694461, tf_ebp = -1077945316, tf_isp = -993726492,
       tf_ebx = -1077946452, tf_edx = 0, tf_ecx = 3, tf_eax = 22,
       tf_trapno = 12, tf_err = 2, tf_eip = 134518920, tf_cs = 31,
       tf_eflags = 582, tf_esp = -1077946512, tf_ss = 39})
     at ../../i386/i386/trap.c:1100
 
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Fri Jul 20 17:57:32 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13632 
State-Changed-From-To: feedback->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Aug 10 14:54:08 MEST 2001 
State-Changed-Why:  
Duplicate for kern/10870 (and basically also for kern/4413) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13632 
>Unformatted:
