WANG Cong 419df12fb5 net: move fib_rules_unregister() under rtnl lock
We have to hold rtnl lock for fib_rules_unregister()
otherwise the following race could happen:

fib_rules_unregister():	fib_nl_delrule():
...				...
...				ops = lookup_rules_ops();
list_del_rcu(&ops->list);
				list_for_each_entry(ops->rules) {
fib_rules_cleanup_ops(ops);	  ...
  list_del_rcu();		  list_del_rcu();
				}

Note, net->rules_mod_lock is actually not needed at all,
either upper layer netns code or rtnl lock guarantees
we are safe.

Cc: Alexander Duyck <alexander.h.duyck@redhat.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-04-02 20:52:34 -04:00
..
2015-03-13 15:55:41 +10:30
2014-11-24 04:28:48 -05:00
2014-12-09 16:29:03 -05:00
2014-11-24 04:28:48 -05:00
2015-03-08 12:25:40 -07:00
2015-03-31 16:06:50 -04:00
2014-11-24 04:28:48 -05:00
2014-11-24 04:28:48 -05:00
2015-02-04 09:15:18 +01:00
2015-03-12 00:28:01 -04:00
2014-11-24 04:28:48 -05:00
2015-03-31 23:10:08 -04:00
2015-01-28 23:15:07 -08:00
2014-10-07 20:28:44 -04:00
2014-11-24 04:28:48 -05:00