Skip to content

Commit c3bc9ce

Browse files
wenxugregkh
authored andcommitted
net/sched: act_ct: fix err check for nf_conntrack_confirm
commit 8955b90 upstream. The confirm operation should be checked. If there are any failed, the packet should be dropped like in ovs and netfilter. Fixes: b57dc7c ("net/sched: Introduce action ct") Signed-off-by: wenxu <wenxu@ucloud.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fc40fde commit c3bc9ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/sched/act_ct.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,8 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a,
10231023
/* This will take care of sending queued events
10241024
* even if the connection is already confirmed.
10251025
*/
1026-
nf_conntrack_confirm(skb);
1026+
if (nf_conntrack_confirm(skb) != NF_ACCEPT)
1027+
goto drop;
10271028
}
10281029

10291030
if (!skip_add)

0 commit comments

Comments
 (0)