[Devel] [PATCH rh7] fib_rules: mark default fib reles as BLACK
Stanislav Kinsburskiу
skinsbursky at odin.com
Mon Nov 23 08:28:50 PST 2015
23 нояб. 2015 г. 17:15 пользователь Andrey Ryabinin <aryabinin at odin.com> написал:
>
>
>
> 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.
>
I was not clear enough, sorry.
I meant debug message in dmesg, which should be printed in net_free() if NETNS_REFCNT_DEBUG is set.
I didn't see it.
>
> > <snip>
> > return 0;
> > }
> >
> > But, probably, we have NETNS_REFCNT_DEBUG unset. And that's bad...
> >
More information about the Devel
mailing list