Skip to contentSkip to conversation

2.5.40+ futex broken with COW

DISCUSSION Peter Wächtler 1 participant 2 messages Oct 8, 2002

lore
Share & tools
lore
#0 lore raw

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)

#1 lore raw
Quoted 9 lines · Peter Wächtler

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 :)