Messages in this thread | | | Date | Mon, 24 Nov 2014 12:49:07 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH] ipc,sem block sem_lock on sma->lock during sma initialization |
| |
On Sun, 23 Nov 2014 19:23:53 +0100 Manfred Spraul <manfred@colorfullife.com> wrote:
> Subject: [PATCH] ipc/sem.c: Fully initialize sem_array before making it > visible > > ipc_addid() makes a new ipc identifier visible to everyone. > New objects start as locked, so that the caller can complete > the initialization after the call. > Within struct sem_array, at least sma->sem_base and sma->sem_nsems > are accessed without any locks, therefore this approach doesn't work. > > Thus: Move the ipc_addid() to the end of the initialization.
Any thoughts on which kernel version(s) need the patch? I'm still rather fuzzy on the end-user impact of this bug.
| |