]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc710471b80278f96f0fc580919344f74b3c23d9a
tree6e8305fe6926b8dec39c9eb15e480fc18fc2cd5a
parent3b1009b7e68eac1e9128119596925ac78a18ea89
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: b041aad6e6fc ("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