Re: [PATCH bpf] bpf: btf: Ensure the member->offset is in the right order

2018-07-23 Thread Daniel Borkmann
On 07/23/2018 08:45 PM, Yonghong Song wrote: > On 7/20/18 5:38 PM, Martin KaFai Lau wrote: >> This patch ensures the member->offset of a struct >> is in the correct order (i.e the later member's offset cannot >> go backward). >> >> The current "pahole -J" BTF encoder does not generate something >>

Re: [PATCH bpf] bpf: btf: Ensure the member->offset is in the right order

2018-07-23 Thread Yonghong Song
On 7/20/18 5:38 PM, Martin KaFai Lau wrote: This patch ensures the member->offset of a struct is in the correct order (i.e the later member's offset cannot go backward). The current "pahole -J" BTF encoder does not generate something like this. However, checking this can ensure future encode

[PATCH bpf] bpf: btf: Ensure the member->offset is in the right order

2018-07-20 Thread Martin KaFai Lau
This patch ensures the member->offset of a struct is in the correct order (i.e the later member's offset cannot go backward). The current "pahole -J" BTF encoder does not generate something like this. However, checking this can ensure future encoder will not violate this. Fixes: 69b693f0aefa ("b