summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2010-04-01 10:43:57 +0000
committerDavid S. Miller <davem@davemloft.net>2010-04-01 18:32:08 -0700
commitb914f3a2a35812545f773645f340d7c075e5b64d (patch)
tree813a4aeedd6594700a35f2fbf18754dae96edd55 /kernel/futex.c
parent9e2e61fbf8ad016d24e4af0afff13505f3dd2a2a (diff)
downloadop-kernel-dev-b914f3a2a35812545f773645f340d7c075e5b64d.zip
op-kernel-dev-b914f3a2a35812545f773645f340d7c075e5b64d.tar.gz
netlabel: Fix several rcu_dereference() calls used without RCU read locks
The recent changes to add RCU lock verification to rcu_dereference() calls caught out a problem with netlbl_unlhsh_hash(), see below. =================================================== [ INFO: suspicious rcu_dereference_check() usage. ] --------------------------------------------------- net/netlabel/netlabel_unlabeled.c:246 invoked rcu_dereference_check() without protection! This patch fixes this problem as well as others like it in the NetLabel code. Also included in this patch is the identification of future work to eliminate the RCU read lock in netlbl_domhsh_add(), but in the interest of getting this patch out quickly that work will happen in another patch to be finished later. Thanks to Eric Dumazet and Paul McKenney for their help in understanding the recent RCU changes. Signed-off-by: Paul Moore <paul.moore@hp.com> Reported-by: David Howells <dhowells@redhat.com> CC: Eric Dumazet <eric.dumazet@gmail.com> CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud