From sime@data.home.hr  Mon Jan  9 21:27:10 2006
Return-Path: <sime@data.home.hr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 36D0616A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jan 2006 21:27:10 +0000 (GMT)
	(envelope-from sime@data.home.hr)
Received: from data.home.hr (dh77-149.xnet.hr [83.139.77.149])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C73C443D45
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jan 2006 21:27:09 +0000 (GMT)
	(envelope-from sime@data.home.hr)
Received: by data.home.hr (Postfix, from userid 34062)
	id 839DD5F946; Mon,  9 Jan 2006 22:27:07 +0100 (CET)
Message-Id: <20060109212707.839DD5F946@data.home.hr>
Date: Mon,  9 Jan 2006 22:27:07 +0100 (CET)
From: Simun Mikecin <sime@data.home.hr>
Reply-To: Simun Mikecin <sime@logos.hr>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: panic: writing to UFS/softupdates DVD media in DVD-ROM drive
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91568
>Category:       kern
>Synopsis:       [ufs] [panic] writing to UFS/softupdates DVD media in DVD-ROM drive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 09 21:30:03 GMT 2006
>Closed-Date:    Fri Oct 29 08:29:25 UTC 2010
>Last-Modified:  Fri Oct 29 08:29:25 UTC 2010
>Originator:     Simun Mikecin
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD data.home.hr 6.0-STABLE FreeBSD 6.0-STABLE #0: Mon Jan 9 18:11:29 CET 2006 root@data.home.hr:/var/obj/usr/src.6/sys/DATA amd64

acd0: DVDROM <Pioneer DVD-ROM ATAPIModel DVD-120S/1.01> at ata0-master UDMA66
acd1: DVDR <PIONEER DVD-RW DVR-110/1.22> at ata1-master UDMA66

>Description:
Writing to DVD media mounted read-write with UFS2 filesystem (softupdates
enabled) on a DVD-ROM drive unit (unit that can only read from the media)
causes system panic after some time:

initiate_write_filepage: already_started
panic: initiate_write_inodeblock_ufs2: already started

If softupdates were disabled, it does not panic, but the system will not
allow you to dismount the media. You will have to reboot.

This is not a real-world scenario, but I think it shows what could happen if
you write to bad media or bad drive. System should not panic for these reasons.

>How-To-Repeat:
You need a DVD media (I used DVD+RW) that has UFS2 filesystem on it.
softupdates have to be enabled on it.
Insert the media in the DVD-ROM drive unit (unit that can only read from
the media).  Mount it with something like:	mount_ufs /dev/acd0 /mnt/1
Softupdates should be listed as enabled if you use mount command to list
mounted filesystems.
Try to copy files to the newly mounted filesystems. System will allow you to
do it, but you will get a bunch of errors on the console.
After some time system panics. If softupdates were disabled system will not
panic, but it will not allow you to dismount the media, and reboot will have
to give up on some buffers while syncing.

>Fix:
	disable softupdates to get rid of the panic. But it will not unmount.
>Release-Note:
>Audit-Trail:

From: "Simun Mikecin" <sime@logos.hr>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/91568: panic: writing to UFS/softupdates DVD media in DVD-ROM drive
Date: Mon, 09 Jan 2006 22:46:11 +0100

 In the PR I forgot to write my real e-mail address, which is sime@logos.hr.
 Please send all followups to sime@logos.hr instead of above address.
 
 -- 
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Mon May 18 03:03:02 UTC 2009 
State-Changed-Why:  
To submitter: is this still a problem on 7.2? 


Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 03:03:02 UTC 2009 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91568 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Fri Oct 29 08:29:24 UTC 2010 
State-Changed-Why:  
Feedback timeout. 

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