]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/sched: act_gact: disallow 'goto chain' on fallback control action
authorDavide Caratti <dcaratti@redhat.com>
Sat, 20 Oct 2018 21:33:07 +0000 (23:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:40:55 +0000 (19:40 -0700)
commit9469f375ab0900075bd3f1f58083c19b0224d978
treeda98fc3fad1ea83d51bf884ba2e8b2d9c50e4dbc
parent92c9d5627a79b02299dd13e3e0ec695475726cf8
net/sched: act_gact: disallow 'goto chain' on fallback control action

in the following command:

 # tc action add action <c1> random <rand_type> <c2> <rand_param>

'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 <dcaratti@redhat.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_gact.c