diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-30 12:48:40 -0400 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-10-01 19:59:52 +0000 |
commit | d2d481270a51545deb4ccc7c6646c9c2432c14da (patch) | |
tree | 4911dc32c41b3c0076b592fe2bd8844ddc2f8400 /arch | |
parent | 8e069f9cad6739b7efc3038ad44f71142de6c0cc (diff) |
Initialize msg/shm IPC objects before doing ipc_addid()
(cherry pick from commit b9a532277938798b53178d5a66af6e2915cb27cf)
As reported by Dmitry Vyukov, we really shouldn't do ipc_addid() before
having initialized the IPC object state. Yes, we initialize the IPC
object in a locked state, but with all the lockless RCU lookup work,
that IPC object lock no longer means that the state cannot be seen.
We already did this for the IPC semaphore code (see commit e8577d1f0329:
"ipc/sem.c: fully initialize sem_array before making it visible") but we
clearly forgot about msg and shm.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 24551430
Change-Id: Ia975914c6fc073cd0f1856870e9c4e6e883ae5c0
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions