From: Davidlohr Bueso Date: Wed, 11 Sep 2013 21:26:23 +0000 (-0700) Subject: ipc,shm: shorten critical region for shmat X-Git-Tag: v3.12-rc1~52^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c737a0461e61a34676bd0bd1bc1a70a1b4e396;p=pandora-kernel.git 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 Tested-by: Sedat Dilek Cc: Rik van Riel Cc: Manfred Spraul Signed-off-by: Sasha Levin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed