aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorXu Kuohai <[email protected]>2022-10-11 12:01:04 +0000
committerAndrii Nakryiko <[email protected]>2022-10-13 17:53:18 +0000
commit0dc9254e03704c75f2ebc9cbef2ce4de83fba603 (patch)
tree9241bdca95d8ad1589961a09e182f3e97a199567 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentlibbpf: Fix use-after-free in btf_dump_name_dups (diff)
downloadkernel-0dc9254e03704c75f2ebc9cbef2ce4de83fba603.tar.gz
kernel-0dc9254e03704c75f2ebc9cbef2ce4de83fba603.zip
libbpf: Fix memory leak in parse_usdt_arg()
In the arm64 version of parse_usdt_arg(), when sscanf returns 2, reg_name is allocated but not freed. Fix it. Fixes: 0f8619929c57 ("libbpf: Usdt aarch64 arg parsing support") Signed-off-by: Xu Kuohai <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions