Re: [PATCH bpf] tools: bpftool: fix crash with un-owned prog arrays

2019-01-28 Thread Daniel Borkmann
On 01/28/2019 07:01 PM, Jakub Kicinski wrote: > Prog arrays don't have 'owner_prog_type' and 'owner_jited' > fields in their fdinfo when they are created. Those fields > are set and reported when first program is checked for > compatibility by bpf_prog_array_compatible(). > > This means that bpft

Re: [PATCH bpf] tools: bpftool: fix crash with un-owned prog arrays

2019-01-28 Thread Song Liu
On Mon, Jan 28, 2019 at 10:06 AM Jakub Kicinski wrote: > > Prog arrays don't have 'owner_prog_type' and 'owner_jited' > fields in their fdinfo when they are created. Those fields > are set and reported when first program is checked for > compatibility by bpf_prog_array_compatible(). > > This mean

[PATCH bpf] tools: bpftool: fix crash with un-owned prog arrays

2019-01-28 Thread Jakub Kicinski
Prog arrays don't have 'owner_prog_type' and 'owner_jited' fields in their fdinfo when they are created. Those fields are set and reported when first program is checked for compatibility by bpf_prog_array_compatible(). This means that bpftool cannot expect the fields to always be there. Currentl