Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
bpf_object__load_skeleton /src/libbpf/src/libbpf.c 1 ['N/A'] 19 0 103 14 5 522 0 3338 2013
attach_usdt /src/libbpf/src/libbpf.c 3 ['N/A', 'size_t', 'N/A'] 14 0 93 11 4 231 0 1659 791
btf__dedup /src/libbpf/src/btf.c 2 ['N/A', 'N/A'] 11 0 213 48 14 117 0 598 352
btf__distill_base /src/libbpf/src/btf.c 3 ['N/A', 'N/A', 'N/A'] 10 0 310 45 18 77 0 347 92
elf_compress /src/libbpf/elfutils/libelf/elf_compress.c 3 ['N/A', 'int', 'int'] 10 0 575 65 27 45 0 332 92
attach_kprobe_multi /src/libbpf/src/libbpf.c 3 ['N/A', 'size_t', 'N/A'] 7 0 125 16 6 54 0 324 86
perf_buffer__new_raw /src/libbpf/src/libbpf.c 6 ['int', 'size_t', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 165 29 11 40 0 155 64
libbpf_prepare_prog_load /src/libbpf/src/libbpf.c 3 ['N/A', 'N/A', 'size_t'] 11 0 213 33 13 93 0 400 61
bpf_object__pin /src/libbpf/src/libbpf.c 2 ['N/A', 'N/A'] 7 0 59 8 4 39 0 182 56
attach_ksyscall /src/libbpf/src/libbpf.c 3 ['N/A', 'size_t', 'N/A'] 8 0 115 15 6 60 0 322 52

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
70.0%
761 / 1090
Cyclomatic complexity statically reachable by fuzzers
80.0%
5707 / 7163

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/libbpf/elfutils/libelf/elf_begin.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_fsize.c [] []
/src/libbpf/elfutils/libelf/elf_memory.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./elf32_xlatetof.c [] []
/src/libbpf/elfutils/libelf/elf_ndxscn.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_xlatetof.c [] []
/src/libbpf/elfutils/libelf/elf_compress.c ['bpf-object-fuzzer'] []
/src/libbpf/src/usdt.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_getscn.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getsym.c [] []
/src/libbpf/elfutils/libelf/elf_rawdata.c ['bpf-object-fuzzer'] []
/src/libbpf/src/btf_iter.c [] []
/src/libbpf/elfutils/libelf/gelf_xlate.c [] []
/src/libbpf/elfutils/libelf/elf_getdata.c ['bpf-object-fuzzer'] []
/src/libbpf/src/./hashmap.h ['bpf-object-fuzzer'] []
/src/libbpf/src/./btf.h ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_getshdrnum.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf32_getshdr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./common.h ['bpf-object-fuzzer'] []
/src/libbpf/src/bpf.c [] []
/src/libbpf/elfutils/libelf/gelf_getchdr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getehdr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_error.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getshdr.c [] []
/src/libbpf/elfutils/libelf/elf_getphdrnum.c [] []
/src/libbpf/src/features.c [] []
/src/libbpf/src/btf.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_nextscn.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getnote.c [] []
/src/libbpf/elfutils/libelf/../lib/system.h ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./gelf_xlate.h [] []
/src/libbpf/elfutils/libelf/./elf32_getehdr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf32_getphdr.c [] []
/src/libbpf/elfutils/libelf/./version_xlate.h [] []
/src/libbpf/elfutils/libelf/elf32_xlatetof.c [] []
/src/libbpf/src/libbpf_probes.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./elf32_getphdr.c [] []
/src/libbpf/src/strset.c ['bpf-object-fuzzer'] []
/src/libbpf/src/str_error.c ['bpf-object-fuzzer'] []
/src/libbpf/src/relo_core.c [] []
/src/libbpf/src/elf.c [] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['bpf-object-fuzzer'] []
/src/libbpf/src/zip.c [] []
/src/libbpf/src/hashmap.c ['bpf-object-fuzzer'] []
/src/libbpf/src/btf_relocate.c [] []
/src/libbpf/elfutils/libelf/gelf_getverdaux.c [] []
/src/libbpf/src/../include/linux/ring_buffer.h [] []
/src/libbpf/elfutils/libelf/./note_xlate.h [] []
/src/libbpf/src/gen_loader.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getphdr.c [] []
/src/libbpf/elfutils/libelf/gelf_getclass.c ['bpf-object-fuzzer'] []
/src/libbpf/src/./libbpf_internal.h ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./elf32_getshdr.c ['bpf-object-fuzzer'] []
/src/libbpf/src/../include/linux/err.h ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_strptr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./elf32_getchdr.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_end.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_version.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_kind.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/elf_getshdrstrndx.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./chdr_xlate.h [] []
/src/libbpf/elfutils/libelf/gelf_getverdef.c [] []
/src/libbpf/src/libbpf.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/./gnuhash_xlate.h [] []
/src/libbpf/fuzz/bpf-object-fuzzer.c ['bpf-object-fuzzer'] []
/src/libbpf/elfutils/libelf/gelf_getversym.c [] []
/src/libbpf/elfutils/libelf/elf32_getchdr.c ['bpf-object-fuzzer'] []

Directories in report

Directory
/src/libbpf/src/./
/src/libbpf/elfutils/libelf/./
/usr/include/x86_64-linux-gnu/bits/
/src/libbpf/elfutils/libelf/../lib/
/src/libbpf/src/
/src/libbpf/fuzz/
/src/libbpf/src/../include/linux/
/src/libbpf/elfutils/libelf/