]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Fix realloc size in bpf_get_addrs
authorJiri Olsa <jolsa@kernel.org>
Wed, 1 Oct 2025 12:22:23 +0000 (14:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 1 Oct 2025 20:37:30 +0000 (13:37 -0700)
commit0c342bfc9949dffeaa83ebdde3b4b0ce59009348
treed9ecf01a61cfb80360ba9b895ce67b65d81a6385
parent4b2b38ea20567d842607b7bca6d618d154c78d84
selftests/bpf: Fix realloc size in bpf_get_addrs

We will segfault once we call realloc in bpf_get_addrs due to
wrong size argument.

Fixes: 6302bdeb91df ("selftests/bpf: Add a kprobe_multi subtest to use addrs instead of syms")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/trace_helpers.c