linux/ipc
Nadia Derbey e00b4ff7eb sysvipc: fix the ipc structures initialization
A problem was found while reviewing the code after Bugzilla bug
http://bugzilla.kernel.org/show_bug.cgi?id=11796.

In ipc_addid(), the newly allocated ipc structure is inserted into the
ipcs tree (i.e made visible to readers) without locking it.  This is not
correct since its initialization continues after it has been inserted in
the tree.

This patch moves the ipc structure lock initialization + locking before
the actual insertion.

Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
Reported-by: Clement Calmels <cboulte@gmail.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: <stable@kernel.org>		[2.6.27.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-11-19 18:49:57 -08:00
..
Makefile
compat.c
compat_mq.c
ipc_sysctl.c
ipcns_notifier.c
mqueue.c message queues: increase range limits 2008-10-20 08:52:40 -07:00
msg.c
msgutil.c
namespace.c
sem.c
shm.c [PATCH] introduce fmode_t, do annotations 2008-10-21 07:47:06 -04:00
util.c sysvipc: fix the ipc structures initialization 2008-11-19 18:49:57 -08:00
util.h