Bug 21757

Summary: cp from nullfs-mounted filesystem aborts with EFAULT
Product: Base System Reporter: Brian Candler <B.Candler>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Brian Candler 2000-10-04 19:00:01 UTC
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)

Fix: 

No idea
How-To-Repeat: # mkdir /a /b /c
# mount_null /b /c
# echo wibble >/c/stuff
# cp /c/stuff /a
cp: /a/stuff: Bad address
#
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-05-25 11:02:02 UTC
State Changed
From-To: open->closed

nullfs is documented to be broken