Re: [PATCH v2] futex: Fix regression with read only mappings

From: Peter Zijlstra
Date: Tue Jun 28 2011 - 10:28:06 EST


On Tue, 2011-06-28 at 07:19 -0700, Darren Hart wrote:
>
> On 06/28/2011 03:50 AM, Peter Zijlstra wrote:
> > On Mon, 2011-06-27 at 14:39 -0700, Darren Hart wrote:
> >> The alternative it seems is to just let RW private users hang
> >> themselves.
> >
> > Yeah, screw those, that's insane anyway.
>
> And I meant RO private users (for those reading just this message and
> getting really confused ;-)

RW private is crazy too, there is no guarantee you'll stay shared and
thus relying on the shared part of the semantics is broken. As is
clearly documented in the mmap() man page as pointed out by someone
somewhere in this thread.
--
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/