Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2005 23:45:19 +0530
From:      Joseph Koshy <joseph.koshy@gmail.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-current@freebsd.org
Subject:   Re: mmap bug?
Message-ID:  <84dead720507311115290f0140@mail.gmail.com>
In-Reply-To: <20050731160853.GC49839@gothmog.gr>
References:  <20050731141801.GA49300@gothmog.gr> <84dead7205073108564f71f1ab@mail.gmail.com> <20050731160853.GC49839@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
gk> That's something I didn't test.  No, the 'extra' data=20
gk> disappears.

So the 'extra' data isn't reaching the FS and is probably
being served up from a cached VM data the second time your
test program ran.

This is still a bug though: the mmap(2) manual page
says:
    ...
    If len is not a multiple of
    the page-size, the mapped region may extend past the=20
    specified range.  Any such extension beyond the end of the=20
    mapped object will be zero-filled.
    ...

We are clearly not doing the zero-filling.

--=20
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720507311115290f0140>