From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Aleksandrov Subject: [PATCHv2 0/2] af_key: fixes for sleeping while atomic Date: Fri, 7 Mar 2014 12:44:17 +0100 Message-ID: <1394192659-10764-1-git-send-email-nikolay@redhat.com> References: <20140227151954.GA30946@redhat.com> Cc: Nikolay Aleksandrov , Paul Moore , Dave Jones , Steffen Klassert , Fan Du , "David S. Miller" To: netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4223 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbaCGLtB (ORCPT ); Fri, 7 Mar 2014 06:49:01 -0500 In-Reply-To: <20140227151954.GA30946@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 CC: Dave Jones CC: Steffen Klassert CC: Fan Du CC: David S. Miller 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