Re: [PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-27 Thread Davidlohr Bueso
Hi Manfred, On Fri, 2013-09-27 at 07:45 +0200, Manfred Spraul wrote: > Hi Davidlohr, > > On 09/16/2013 05:04 AM, Davidlohr Bueso wrote: > > This fixes a race in shmat() between finding the msq and > > actually attaching the segment, as another thread can delete shmid > > underneath us if we are

Re: [PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-27 Thread Davidlohr Bueso
Hi Manfred, On Fri, 2013-09-27 at 07:45 +0200, Manfred Spraul wrote: Hi Davidlohr, On 09/16/2013 05:04 AM, Davidlohr Bueso wrote: This fixes a race in shmat() between finding the msq and actually attaching the segment, as another thread can delete shmid underneath us if we are preempted

Re: [PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-26 Thread Manfred Spraul
Hi Davidlohr, On 09/16/2013 05:04 AM, Davidlohr Bueso wrote: This fixes a race in shmat() between finding the msq and actually attaching the segment, as another thread can delete shmid underneath us if we are preempted before acquiring the kern_ipc_perm.lock. According the the man page, Linux

Re: [PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-26 Thread Manfred Spraul
Hi Davidlohr, On 09/16/2013 05:04 AM, Davidlohr Bueso wrote: This fixes a race in shmat() between finding the msq and actually attaching the segment, as another thread can delete shmid underneath us if we are preempted before acquiring the kern_ipc_perm.lock. According the the man page, Linux

[PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-15 Thread Davidlohr Bueso
This fixes a race in shmat() between finding the msq and actually attaching the segment, as another thread can delete shmid underneath us if we are preempted before acquiring the kern_ipc_perm.lock. Reported-by: Manfred Spraul Signed-off-by: Davidlohr Bueso --- ipc/shm.c | 8 1 file

[PATCH 2/4] ipc,shm: prevent race with rmid in shmat(2)

2013-09-15 Thread Davidlohr Bueso
This fixes a race in shmat() between finding the msq and actually attaching the segment, as another thread can delete shmid underneath us if we are preempted before acquiring the kern_ipc_perm.lock. Reported-by: Manfred Spraul manf...@colorfullife.com Signed-off-by: Davidlohr Bueso