]> Git Repo - linux.git/commit - net/sched/act_police.c
net/sched: act_police: disallow 'goto chain' on fallback control action
authorDavide Caratti <[email protected]>
Sat, 20 Oct 2018 21:33:08 +0000 (23:33 +0200)
committerDavid S. Miller <[email protected]>
Tue, 23 Oct 2018 02:42:50 +0000 (19:42 -0700)
commitc08f5ed5d625926f38552b734b587a28e947b55c
tree558eb27811f3c42a1a0d2ce53de8f1687cc579f8
parent9469f375ab0900075bd3f1f58083c19b0224d978
net/sched: act_police: disallow 'goto chain' on fallback control action

in the following command:

 # tc action add action police rate <r> burst <b> conform-exceed <c1>/<c2>

'goto chain x' is allowed only for c1: setting it for c2 makes the kernel
crash with NULL pointer dereference, since TC core doesn't initialize the
chain handle.

Signed-off-by: Davide Caratti <[email protected]>
Acked-by: Cong Wang <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/act_police.c
This page took 0.053113 seconds and 4 git commands to generate.