acrn-kernel/net/core
Eric W. Biederman f4618d39a3 [NETNS]: Simplify the network namespace list locking rules.
Denis V. Lunev <den@sw.ru> noticed that the locking rules
for the network namespace list are over complicated and broken.

In particular the current register_netdev_notifier currently
does not take any lock making the for_each_net iteration racy
with network namespace creation and destruction. Oops.

The fact that we need to use for_each_net in rtnl_unlock() when
the rtnetlink support becomes per network namespace makes designing
the proper locking tricky.  In addition we need to be able to call
rtnl_lock() and rtnl_unlock() when we have the net_mutex held.

After thinking about it and looking at the alternatives carefully
it looks like the simplest and most maintainable solution is
to remove net_list_mutex altogether, and to use the rtnl_mutex instead.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:52:55 -07:00
..
Makefile [NET]: Fix running without sysfs 2007-10-10 16:52:46 -07:00
datagram.c [NET]: Do not dereference iov if length is zero 2007-09-11 10:29:07 +02:00
dev.c [NET]: Move hardware header operations out of netdevice. 2007-10-10 16:52:52 -07:00
dev_mcast.c [NET]: Fix race when opening a proc file while a network namespace is exiting. 2007-10-10 16:49:22 -07:00
dst.c [NET]: Make the loopback device per network namespace. 2007-10-10 16:52:49 -07:00
ethtool.c [ETHTOOL] Provide default behaviors for a few ethtool sub-ioctls 2007-10-10 16:51:17 -07:00
fib_rules.c [IPV4/IPV6/DECNET]: Small cleanup for fib rules. 2007-10-10 16:51:22 -07:00
filter.c
flow.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
gen_estimator.c
gen_stats.c
iovec.c
kmap_skb.h
link_watch.c
neighbour.c [NET]: Move hardware header operations out of netdevice. 2007-10-10 16:52:52 -07:00
net-sysfs.c [NET]: Fix running without sysfs 2007-10-10 16:52:46 -07:00
net_namespace.c [NETNS]: Simplify the network namespace list locking rules. 2007-10-10 16:52:55 -07:00
netevent.c
netpoll.c [NET]: Wrap netdevice hardware header creation. 2007-10-10 16:52:50 -07:00
pktgen.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
request_sock.c
rtnetlink.c [NETLINK]: Avoid pointer in netlink_run_queue 2007-10-10 16:51:24 -07:00
scm.c
skbuff.c [SKBUFF]: Fix up csum_start when head room changes 2007-10-10 16:51:24 -07:00
sock.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c [NET] net/core/utils: fix sparse warning 2007-08-07 18:02:43 -07:00