Skip to content

Commit 8955b90

Browse files
wenxudavem330
authored andcommitted
net/sched: act_ct: fix err check for nf_conntrack_confirm
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>
1 parent 1bfa4d0 commit 8955b90

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
@@ -1026,7 +1026,8 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a,
10261026
/* This will take care of sending queued events
10271027
* even if the connection is already confirmed.
10281028
*/
1029-
nf_conntrack_confirm(skb);
1029+
if (nf_conntrack_confirm(skb) != NF_ACCEPT)
1030+
goto drop;
10301031
}
10311032

10321033
if (!skip_add)

0 commit comments

Comments
 (0)