From nobody@FreeBSD.ORG  Wed Oct  4 10:59:12 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id CEA6537B503; Wed,  4 Oct 2000 10:59:12 -0700 (PDT)
Message-Id: <20001004175912.CEA6537B503@hub.freebsd.org>
Date: Wed,  4 Oct 2000 10:59:12 -0700 (PDT)
From: B.Candler@pobox.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: cp from nullfs-mounted filesystem aborts with EFAULT
X-Send-Pr-Version: www-1.0

>Number:         21757
>Category:       kern
>Synopsis:       cp from nullfs-mounted filesystem aborts with EFAULT
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 04 11:00:01 PDT 2000
>Closed-Date:    Fri May 25 03:02:02 PDT 2001
>Last-Modified:  Fri May 25 03:02:15 PDT 2001
>Originator:     Brian Candler
>Release:        4.1.1 and 4.1
>Organization:
>Environment:
>Description:
Using 'cp' to copy a file from within a null-mounted filesystem to
another filesystem causes an address fault.

(Noticed when running a diskless system; at one point /etc/rc tries to
copy /tmp/xxxx to /etc/motd, and /tmp is itself a null mount of /var/tmp,
and this fails)

>How-To-Repeat:
# mkdir /a /b /c
# mount_null /b /c
# echo wibble >/c/stuff
# cp /c/stuff /a
cp: /a/stuff: Bad address
# 
>Fix:
No idea

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri May 25 03:02:02 PDT 2001 
State-Changed-Why:  
nullfs is documented to be broken 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21757 
>Unformatted:
