4.17-stable review patch. If anyone has any objections, please let me know.
------------------ From: Hangbin Liu <liuhang...@gmail.com> [ Upstream commit a51c76b4dfb30496dc65396a957ef0f06af7fb22 ] Fix tcf_unbind_filter missing in cls_matchall as this will trigger WARN_ON() in cbq_destroy_class(). Fixes: fd62d9f5c575f ("net/sched: matchall: Fix configuration race") Reported-by: Li Shuang <shu...@redhat.com> Signed-off-by: Hangbin Liu <liuhang...@gmail.com> Acked-by: Cong Wang <xiyou.wangc...@gmail.com> Signed-off-by: David S. Miller <da...@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- net/sched/cls_matchall.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/sched/cls_matchall.c +++ b/net/sched/cls_matchall.c @@ -122,6 +122,8 @@ static void mall_destroy(struct tcf_prot if (!head) return; + tcf_unbind_filter(tp, &head->res); + if (!tc_skip_hw(head->flags)) mall_destroy_hw_filter(tp, head, (unsigned long) head, extack);