net/sched: cls_flower: Reject invalid ct_state flags rules
authorwenxu <wenxu@ucloud.cn>
Tue, 9 Feb 2021 06:37:49 +0000 (14:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 11:34:07 +0000 (12:34 +0100)
commit7b23cad0308ad12bb1c228ff103d7e2ad836156d
tree5c306559a38bdf4f92a81379511bfbdfe4dad957
parentb74206091e291509cc4724c0cfeaf52c89abf2b3
net/sched: cls_flower: Reject invalid ct_state flags rules

commit 1bcc51ac0731aab1b109b2cd5c3d495f1884e5ca upstream.

Reject the unsupported and invalid ct_state flags of cls flower rules.

Fixes: e0ace68af2ac ("net/sched: cls_flower: Add matching on conntrack info")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c