From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 9 21:30:15 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81BC016A420 for ; Mon, 9 Jan 2006 21:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5481D43D64 for ; Mon, 9 Jan 2006 21:30:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k09LU4XU038404 for ; Mon, 9 Jan 2006 21:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k09LU4UU038402; Mon, 9 Jan 2006 21:30:04 GMT (envelope-from gnats) Resent-Date: Mon, 9 Jan 2006 21:30:04 GMT Resent-Message-Id: <200601092130.k09LU4UU038402@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simun Mikecin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36D0616A41F for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/91568: panic: writing to UFS/softupdates DVD media in DVD-ROM drive X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Simun Mikecin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2006 21:30:15 -0000 >Number: 91568 >Category: kern >Synopsis: panic: writing to UFS/softupdates DVD media in DVD-ROM drive >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 09 21:30:03 GMT 2006 >Closed-Date: >Last-Modified: >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 at ata0-master UDMA66 acd1: DVDR 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: >Unformatted: