[PATCHv2 0/2] af_key: fixes for sleeping while atomic
From: Nikolay Aleksandrov <hidden>
Date: 2014-03-07 11:49:01
Hi,
The first patch takes care of the issue on the af_key side, and the second
one fixes it on the selinux side (security_xfrm_policy_alloc).
There're a few lines >80 but they were already long, I'm not sure if breaking
them above the limit would make them more readable than they already are.
The v2 is because Paul caught a place which could do GFP_KERNEL allocation
from xfrm_policy_alloc_user, so I've adjusted that too.
Best regards,
Nikolay Aleksandrov
CC: Paul Moore <paul@paul-moore.com>
CC: Dave Jones <redacted>
CC: Steffen Klassert <steffen.klassert@secunet.com>
CC: Fan Du <redacted>
CC: David S. Miller <davem@davemloft.net>
Nikolay Aleksandrov (2):
net: af_key: fix sleeping under rcu
selinux: add gfp argument to security_xfrm_policy_alloc and fix
callers
include/linux/security.h | 10 +++++++---
net/key/af_key.c | 19 ++++++++++---------
net/xfrm/xfrm_user.c | 6 +++---
security/capability.c | 3 ++-
security/security.c | 6 ++++--
security/selinux/hooks.c | 13 +++++++------
security/selinux/include/security.h | 2 +-
security/selinux/include/xfrm.h | 3 ++-
security/selinux/selinuxfs.c | 28 ++++++++++++++++++----------
security/selinux/ss/services.c | 6 ++++--
security/selinux/xfrm.c | 14 ++++++++------
11 files changed, 66 insertions(+), 44 deletions(-)
--
1.8.5.3