diff options
author | Amir Mohammadi <[email protected]> | 2024-11-21 12:04:13 +0330 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-11-25 14:28:46 -0800 |
commit | ef3ba8c258ee368a5343fa9329df85b4bcb9e8b5 (patch) | |
tree | 57c8aa57034107f62be938877fee81152085a197 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | ac9a48a6f1610b094072b815e884e1668aea4401 (diff) |
bpftool: fix potential NULL pointer dereferencing in prog_dump()
A NULL pointer dereference could occur if ksyms
is not properly checked before usage in the prog_dump() function.
Fixes: b053b439b72a ("bpf: libbpf: bpftool: Print bpf_line_info during prog dump")
Signed-off-by: Amir Mohammadi <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions