Ubuntu-focal-kernel/tools/bpf/bpftool
Quentin Monnet a18094c95d bpftool: Fix bug for long instructions in program CFG dumps
BugLink: https://bugs.launchpad.net/bugs/2025387

[ Upstream commit 67cf52cdb6c8fa6365d29106555dacf95c9fd374 ]

When dumping the control flow graphs for programs using the 16-byte long
load instruction, we need to skip the second part of this instruction
when looking for the next instruction to process. Otherwise, we end up
printing "BUG_ld_00" from the kernel disassembler in the CFG.

Fixes: efcef17a6d ("tools: bpftool: generate .dot graph from CFG information")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20230405132120.59886-3-quentin@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-08-09 12:25:17 +02:00
..
Documentation bpftool: Remove inclusion of utilities.mak from Makefiles 2022-03-07 16:36:52 +01:00
bash-completion
.gitignore
Makefile bpftool: Remove inclusion of utilities.mak from Makefiles 2022-03-07 16:36:52 +01:00
btf.c
btf_dumper.c bpftool: Fix a wrong type cast in btf_dumper_int 2023-01-06 08:43:55 -08:00
cfg.c
cfg.h
cgroup.c
common.c bpftool: Check malloc return value in mount_bpffs_for_pin 2021-09-20 18:49:29 +02:00
feature.c
jit_disasm.c bpftool: Properly close va_list 'ap' by va_end() on error 2021-09-20 18:49:22 +02:00
json_writer.c tools: bpftool: Remove invalid \' json escape 2023-08-09 12:25:17 +02:00
json_writer.h
main.c bpftool: Clear errno after libcap's checks 2023-01-06 08:44:03 -08:00
main.h
map.c
map_perf_ring.c
net.c
netlink_dumper.c
netlink_dumper.h
perf.c
prog.c
tracelog.c
xlated_dumper.c bpftool: Fix bug for long instructions in program CFG dumps 2023-08-09 12:25:17 +02:00
xlated_dumper.h