diff options
author | Davidlohr Bueso <davidlohr.bueso@hp.com> | 2013-09-11 23:26:23 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 00:59:42 +0200 |
commit | c2c737a0461e61a34676bd0bd1bc1a70a1b4e396 (patch) | |
tree | f8d9d21cbc43ac12a67bbc428cab083adb31cd30 /ipc/namespace.c | |
parent | ipc,shm: cleanup do_shmat pasta (diff) | |
download | linux-c2c737a0461e61a34676bd0bd1bc1a70a1b4e396.tar.xz linux-c2c737a0461e61a34676bd0bd1bc1a70a1b4e396.zip |
ipc,shm: shorten critical region for shmat
Similar to other system calls, acquire the kern_ipc_perm lock after doing
the initial permission and security checks.
[sasha.levin@oracle.com: dont leave do_shmat with rcu lock held]
Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/namespace.c')
0 files changed, 0 insertions, 0 deletions