Re: [PATCH bpf-next] libbf: fix uninitialized pointer at btf__parse_raw()

2020-08-06 Thread Alexei Starovoitov
On Wed, Aug 5, 2020 at 11:22 PM John Fastabend wrote: > > Daniel T. Lee wrote: > > Recently, from commit 94a1fedd63ed ("libbpf: Add btf__parse_raw() and > > generic btf__parse() APIs"), new API has been added to libbpf that > > allows to parse BTF from raw data file (btf__parse_raw()). > > > > The

RE: [PATCH bpf-next] libbf: fix uninitialized pointer at btf__parse_raw()

2020-08-05 Thread John Fastabend
Daniel T. Lee wrote: > Recently, from commit 94a1fedd63ed ("libbpf: Add btf__parse_raw() and > generic btf__parse() APIs"), new API has been added to libbpf that > allows to parse BTF from raw data file (btf__parse_raw()). > > The commit derives build failure of samples/bpf due to improper access

[PATCH bpf-next] libbf: fix uninitialized pointer at btf__parse_raw()

2020-08-05 Thread Daniel T. Lee
Recently, from commit 94a1fedd63ed ("libbpf: Add btf__parse_raw() and generic btf__parse() APIs"), new API has been added to libbpf that allows to parse BTF from raw data file (btf__parse_raw()). The commit derives build failure of samples/bpf due to improper access of uninitialized pointer at btf