Jiri Pirko
255cd50f20
net: sched: fix use-after-free in tcf_action_destroy and tcf_del_walker
...
Recent commit d7fb60b9ca
("net_sched: get rid of tcfa_rcu") removed
freeing in call_rcu, which changed already existing hard-to-hit
race condition into 100% hit:
[ 598.599825] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
[ 598.607782] IP: tcf_action_destroy+0xc0/0x140
Or:
[ 40.858924] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
[ 40.862840] IP: tcf_generic_walker+0x534/0x820
Fix this by storing the ops and use them directly for module_put call.
Fixes: a85a970af2
("net_sched: move tc_action into tcf_common")
Signed-off-by: Jiri Pirko <jiri@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-09-13 09:34:08 -07:00
..
2017-09-13 09:34:08 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2016-03-01 17:15:23 -05:00
2016-03-01 17:15:23 -05:00
2016-09-19 21:55:28 -04:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-09-12 20:41:02 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-07 14:12:17 -07:00
2017-08-07 14:12:17 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2017-09-11 14:34:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2016-11-03 10:56:21 +01:00
2017-07-01 07:39:08 -07:00
2014-10-06 18:02:32 -04:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2017-04-13 13:58:22 -04:00
2017-06-05 10:56:36 -04:00
2017-01-24 13:44:28 -05:00
2017-09-01 17:42:05 -07:00
2017-08-25 17:19:10 -07:00
2016-06-25 12:19:35 -04:00
2017-09-01 17:42:05 -07:00
2017-05-08 17:15:13 -07:00
2017-04-13 13:58:22 -04:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2016-09-19 01:47:18 -04:00
2017-09-01 17:42:05 -07:00
2017-07-12 16:26:03 -07:00
2017-09-01 17:42:05 -07:00
2017-04-13 13:58:22 -04:00
2017-09-01 17:42:05 -07:00
2017-08-30 15:26:11 -07:00
2017-09-01 17:42:05 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-09-01 17:42:05 -07:00
2017-09-01 17:42:05 -07:00
2017-04-13 13:58:22 -04:00
2016-06-25 12:19:35 -04:00
2017-09-06 21:20:07 -07:00
2017-09-06 21:20:07 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-09-01 17:42:05 -07:00
2017-09-01 17:42:05 -07:00
2017-01-08 17:51:44 -05:00