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

2019-05-29 Thread Song Liu
> On May 29, 2019, at 10:36 AM, 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 Acked-by: Song Liu > --- > tools/lib/bpf/libbpf.c | 12 +++- > 1 file changed, 7 insertion

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

2019-05-29 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