Re: [PATCH v3 bpf]: libbpf: fixing leak when kernel does not support btf

2019-03-08 Thread Daniel Borkmann
On 03/08/2019 05:45 PM, Martin Lau wrote: > On Fri, Mar 08, 2019 at 05:18:14AM +, Nikita V. Shirokov wrote: >> we could end up in situation when we have object file w/ all btf >> info but kernel does not support btf yet. in this situation currently >> libbpf just set obj->btf to NULL w/o freein

Re: [PATCH v3 bpf]: libbpf: fixing leak when kernel does not support btf

2019-03-08 Thread Martin Lau
On Fri, Mar 08, 2019 at 05:18:14AM +, Nikita V. Shirokov wrote: > we could end up in situation when we have object file w/ all btf > info but kernel does not support btf yet. in this situation currently > libbpf just set obj->btf to NULL w/o freeing it first. > this patch if fixing it by making

Re: [PATCH v3 bpf]: libbpf: fixing leak when kernel does not support btf

2019-03-08 Thread Daniel Borkmann
On 03/08/2019 06:18 AM, Nikita V. Shirokov wrote: > we could end up in situation when we have object file w/ all btf > info but kernel does not support btf yet. in this situation currently > libbpf just set obj->btf to NULL w/o freeing it first. > this patch if fixing it by making sure to run btf__

Re: [PATCH v3 bpf]: libbpf: fixing leak when kernel does not support btf

2019-03-07 Thread Yonghong Song
On 3/7/19 9:18 PM, Nikita V. Shirokov wrote: > we could end up in situation when we have object file w/ all btf > info but kernel does not support btf yet. in this situation currently > libbpf just set obj->btf to NULL w/o freeing it first. > this patch if fixing it by making sure to run btf__fre

[PATCH v3 bpf]: libbpf: fixing leak when kernel does not support btf

2019-03-07 Thread Nikita V. Shirokov
we could end up in situation when we have object file w/ all btf info but kernel does not support btf yet. in this situation currently libbpf just set obj->btf to NULL w/o freeing it first. this patch if fixing it by making sure to run btf__free first v2->v3: - adding "Fixes" tag v1->v2: - addi