Taehee Yoo
173756b868
hsr: use rcu_read_lock() in hsr_get_node_{list/status}()
...
hsr_get_node_{list/status}() are not under rtnl_lock() because
they are callback functions of generic netlink.
But they use __dev_get_by_index() without rtnl_lock().
So, it would use unsafe data.
In order to fix it, rcu_read_lock() and dev_get_by_index_rcu()
are used instead of __dev_get_by_index().
Fixes: f421436a591d ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-16 01:46:09 -07:00
..
2019-07-06 12:50:01 +02:00
2019-09-27 15:10:34 -07:00
2019-12-09 10:36:44 -08:00
2020-01-09 12:13:43 -08:00
2019-09-24 16:37:18 +02:00
2020-02-04 03:05:26 +00:00
2020-01-09 18:41:40 -08:00
2020-02-18 09:07:55 +01:00
2020-01-26 10:34:17 +02:00
2019-12-18 17:05:58 -08:00
2020-03-14 20:58:10 -07:00
2020-02-24 11:11:19 -08:00
2020-03-11 22:55:25 -07:00
2019-12-08 11:52:02 +01:00
2020-02-08 13:26:41 -08:00
2020-03-13 11:13:45 -07:00
2019-12-09 10:36:44 -08:00
2020-01-09 18:41:40 -08:00
2019-07-10 18:43:43 -07:00
2020-03-11 23:46:11 -07:00
2020-01-27 11:09:31 +01:00
2020-02-26 11:27:31 -08:00
2020-03-16 01:46:09 -07:00
2020-03-03 13:28:48 -08:00
2019-09-26 08:56:17 +02:00
2020-03-15 00:14:08 -07:00
2020-03-11 23:49:30 -07:00
2019-12-09 10:36:44 -08:00
2019-09-27 10:27:14 +02:00
2019-07-08 19:48:57 -07:00
2020-02-04 12:35:49 +01:00
2019-06-23 13:24:17 -07:00
2019-06-17 20:20:36 -07:00
2019-12-20 21:19:36 -08:00
2020-03-11 09:04:14 +01:00
2019-12-04 12:27:13 -08:00
2020-03-05 21:34:42 -08:00
2020-01-09 18:36:22 -08:00
2020-03-06 18:00:43 +01:00
2020-02-18 12:44:23 -08:00
2020-02-29 21:21:23 -08:00
2019-10-24 14:53:48 -07:00
2020-03-05 21:32:42 -08:00
2019-06-19 17:09:55 +02:00
2020-03-03 13:28:48 -08:00
2020-03-15 00:25:25 -07:00
2020-01-03 12:25:50 -08:00
2019-11-26 14:40:13 -08:00
2020-01-14 18:36:42 -08:00
2020-02-16 18:37:09 -08:00
2019-12-16 10:15:49 +01:00
2020-01-26 10:40:21 +01:00
2020-02-07 11:20:57 +01:00
2020-03-14 20:42:29 -07:00
2020-03-08 21:57:48 -07:00
2020-03-10 15:40:33 -07:00
2019-06-22 08:59:24 -04:00
2020-02-13 15:35:33 -05:00
2020-03-03 13:28:49 -08:00
2020-02-19 16:32:06 -08:00
2020-02-27 11:52:35 -08:00
2020-02-27 12:03:56 -08:00
2019-08-10 15:25:47 -07:00
2020-03-11 08:58:39 +01:00
2020-01-09 18:39:33 -08:00
2020-02-11 15:51:11 +01:00
2020-02-13 14:19:00 -08:00
2019-11-15 14:38:29 +01:00
2020-02-20 15:02:02 -08:00
2020-01-24 13:44:07 +01:00
2020-01-08 15:02:21 -08:00