Skip to content

af_key: fixes for sleeping while atomic

Nikolay Aleksandrov netdev selinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: af_key: fix sleeping under rcunet/key/af_key.c+7 -60 replies
2/2selinux: add gfp argument to security_xfrm_policy_alloc and fix callersinclude/linux/security.h net/key/af_key.c net/xfrm/xfrm_user.c +8 more+59 -382 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPaul Moore
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/2] af_key: fixes for sleeping while atomic

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 <[email protected]>
CC Dave Jones <[email protected]>
CC Steffen Klassert <[email protected]>
CC Fan Du <[email protected]>
CC David S. Miller <[email protected]>

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(-)
Signature · 1 line
1.8.5.3