Re: [PATCH bpf] selftests/bpf: fix segfault of test_progs when prog loading failed

2019-03-12 Thread Daniel Borkmann
On 03/12/2019 06:21 AM, Yonghong Song wrote: > The test_progs subtests, test_spin_lock() and test_map_lock(), > requires BTF present to run successfully. > Currently, when BTF failed to load, test_progs will segfault, > $ ./test_progs > ... > 12: (bf) r1 = r8 > 13: (85) call bpf_spin_lock#9

Re: [PATCH bpf] selftests/bpf: fix segfault of test_progs when prog loading failed

2019-03-11 Thread Song Liu
> On Mar 11, 2019, at 10:21 PM, Yonghong Song wrote: > > The test_progs subtests, test_spin_lock() and test_map_lock(), > requires BTF present to run successfully. > Currently, when BTF failed to load, test_progs will segfault, > $ ./test_progs > ... > 12: (bf) r1 = r8 > 13: (85) call bpf_