]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selinux: use GFP_ATOMIC under spin_lock
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 16 Mar 2013 09:48:11 +0000 (12:48 +0300)
committerJames Morris <james.l.morris@oracle.com>
Mon, 18 Mar 2013 13:33:09 +0000 (00:33 +1100)
commit4502403dcf8f5c76abd4dbab8726c8e4ecb5cd34
tree79f16f1c9ff482fb926b147a2f4f0b4382f0ccf6
parenta937536b868b8369b98967929045f1df54234323
selinux: use GFP_ATOMIC under spin_lock

The call tree here is:

sk_clone_lock()              <- takes bh_lock_sock(newsk);
xfrm_sk_clone_policy()
__xfrm_sk_clone_policy()
clone_policy()               <- uses GFP_ATOMIC for allocations
security_xfrm_policy_clone()
security_ops->xfrm_policy_clone_security()
selinux_xfrm_policy_clone()

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@kernel.org
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/selinux/xfrm.c