From nobody@FreeBSD.org  Fri Oct 26 23:56:34 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 55BEA81E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2012 23:56:34 +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 3CB728FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2012 23:56:34 +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 q9QNuXTO033370
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2012 23:56:33 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9QNuXNO033369;
	Fri, 26 Oct 2012 23:56:33 GMT
	(envelope-from nobody)
Message-Id: <201210262356.q9QNuXNO033369@red.freebsd.org>
Date: Fri, 26 Oct 2012 23:56:33 GMT
From: Marek Salwerowicz <marek_sal@wp.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: (unionfs) mounting above the NFS read-only share panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173136
>Category:       kern
>Synopsis:       [unionfs] mounting above the NFS read-only share 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:   Sat Oct 27 00:00:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Sat Oct 27 02:28:37 UTC 2012
>Originator:     Marek Salwerowicz
>Release:        9.1-PRERELEASE amd64
>Organization:
>Environment:
FreeBSD s14 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Thu Oct  4 23:46:19 CEST 2012     ato@volt.iem.pw.edu.pl:/tmp/obj/usr/src/sys/DISKLESS  amd64
>Description:
I am using a diskless mode of FreeBSD with root ('/') read-only mounted from my server.
The /tmp directory is mounted as tmpfs.

After creating eg. /tmp/istgt directory, mounting it (using mount_unionfs) above the eg. /usr/local/etc/istgt directory and editing existing file (istgt.conf), I receive a kernel panic

s14% mount
194.29.146.3:/ on / (nfs, read-only)
devfs on /dev (devfs, local)
/dev/md0 on /etc (ufs, local)
procfs on /proc (procfs, local)
tmpfs on /tmp (tmpfs, local)
tmpfs on /var (tmpfs, local)

output from machine console:
https://www.dropbox.com/s/e3wocs9tx0fip6e/20121026434.jpg
https://www.dropbox.com/s/jzwjrda5itoyuez/20121026436.jpg

>How-To-Repeat:
[assume that /tmp is tmpfs, and / is mounted read-only from NFS server]

% sudo mkdir /tmp/istgt
% sudo mount_unionfs /tmp/istgt /usr/local/etc/istgt
% vim /usr/local/etc/istgt/istgt.conf
(edit file and save it, using :wq)


>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sat Oct 27 01:47:09 UTC 2012 
Responsible-Changed-Why:  
correct synopsis and assign 

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