Subject: kern/9854: mmap on null mounted fs
To: None <gnats-bugs@gnats.netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: netbsd-bugs
Date: 04/10/2000 08:39:04
>Number:         9854
>Category:       kern
>Synopsis:       mmap misses the spot on null mouned filesystems
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 10 06:45:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wrede
>Release:        <NetBSD-current source date>-current/i386 Apr 8,00
>Organization:
Planix, Inc. 
>Environment:
	
System: NetBSD woffi.planix.com 1.4X NetBSD 1.4X (WOFFI-IPv6) #0: Sun Apr 9 15:31:56 EDT 2000 root@woffi.planix.com:/usr/src/sys/arch/i386/compile/WOFFI i386


>Description:
	
Access to files via mmap may return incorrect data, or may cause core 
dumps. This is probably just the symptom of some underlying fs problem.

>How-To-Repeat:
	
# mount -t null /var/tmp /mnt
# cd /mnt
# echo ABCDEFGHIJKLMNOPQRSTUVWXYZ > f
# tail f
ABCDEFGHIJKLMNOPQRSTUVWXYZ
# echo 0123456789 > f
# tail f
ABCDEFGHIJK# cat f
0123456789
# cd /
# umount /mnt

>Fix:
	
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: