From nobody@FreeBSD.org  Tue May  2 06:38:20 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6EE5516A406
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 May 2006 06:38:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 23A1943D53
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 May 2006 06:38:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k426cJ07025239
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 May 2006 06:38:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k426cJGL025221;
	Tue, 2 May 2006 06:38:19 GMT
	(envelope-from nobody)
Message-Id: <200605020638.k426cJGL025221@www.freebsd.org>
Date: Tue, 2 May 2006 06:38:19 GMT
From: Arne Woerner <arne_woerner@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: crash after mount/umount disturbance: fatal trap 12
X-Send-Pr-Version: www-2.3

>Number:         96644
>Category:       kern
>Synopsis:       [panic] umount(8) crash after mount/umount disturbance: fatal trap 12
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 02 06:40:13 GMT 2006
>Closed-Date:    Sat Sep 04 08:21:17 UTC 2010
>Last-Modified:  Sat Sep 04 08:24:00 UTC 2010
>Originator:     Arne Woerner
>Release:        R6.0
>Organization:
>Environment:
FreeBSD neo.riddick.homeunix.org 6.0-RELEASE FreeBSD 6.0-RELEASE #10:
Mon Apr 10 15:10:38 UTC 2006
aw@neo.riddick.homeunix.org:/usr/src/sys/i386/compile/NEO  i386

>Description:
Once upon a time I looked through my self made DVDs. When I mounted a DVD
twice at the same mount point and read from that DVD and unmounted the DVD
once and read again from it, the system crashed.

This is not really bad, since I usually know, what is mounted...
But it might be nicer, if the kernel could cope with such things...
>How-To-Repeat:
cd /opt/tmp
dd if=/dev/zero of=a bs=1m count=200
mdconfig -a -t vnode -f a
newfs /dev/md0
mount /dev/md0 /mnt
dd if=/dev/zero of=/mnt/a bs=1m count=100
umount /mnt
mount -r /dev/md0 /mnt
mount -r /dev/md0 /mnt
dd if=/mnt/a of=/dev/null bs=1m
umount /mnt
dd if=/mnt/a of=/dev/null bs=1m
*cloink*

kernel says:
fatal trap 12: page fault while in kernel mode
fault virtual address = 0x0
fault code = supervisor read, page not present
>Fix:

>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Arne Woerner <arne_woerner@yahoo.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/96644: crash after mount/umount disturbance: fatal trap 12
Date: Tue, 2 May 2006 13:37:04 -0400

 FYI, usually more details are required when submitting reports of
 panics, e.g. a full backtrace from kgdb (see the developers handbook
 chapter on kernel debugging).
 
 In this case, it's a known bug that mounting the same filesystem twice
 as you did can lead to panics.
 
 Kris
 
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Sat Sep 4 08:19:01 UTC 2010 
State-Changed-Why:  
r206130 should fix this. MFC to stable/8 and stable/7 has been done. 

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