From sener@flanker.uubf.itu.edu.tr Thu May 20 13:43:03 1999 Return-Path: Received: from flanker.uubf.itu.edu.tr (flanker.uubf.itu.edu.tr [160.75.14.253]) by hub.freebsd.org (Postfix) with ESMTP id 9085B15090 for ; Thu, 20 May 1999 13:42:48 -0700 (PDT) (envelope-from sener@flanker.uubf.itu.edu.tr) Received: (from sener@localhost) by flanker.uubf.itu.edu.tr (8.9.3/8.9.2) id XAA16217; Thu, 20 May 1999 23:46:05 +0300 (EEST) (envelope-from sener) Message-Id: <199905202046.XAA16217@flanker.uubf.itu.edu.tr> Date: Thu, 20 May 1999 23:46:05 +0300 (EEST) From: sener@flanker.uubf.itu.edu.tr Reply-To: sener@flanker.uubf.itu.edu.tr To: FreeBSD-gnats-submit@freebsd.org Subject: r/w mounted write protected floppies cause freeze or panic X-Send-Pr-Version: 3.2 >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: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 20 13:50:01 PDT 1999 >Closed-Date: Thu Aug 3 00:19:57 PDT 2000 >Last-Modified: Thu Aug 03 00:20:55 PDT 2000 >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: 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 ST1 2 ST2 0 cyl 0 hd 0 sec 17) fd0c: hard error writing fsbn 240 (ST0 40 ST1 2 ST2 0 cyl 6 hd 1 sec 7) fd0c: hard error writing fsbn 16 of 16-18 (ST0 40 ST1 2 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: State-Changed-From-To: open->closed State-Changed-By: sheldonh State-Changed-When: Thu Aug 3 00:19:57 PDT 2000 State-Changed-Why: This is a different problem from the one reported in kern/10870 but the same problem as the one reported in kern/10959, which includes a patch. http://www.freebsd.org/cgi/query-pr.cgi?pr=11808 >Unformatted: