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 p

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 su