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

Fuzzer details

Fuzzer: libnfs_reply_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 4 100.%
All colors 4 100

Runtime coverage analysis

Covered functions
418
Functions that are reachable but not covered
1
Reachable functions
4
Percentage of reachable functions covered
75.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/libnfs_reply_fuzzer.c 1
lib/libnfs-zdr.c 2

Fuzzer: libnfs_zdr_roundtrip_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 10 100.%
All colors 10 100

Runtime coverage analysis

Covered functions
418
Functions that are reachable but not covered
1
Reachable functions
5
Percentage of reachable functions covered
80.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/libnfs_zdr_roundtrip_fuzzer.c 1
lib/libnfs-zdr.c 3

Fuzzer: libnfs_url_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 38 16.6%
gold [1:9] 3 1.31%
yellow [10:29] 3 1.31%
greenyellow [30:49] 3 1.31%
lawngreen 50+ 181 79.3%
All colors 228 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
6 45 rpc_destroy_context call site: 00045 rpc_free_pdu
5 64 rpc_destroy_context call site: 00064 nfs_free_nfsdir
4 210 nfs_parse_url call site: 00210 rpc_set_error
3 9 rpc_init_context call site: 00009 libnfs_authunix_create
3 102 nfs_parse_url call site: 00102 nfs_set_error
2 23 libnfs_authunix_create call site: 00023 __bswap_32
2 56 rpc_purge_all_pdus call site: 00056 rpc_free_pdu
2 77 nfs_parse_url call site: 00077 nfs_set_error
2 86 nfs_parse_url call site: 00086 nfs_set_error
2 98 nfs_parse_url call site: 00098 nfs_set_error
2 107 nfs_parse_url call site: 00107 nfs_set_error
1 40 nfs_init_context call site: 00040 nfs_destroy_context

Runtime coverage analysis

Covered functions
60
Functions that are reachable but not covered
29
Reachable functions
85
Percentage of reachable functions covered
65.88%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/libnfs_url_fuzzer.c 1
lib/libnfs.c 30
lib/init.c 20
lib/pdu.c 2
lib/libnfs-zdr.c 5
/usr/include/x86_64-linux-gnu/bits/byteswap.h 1
lib/socket.c 3
nfs4/nfs4.c 4

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
nfs_creat_async /src/libnfs/lib/libnfs.c 5 ['N/A', 'N/A', 'int', 'N/A', 'N/A'] 16 0 52 11 2 482 0 2652 2583
nfs_service /src/libnfs/lib/libnfs.c 2 ['N/A', 'int'] 15 0 57 13 6 456 0 2486 723
nfs_mount_async /src/libnfs/lib/libnfs.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 19 0 12 3 2 188 0 990 321
nfs_opendir_async /src/libnfs/lib/libnfs.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 16 0 39 9 10 467 0 2631 204
nfs_write_async /src/libnfs/lib/libnfs.c 6 ['N/A', 'N/A', 'N/A', 'size_t', 'N/A', 'N/A'] 16 0 61 13 3 413 0 2287 186
r_cb /src/libnfs/lib/libnfs.c 4 ['int', 'N/A', 'N/A', 'N/A'] 14 0 122 22 9 386 4 2114 105
nfs_statvfs64_async /src/libnfs/lib/libnfs.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 14 0 39 9 10 419 0 2285 84
nfs_close_async /src/libnfs/lib/libnfs.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 15 0 54 13 2 394 0 2113 73
nfs_rename_async /src/libnfs/lib/libnfs.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 15 0 52 11 2 454 0 2505 63
nfs_mknod_async /src/libnfs/lib/libnfs.c 6 ['N/A', 'N/A', 'int', 'int', 'N/A', 'N/A'] 14 0 52 11 2 465 0 2548 62

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

Functions statically reachable by fuzzers
54.0%
794 / 1457
Cyclomatic complexity statically reachable by fuzzers
63.0%
4656 / 7365

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/libnfs/lib/pdu.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/nfs4/nfs4.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/lib/socket.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/lib/libnfs.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/lib/init.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/rquota/libnfs-raw-rquota.c [] []
/src/libnfs/portmap/portmap.c [] []
/src/libnfs/fuzzing/libnfs_reply_fuzzer.c ['libnfs_reply_fuzzer'] ['libnfs_reply_fuzzer']
/src/libnfs/fuzzing/libnfs_zdr_roundtrip_fuzzer.c ['libnfs_zdr_roundtrip_fuzzer'] ['libnfs_zdr_roundtrip_fuzzer']
/src/libnfs/nfs/nfs.c [] []
/src/libnfs/fuzzing/libnfs_url_fuzzer.c ['libnfs_url_fuzzer'] ['libnfs_url_fuzzer']
/src/libnfs/nlm/libnfs-raw-nlm.c [] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['libnfs_url_fuzzer'] []
/src/libnfs/nfs/nfsacl.c [] []
/src/libnfs/mount/libnfs-raw-mount.c [] []
/src/libnfs/nfs4/libnfs-raw-nfs4.c [] []
/src/libnfs/include/libnfs-private.h [] []
/src/libnfs/nfs/libnfs-raw-nfs.c [] []
/src/libnfs/lib/libnfs-zdr.c ['libnfs_reply_fuzzer', 'libnfs_zdr_roundtrip_fuzzer', 'libnfs_url_fuzzer'] ['libnfs_reply_fuzzer', 'libnfs_zdr_roundtrip_fuzzer', 'libnfs_url_fuzzer']
/src/libnfs/mount/mount.c [] []
/src/libnfs/lib/nfs_v3.c [] []
/src/libnfs/portmap/libnfs-raw-portmap.c [] []
/src/libnfs/lib/nfs_v4.c [] []

Directories in report

Directory
/src/libnfs/rquota/
/usr/include/x86_64-linux-gnu/bits/
/src/libnfs/nlm/
/src/libnfs/fuzzing/
/src/libnfs/nfs4/
/src/libnfs/mount/
/src/libnfs/include/
/src/libnfs/portmap/
/src/libnfs/nfs/
/src/libnfs/lib/