Re: [PATCH bpf-next 07/11] libbpf: fix BTF data layout checks and allow empty BTF

2020-11-02 Thread Song Liu
> On Nov 2, 2020, at 9:18 PM, Andrii Nakryiko wrote: > > On Mon, Nov 2, 2020 at 4:51 PM Song Liu wrote: >> >> >> >>> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: >>> >>> Make data section layout checks stricter, disallowing overlap of types and >>> strings data. >>> >>> Additiona

Re: [PATCH bpf-next 07/11] libbpf: fix BTF data layout checks and allow empty BTF

2020-11-02 Thread Andrii Nakryiko
On Mon, Nov 2, 2020 at 4:51 PM Song Liu wrote: > > > > > On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > > > Make data section layout checks stricter, disallowing overlap of types and > > strings data. > > > > Additionally, allow BTFs with no type data. There is nothing inherently > > wr

Re: [PATCH bpf-next 07/11] libbpf: fix BTF data layout checks and allow empty BTF

2020-11-02 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > Make data section layout checks stricter, disallowing overlap of types and > strings data. > > Additionally, allow BTFs with no type data. There is nothing inherently wrong > with having BTF with no types (put potentially with some str

[PATCH bpf-next 07/11] libbpf: fix BTF data layout checks and allow empty BTF

2020-10-28 Thread Andrii Nakryiko
Make data section layout checks stricter, disallowing overlap of types and strings data. Additionally, allow BTFs with no type data. There is nothing inherently wrong with having BTF with no types (put potentially with some strings). This could be a situation with kernel module BTFs, if module doe