NetBSD Problem Report #9854
Received: (qmail 17537 invoked from network); 10 Apr 2000 13:44:00 -0000
Message-Id: <20000410134358.0DAEF544D@woffi.planix.com>
Date: Mon, 10 Apr 2000 09:43:58 -0400 (EDT)
From: Andreas Wrede <andreas@planix.com>
Sender: andreas@woffi.planix.com
Reply-To: Andreas Wrede <andreas@planix.com>
To: gnats-bugs@gnats.netbsd.org
Subject: mmap on null mounted fs
X-Send-Pr-Version: 3.95
>Number: 9854
>Category: kern
>Synopsis: mmap misses the spot on null mouned filesystems
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: chs
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 10 13:45:01 +0000 2000
>Closed-Date: Wed Nov 29 03:21:56 +0000 2000
>Last-Modified: Wed Nov 29 03:21:56 +0000 2000
>Originator: Andreas Wrede
>Release: 1.4X
>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:
State-Changed-From-To: open->closed
State-Changed-By: chs
State-Changed-When: Tue Nov 28 19:19:34 PST 2000
State-Changed-Why:
fixed with the integration of UBC:
# mount -t null /var/tmp /mnt
# cd /mnt
# df .
Filesystem 1K-blocks Used Avail Capacity Mounted on
/var/tmp 127143 24378 96407 20% /mnt
# echo ABCDEFGHIJKLMNOPQRSTUVWXYZ > f
# tail f
ABCDEFGHIJKLMNOPQRSTUVWXYZ
# echo 0123456789 > f
# tail f
0123456789
# cat f
0123456789
#
Responsible-Changed-From-To: kern-bug-people->chs
Responsible-Changed-By: chs
Responsible-Changed-When: Tue Nov 28 19:19:34 PST 2000
Responsible-Changed-Why:
I fixed it.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.