From nobody@FreeBSD.org  Fri Oct  5 03:02:31 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E1331106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Oct 2012 03:02:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id CAF668FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Oct 2012 03:02:31 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9532Vqc094721
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Oct 2012 03:02:31 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9532VHv094720;
	Fri, 5 Oct 2012 03:02:31 GMT
	(envelope-from nobody)
Message-Id: <201210050302.q9532VHv094720@red.freebsd.org>
Date: Fri, 5 Oct 2012 03:02:31 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [unionfs] umount -f of filesystem in use with readonly backed filesystem results in panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172348
>Category:       kern
>Synopsis:       [unionfs] umount -f of filesystem in use with readonly backed filesystem results in panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 05 03:10:05 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:31:05 UTC 2013
>Originator:     Garrett Cooper
>Release:        9.0-RELEASE
>Organization:
EMC Isilon
>Environment:
Standard amd64 CD image
>Description:
The following resulted in a vary quick kernel panic when booted from the livecd (again, I goofed up the arguments order):

- mount_unionfs /var /tmp/var
- dhclient em0
- umount /var
- umount -f /var
- killall dhclient
- mount_unionfs /tmp/var /var # EBADF
- mount_unionfs /tmp/var /var # EBADF
- Try to inspect /var and BAM kernel panic.

I assume that it was trying to consolidate the outstanding changes to em0.leases, etc and because the unionfs mountpoint went away, things got unhappy really quickly on the UFS side.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Oct 5 03:15:04 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

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