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-19 11:14:48 +01:00
2015-02-08 16:53:57 -08:00
2014-09-18 10:54:36 +02:00
2014-11-11 15:23:54 -05:00
2015-02-11 14:46:37 -05:00
2014-07-07 21:14:21 -07:00
2015-02-14 20:36:08 -08:00
2014-11-06 15:11:10 -05:00
2015-04-02 20:52:34 -04:00
2015-01-25 14:47:16 -08:00
2014-12-31 18:25:54 -05:00
2015-01-25 14:47:16 -08:00
2015-01-25 14:47:16 -08:00
2015-02-11 15:12:13 -08:00
2015-01-28 23:04:15 -08:00
2014-09-08 15:23:05 -07:00
2014-12-05 21:18:34 -08:00
2015-01-31 17:48:18 -08:00
2014-11-16 16:55:06 -05:00
2015-03-17 15:03:54 -04:00
2015-03-13 15:54:27 -04:00
2014-11-11 14:10:31 -05:00
2014-08-23 12:21:21 -07:00
2014-09-08 16:42:42 -07:00
2015-03-11 23:51:18 -04:00
2015-03-05 21:43:48 -05:00
2015-02-08 16:28:06 -08:00
2014-09-28 16:35:42 -04:00
2015-03-02 22:19:29 -05:00
2015-03-08 23:01:54 -04:00
2014-10-17 23:45:26 -04:00
2015-01-19 14:32:03 -05:00
2015-01-19 14:32:03 -05:00
2015-01-19 15:45:10 -05:00
2015-02-08 16:28:06 -08:00
2015-04-02 20:52:34 -04:00
2014-11-05 16:30:02 -05:00
2014-10-06 00:32:20 -04:00
2015-03-04 15:46:51 -05:00
2015-02-08 01:03:12 -08:00
2014-09-19 17:15:31 -04:00
2015-02-04 01:34:15 -05:00
2015-02-05 14:33:28 -08:00
2014-11-04 16:06:09 -05:00
2015-02-09 18:45:00 -08:00
2015-01-28 22:18:37 -08:00
2015-03-11 16:51:51 -04:00
2015-03-11 16:51:51 -04:00
2014-09-29 00:13:10 -04:00
2014-09-01 18:12:45 -07:00
2015-02-13 07:11:40 -08:00
2014-09-01 18:12:45 -07:00
2014-09-01 18:12:45 -07:00
2014-09-01 18:12:45 -07:00
2014-09-01 18:12:45 -07:00
2015-04-02 16:35:58 -04:00
2015-03-23 22:38:24 -04:00
2014-05-03 19:23:07 -04:00
2015-02-12 18:54:10 -08:00
2015-01-18 01:03:45 -05:00
2015-02-08 01:03:13 -08:00
2014-11-05 23:52:33 -08:00
2015-03-20 13:18:52 -04:00
2014-09-01 18:12:45 -07:00
2015-01-28 22:18:37 -08:00
2015-02-09 18:45:00 -08:00
2014-09-01 18:12:45 -07:00
2015-01-28 22:18:37 -08:00
2014-09-29 00:13:10 -04:00
2015-01-28 22:18:37 -08:00
2015-03-05 22:31:12 -05:00
2015-01-27 00:02:41 -08:00
2015-02-11 15:12:10 -08:00
2015-01-24 23:15:40 -08:00
2015-01-05 22:44:46 -05:00
2014-05-23 16:28:53 -04:00
2014-06-02 11:00:41 -07:00
2015-02-09 11:14:17 +01:00
2014-06-30 07:49:47 +02:00