2002-10-08 22:08:29

by Peter Waechtler

[permalink] [raw]
Subject: 2.5.40+ futex broken with COW

The COW changes break PROCESS_SHARED futexes in
mmap( MAP_SHARED ).

I think that COW is unconditionally used on fork().
But you need to check for MAP_SHARED, eh?

If wanted I can provide a testcase (that runs fine on
2.4.19+futex patch + NGPT and on Irix)


2002-10-08 23:10:57

by Peter Waechtler

[permalink] [raw]
Subject: Re: 2.5.40+ futex broken with COW

Peter W?chtler schrieb:
>
> The COW changes break PROCESS_SHARED futexes in
> mmap( MAP_SHARED ).
>
> I think that COW is unconditionally used on fork().
> But you need to check for MAP_SHARED, eh?
>
> If wanted I can provide a testcase (that runs fine on
> 2.4.19+futex patch + NGPT and on Irix)

Argh, forget it. Made a silly mistake too painful to mention :)