selinux: use GFP_ATOMIC under spin_lock
commitbd8a48b71de28098f662ce8dfb919ea4eff28103
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 16 Mar 2013 09:48:11 +0000 (16 12:48 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:03 +0000 (27 02:41 +0000)
tree5a42b6ba570ebfad73fc6536bf2e149f03bc7de8
parent984cbc9c6686f399cb4ec5bd8fae5ff8ec2fa9a8
selinux: use GFP_ATOMIC under spin_lock

commit 4502403dcf8f5c76abd4dbab8726c8e4ecb5cd34 upstream.

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>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
security/selinux/xfrm.c