Skip to contentSkip to conversation

ipc/sem.c: cleanup

PATCH In review Manfred Spraul 1 participant 1 message May 24, 2008

lore
Share & tools
lore
#0 lore raw

cover ipc/sem.c: cleanup

I did some cleanup in ipc/sem:
- ipc/sem contained hand-written linked lists, they can be replaced with standard list_head lists.
- the locking was written before CLONE_SYSVSEM was introduced, with ulp->lock, it's now possible to free undo structures during IPC_RMID immediately.
- There is a (extremely unlikely) race in semtimedop(), it can access kfree'd memory.

The patches pass my own simple test cases, what do you think?

--
Manfred