diff options
author | 2025-01-08 23:09:37 +0100 | |
---|---|---|
committer | 2025-01-10 14:16:13 -0800 | |
commit | defac894af93cb347fae0520fe8f14ca36f6fe87 (patch) | |
tree | 9f98091dfacbc596023eb1504557623a647a3852 /scripts/generate_rust_analyzer.py | |
parent | selftests/bpf: Add a test for kprobe multi with unique_match (diff) | |
download | wireguard-linux-defac894af93cb347fae0520fe8f14ca36f6fe87.tar.xz wireguard-linux-defac894af93cb347fae0520fe8f14ca36f6fe87.zip |
bpftool: Fix control flow graph segfault during edge creation
If the last instruction of a control flow graph building block is a
BPF_CALL, an incorrect edge with e->dst set to NULL is created and
results in a segfault during graph output.
Ensure that BPF_CALL as last instruction of a building block is handled
correctly and only generates a single edge unlike actual BPF_JUMP*
instructions.
Signed-off-by: Christoph Werle <christoph.werle@longjmp.de>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Quentin Monnet <qmo@kernel.org>
Reviewed-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20250108220937.1470029-1-christoph.werle@longjmp.de
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions