Re: [PATCH bpf-next 1/9] libbpf: fix detection of corrupted BPF instructions section

2019-05-29 Thread Andrii Nakryiko
On Wed, May 29, 2019 at 10:01 AM Song Liu wrote: > > On Tue, May 28, 2019 at 6:14 PM Andrii Nakryiko wrote: > > > > Ensure that size of a section w/ BPF instruction is exactly a multiple > > of BPF instruction size. > > > > Signed-off-by: Andrii Nakryiko > > --- > > tools/lib/bpf/libbpf.c | 12

Re: [PATCH bpf-next 1/9] libbpf: fix detection of corrupted BPF instructions section

2019-05-29 Thread Song Liu
On Tue, May 28, 2019 at 6:14 PM Andrii Nakryiko wrote: > > Ensure that size of a section w/ BPF instruction is exactly a multiple > of BPF instruction size. > > Signed-off-by: Andrii Nakryiko > --- > tools/lib/bpf/libbpf.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > >

[PATCH bpf-next 1/9] libbpf: fix detection of corrupted BPF instructions section

2019-05-28 Thread Andrii Nakryiko
Ensure that size of a section w/ BPF instruction is exactly a multiple of BPF instruction size. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/libbpf.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index ca4432f