mbox series

[bpf,v2,0/5] Fix bugs found by ASAN when running selftests

Message ID 20221010070454.577433-1-xukuohai@huaweicloud.com (mailing list archive)
Headers show
Series Fix bugs found by ASAN when running selftests | expand

Message

Xu Kuohai Oct. 10, 2022, 7:04 a.m. UTC
v2:
- Rebase and fix conflict

v1: https://lore.kernel.org/bpf/20221009131830.395569-1-xukuohai@huaweicloud.com/

Xu Kuohai (5):
  libbpf: Fix use-after-free in btf_dump_name_dups
  libbpf: Fix memory leak in parse_usdt_arg()
  selftests/bpf: Fix memory leak caused by not destroying skeleton
  selftest/bpf: Fix memory leak in kprobe_multi_test
  selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c

 tools/lib/bpf/btf_dump.c                      | 47 +++++++++++----
 tools/lib/bpf/usdt.c                          | 59 +++++++++++--------
 .../bpf/prog_tests/kprobe_multi_test.c        | 17 +++---
 .../selftests/bpf/prog_tests/map_kptr.c       |  3 +-
 .../selftests/bpf/prog_tests/tracing_struct.c |  3 +-
 .../bpf/prog_tests/xdp_adjust_tail.c          |  6 +-
 6 files changed, 85 insertions(+), 50 deletions(-)