[Devel] [PATCH rh7] fib_rules: mark default fib reles as BLACK

Andrey Ryabinin aryabinin at odin.com
Mon Nov 23 08:15:34 PST 2015



On 11/23/2015 07:04 PM, Stanislav Kinsburskiy wrote:
> 
> 
> 23.11.2015 16:53, Andrey Ryabinin пишет:
>>
>> On 11/23/2015 06:46 PM, Stanislav Kinsburskiу wrote:
>>
>>> +1
>>> I'm curious, why network namespace is not reported as leaked...
>>>
>>>>> 3) This object holds network namespace. And it also have to be leaked leaked after CT stop. Is it?
>> Why do you think it leaked?
>> How the rule could hold the namespace?
> int fib_default_rule_add(struct fib_rules_ops *ops,
>                          u32 pref, u32 table, u32 flags)
> {
> <snip>
>         r->fr_net = hold_net(ops->fro_net);

That is fib_rules_ops. ops not leaked, so net ns is also not leaking.
We leaking fib_rule.


> <snip>
>         return 0;
> }
> 
> But, probably, we have NETNS_REFCNT_DEBUG unset. And that's bad...
> 


More information about the Devel mailing list