Paul Moore
b914f3a2a3
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 <[email protected] >
Reported-by: David Howells <[email protected] >
CC: Eric Dumazet <[email protected] >
CC: Paul E. McKenney <[email protected] >
Acked-by: Eric Dumazet <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2010-04-01 18:32:08 -07:00
..
9p
9p: Change the name of new protocol from 9p2010.L to 9p2000.L
2010-03-13 08:57:29 -06:00
802
8021q
vlan: updates vlan real_num_tx_queues
2010-03-24 11:11:38 -07:00
appletalk
net: appletalk: use seq_hlist_foo() helpers
2010-02-10 11:12:09 -08:00
atm
net: atm: use seq_list_foo() helpers
2010-02-10 12:31:10 -08:00
ax25
net: ax25: use seq_hlist_foo() helpers
2010-02-10 11:12:09 -08:00
bluetooth
net: check the length of the socket address passed to connect(2)
2010-04-01 17:26:01 -07:00
bridge
bridge: Make first arg to deliver_clone const.
2010-03-16 14:37:47 -07:00
can
net: check the length of the socket address passed to connect(2)
2010-04-01 17:26:01 -07:00
core
netpoll: warn when there are spaces in parameters
2010-03-22 20:05:45 -07:00
dcb
const: struct nla_policy
2010-02-18 14:30:18 -08:00
dccp
net-2.6 [Bug-Fix][dccp]: fix oops caused after failed initialisation
2010-03-15 16:00:50 -07:00
decnet
net: Add checking to rcu_dereference() primitives
2010-02-25 09:41:03 +01:00
dsa
econet
ethernet
llc: use dev_hard_header
2009-12-26 20:38:23 -08:00
ieee802154
net: check the length of the socket address passed to connect(2)
2010-04-01 17:26:01 -07:00
ipv4
net: check the length of the socket address passed to connect(2)
2010-04-01 17:26:01 -07:00
ipv6
ipv6: Don't drop cache route entry unless timer actually expired.
2010-03-28 19:34:26 -07:00
ipx
net: ipx: use seq_list_foo() helpers
2010-02-10 12:31:10 -08:00
irda
const: struct nla_policy
2010-02-18 14:30:18 -08:00
iucv
key
af_key: return error if pfkey_xfrm_policy2msg_prep() fails
2010-03-24 13:28:27 -07:00
lapb
llc
net: backlog functions rename
2010-03-05 13:34:03 -08:00
mac80211
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
2010-03-31 19:32:50 -07:00
netfilter
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
2010-03-25 11:48:58 -07:00
netlabel
netlabel: Fix several rcu_dereference() calls used without RCU read locks
2010-04-01 18:32:08 -07:00
netlink
net: check the length of the socket address passed to connect(2)
2010-04-01 17:26:01 -07:00
netrom
net: netrom: use seq_hlist_foo() helpers
2010-02-10 11:12:08 -08:00
packet
af_packet: move strict addr_len check right before dev_[mc/unicast]_[add/del]
2010-03-03 01:04:38 -08:00
phonet
phonet: use for_each_set_bit()
2010-03-15 16:00:47 -07:00
rds
net/rds: remove uses of NIPQUAD, use %pI4
2010-02-03 20:16:48 -08:00
rfkill
rfkill: Add support for KEY_RFKILL
2010-03-02 14:28:49 -05:00
rose
net: rose: use seq_hlist_foo() helpers
2010-02-10 11:12:08 -08:00
rxrpc
rxrpc: Check allocation failure.
2010-03-22 09:57:19 -07:00
sched
cgroups: net_cls as module
2010-03-23 13:06:14 -07:00
sctp
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
2010-03-13 14:50:18 -08:00
sunrpc
Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
2010-03-18 16:50:09 -07:00
tipc
tipc: fix lockdep warning on address assignment
2010-03-16 14:15:45 -07:00
unix
AF_UNIX: update locking comment
2010-02-18 14:12:06 -08:00
wanrouter
wimax
const: struct nla_policy
2010-02-18 14:30:18 -08:00
wireless
wireless: convert reg_regdb_search_lock to mutex
2010-03-30 15:37:20 -04:00
x25
net: backlog functions rename
2010-03-05 13:34:03 -08:00
xfrm
ipsec: Fix bogus bundle flowi
2010-03-03 01:04:37 -08:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
net: Add MSG_WAITFORONE flag to recvmmsg
2010-03-27 08:29:01 -07:00
sysctl_net.c
net: spread __net_init, __net_exit
2010-01-17 19:16:02 -08:00
TUNABLE