Re: [PATCH bpf v2] selftests: bpf: initialize bpf_object pointers where needed

2019-05-09 Thread Alexei Starovoitov
On Thu, May 9, 2019 at 8:56 AM Martin Lau wrote: > > On Wed, May 08, 2019 at 05:49:32PM +0100, Lorenz Bauer wrote: > > There are a few tests which call bpf_object__close on uninitialized > > bpf_object*, which may segfault. Explicitly zero-initialise these pointers > > to avoid this. > Acked-by: M

Re: [PATCH bpf v2] selftests: bpf: initialize bpf_object pointers where needed

2019-05-09 Thread Martin Lau
On Wed, May 08, 2019 at 05:49:32PM +0100, Lorenz Bauer wrote: > There are a few tests which call bpf_object__close on uninitialized > bpf_object*, which may segfault. Explicitly zero-initialise these pointers > to avoid this. Acked-by: Martin KaFai Lau

[PATCH bpf v2] selftests: bpf: initialize bpf_object pointers where needed

2019-05-08 Thread Lorenz Bauer
There are a few tests which call bpf_object__close on uninitialized bpf_object*, which may segfault. Explicitly zero-initialise these pointers to avoid this. Signed-off-by: Lorenz Bauer --- tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c | 2 +- tools/testing/selftests/bpf/prog_tests/t