net: sched: fix unprotected access to rcu cookie pointer
authorVlad Buslov <vladbu@mellanox.com>
Mon, 9 Jul 2018 17:26:47 +0000 (20:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:01:02 +0000 (23:01 -0700)
commite0479b670d394d478907bd4fc22daab6516953c7
tree6e8305fe6926b8dec39c9eb15e480fc18fc2cd5a
parent2368957ab54d9eb14aff10b80bab1a888b092bd7
net: sched: fix unprotected access to rcu cookie pointer

Fix action attribute size calculation function to take rcu read lock and
access act_cookie pointer with rcu dereference.

Fixes: eec94fdb0480 ("net: sched: use rcu for action cookie update")
Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c