]> 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)
commit21f52c2018cad27d49cb766cc0beac2c7e8b0207
tree6e8305fe6926b8dec39c9eb15e480fc18fc2cd5a
parent0bb7f4eb76b5b3706bb66bc084fff1ea9eb4148d
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: 41b57ded5ae5 ("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