Re: [PATCH bpf-next] selftests/bpf: fix crash in core_reloc when bpftool btfgen fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Should it be:
>                 bpf_object__close(obj);
>                 obj = NULL:

No, the actual crash is caused by this line:
https://github.com/kernel-patches/bpf/blob/bpf-next/tools/testing/selftests/bpf/prog_tests/core_reloc.c#L896

When run_btfgen fails, the obj contains uninitialized data and then
bpf_object__close(obj) crashes.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux