Files
linux/include/net
Davide Caratti fe384e2fa3 net/sched: don't dereference a->goto_chain to read the chain index
callers of tcf_gact_goto_chain_index() can potentially read an old value
of the chain index, or even dereference a NULL 'goto_chain' pointer,
because 'goto_chain' and 'tcfa_action' are read in the traffic path
without caring of concurrent write in the control path. The most recent
value of chain index can be read also from a->tcfa_action (it's encoded
there together with TC_ACT_GOTO_CHAIN bits), so we don't really need to
dereference 'goto_chain': just read the chain id from the control action.

Fixes: e457d86ada ("net: sched: add couple of goto_chain helpers")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-21 13:26:42 -07:00
..
2019-02-24 21:57:26 -08:00
2018-09-18 19:55:01 -07:00
2019-02-21 16:23:56 -08:00
2019-01-23 11:18:00 -08:00
2018-09-26 20:22:19 -07:00
2019-02-13 21:07:47 -08:00
2018-11-07 23:00:23 -08:00
2019-02-25 14:32:35 -08:00
2018-09-13 09:04:58 -07:00
2018-09-25 20:17:35 -07:00
2018-12-20 16:56:04 -08:00
2019-03-03 22:10:16 -08:00