[Devel] [RFC] NETNS_REFCNT_DEBUG define
Stanislav Kinsburskiу
skinsbursky at odin.com
Tue Nov 24 01:01:27 PST 2015
24 нояб. 2015 г. 9:55 пользователь Konstantin Khorenko <khorenko at virtuozzo.com> написал:
>
> On 11/23/2015 07:43 PM, Stanislav Kinsburskiy wrote:
> > Hello gentlemen,
> >
> > There was NETNS_REFCNT_DEBUG debug introduced in past to track down
> > situations, when network namespace is being hold (not referenced;
> > another ref count is used) by various objects, so, on net namespace
> > release such situations with leaked network objects can be reported.
> > We don't have this option enabled.
> > And thus there are two options: either enable it, or clean out all the
> > references to it's functions, to they won't obfuscate the reader.
> > I personally would prefer the former.
>
> Well, i don't like the latter option anyway.
>
> i have no objections enabling NETNS_REFCNT_DEBUG in _debug_ kernels only,
> so please send a patch.
>
> The only extra thing: please make it not only print the err message, but also taint kernel,
> so our autotests could catch this.
>
> If anybody objects, please let us know.
>
Sure.
But I have to mention, that Eric Biederman cut this stuff off from upstream kernel few month ago.
> --
> Konstantin
More information about the Devel
mailing list