Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 1999 23:46:05 +0300 (EEST)
From:      sener@flanker.uubf.itu.edu.tr
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/11808: r/w mounted write protected floppies cause freeze or panic 
Message-ID:  <199905202046.XAA16217@flanker.uubf.itu.edu.tr>

next in thread | raw e-mail | index | archive | help

>Number:         11808
>Category:       kern
>Synopsis:       read/write mounted write-protected floppies cause freeze or panic
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 20 13:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Tunc Sener
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:
FreeBSD pinknoise.gargoyle.org 4.0-CURRENT FreeBSD 4.0-CURRENT #16: Mon May 10 20:17:05 EEST 1999     gargoyle@pinknoise.gargoyle.org:/oldbsdroot/usr/cvs/src/sys/compile/PinkNoiz  i386
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> at fdc0 drive 0


	

>Description:

  When i  try to write on a read-write mounted write-protected floppy
system freezes if floppy is DOS formatted.
Strangely if my  current working directory is not in floppy, everything is ok
until i cd and ls in floppy..system freezes and no panic or dump is performed.
This may be the same problem as kern/10959.
  On a  FFS  floppy kernel panicked  when i did the same thing.

IdlePTD 3522560
initial pcb at 2dae40
panicstr: sched_sync: fsync failed vp 0xc4981e40 tag 19
panic messages:
---
panic: sched_sync: fsync failed vp 0xc4981e40 tag 19

syncing disks... 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 giving up

dumping to dev 30001, offset 196608
dump 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5
 4 3 2 1 
---
#0  boot (howto=256) at ../../kern/kern_shutdown.c:288
288                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:288
#1  0xc0156cb9 in panic (
    fmt=0xc0273c80 "sched_sync: fsync failed vp %p tag %d")
    at ../../kern/kern_shutdown.c:450
#2  0xc017b33e in sched_sync () at ../../kern/vfs_subr.c:956
#3  0xc014a11e in kproc_start (udata=0xc0273c68) at ../../kern/init_main.c:301
#4  0xc0226fdc in fork_trampoline ()
Cannot access memory at address 0x35cc00.
                 
 
>How-To-Repeat:

	Mount a write protected floppy, either DOS or FFS format.


Write to it( rm /floppy/*)  and ls...DOS one will freeze if your  current directory is floppy.
FFS one will complain even if you dont write anything onto it.
fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 6 hd 1 sec 7)
fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
..and will panic if you try to write onto it. 
>Fix:
Be careful when mounting floppies? :)	
	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905202046.XAA16217>