Subject: Re: Possible bug in tc tool or kernel

From: Соловьев Сергей <[email-masked]>
Date: Thu, 19 Mar 2015 17:45:30 +0300

17.03.2015 23:42, Cong Wang пишет:
> On Tue, Mar 17, 2015 at 2:57 AM, Соловьев Сергей <[email-masked]> wrote:
>> Hi!
>>
>> I'm sol sorry, but English in not my native language.
>>
>> After upgrade kernel  tc lost some u32 filters
>>
>> example: where is a "match ip dst 10.10.0.0/24" entries?
>>
> Can you check if the following commit fixes your problem?
>
> It is already merged in stable kernel, you probably need to
> wait for a newer Fedora kernel release if it has included it.
>
> commit b057df24a7536cce6c372efe9d0e3d1558afedf4
> Author: Ignacy Gawędzki <[email-masked]>
> Date:   Tue Feb 3 19:05:18 2015 +0100
>
>      cls_api.c: Fix dumping of non-existing actions' stats.
>
>      In tcf_exts_dump_stats(), ensure that exts->actions is not empty before
>      accessing the first element of that list and calling tcf_action_copy_stats()
>      on it.  This fixes some random segvs when adding filters of type
> "basic" with
>      no particular action.
>
>      This also fixes the dumping of those "no-action" filters, which more often
>      than not made calls to tcf_action_copy_stats() fail and consequently netlink
>      attributes added by the caller to be removed by a call to nla_nest_cancel().
>
>      Fixes: 33be62715991 ("net_sched: act: use standard struct list_head")
>      Signed-off-by: Ignacy Gawędzki <[email-masked]>
>      Acked-by: Cong Wang <[email-masked]>
>      Signed-off-by: David S. Miller <[email-masked]>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to [email-masked]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Checked. This patch is applied to my kernel and not fixes this problem.

tc as part of iproute2 freshed to latest 3.19.0 version, but nothing...