From: Parag Warudkar Date: Tue, 2 Jan 2007 20:09:31 +0000 (+0100) Subject: [PATCH] selinux: fix selinux_netlbl_inode_permission() locking X-Git-Tag: v2.6.20-rc4~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9883a13c72dbf8c518814b6091019643cdb34429;p=pandora-kernel.git [PATCH] selinux: fix selinux_netlbl_inode_permission() locking do not call a sleeping lock API in an RCU read section. lock_sock_nested can sleep, its BH counterpart doesn't. selinux_netlbl_inode_permission() needs to use the BH counterpart unconditionally. Compile tested. From: Ingo Molnar added BH disabling, because this function can be called from non-atomic contexts too, so a naked bh_lock_sock() would be deadlock-prone. Boot-tested the resulting kernel. Signed-off-by: Parag Warudkar Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed