Re: [parisc-linux] Re: Problems with kernel mmap (failingtst-mmap-eofsync in glibc on parisc)

From: David S. Miller
Date: Sat Aug 23 2003 - 18:02:42 EST


On 23 Aug 2003 17:21:21 -0500
James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:

> On Sat, 2003-08-23 at 16:43, David S. Miller wrote:
> > On 22 Aug 2003 20:09:30 -0500
> > James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:
> >
> > > MAP_PRIVATE
> > > Create a private copy-on-write mapping. Stores
> > > to the region do not affect the original file.
> > > It is unspecified whether changes made to the
> > > file after the mmap call are visible in the
> > > mapped region.
...
> Could you elaborate some more? I agree that the MAP_PRIVATE mapping may
> not see cpu1's write because of cache incoherencies (but that's what I
> believe is covered by the `unspecified' bit of the MAP_PRIVATE
> definition above).

Ok. Let me think about this a bit more.

The safest solution for parisc, meanwhile, would be to walk the
non-shared mmap list checking for any instance of the VM_MAYSHARE bit
being set.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/