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
ncclCommInitRankFunc /src/nccl/src/init.cc 1 ['struct ncclAsyncJob*'] 11 0 74 7 10 812 0 2709 2654
allReduce /src/nccl/examples/04_user_buffer_registration/01_allreduce/main.cc 4 ['int', 'int', 'int', 'int'] 23 0 61 9 11 646 0 2186 1806
rasSockEventLoop /src/nccl/src/ras/rasnet.cc 2 ['struct rasSocket*', 'int'] 22 0 76 22 26 191 1 903 764
ncclGinGdakiCreateContext /src/nccl/src/transport/gdaki/gin_host_gdaki.cc 5 ['void*', 'int', 'int', 'void**', 'ncclNetDeviceHandle_v11_t**'] 11 0 189 21 34 378 1 684 678
commReclaim /src/nccl/src/init.cc 1 ['struct ncclAsyncJob*'] 18 0 27 6 8 232 0 436 190
ncclProxyProgress /src/nccl/src/proxy.cc 1 ['void*'] 5 0 48 12 23 65 0 160 150
ncclGinIbGdakiInit /src/nccl/src/transport/net_ib.cc 3 ['void**', 'uint64_t', 'ncclDebugLogger_t'] 7 0 12 3 3 119 0 207 149

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

Functions statically reachable by fuzzers
40.0%
1141 / 2848
Cyclomatic complexity statically reachable by fuzzers
61.0%
6446 / 10592

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

Fuzz driver synthesis

New fuzzers

The below fuzzers are templates and suggestions for how to target the set of optimal functions above

init.cc

Target file: /src/nccl/src/init.cc
Target functions: ncclCommInitRankFunc, commReclaim
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target ncclCommInitRankFunc */
  structncclAsyncJob* new_var0 = calloc(sizeof(structncclAsyncJob), 1);
  ncclCommInitRankFunc(new_var0);

  /* target commReclaim */
  structncclAsyncJob* new_var12 = calloc(sizeof(structncclAsyncJob), 1);
  commReclaim(new_var12);

  af_safe_gb_cleanup();
}

main.cc

Target file: /src/nccl/examples/04_user_buffer_registration/01_allreduce/main.cc
Target functions: allReduce
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target allReduce */
  int new_var1 = ada_safe_get_int();
  int new_var2 = ada_safe_get_int();
  int new_var3 = ada_safe_get_int();
  int new_var4 = ada_safe_get_int();
  allReduce(new_var1, new_var2, new_var3, new_var4);

  af_safe_gb_cleanup();
}

rasnet.cc

Target file: /src/nccl/src/ras/rasnet.cc
Target functions: rasSockEventLoop
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target rasSockEventLoop */
  structrasSocket* new_var5 = calloc(sizeof(structrasSocket), 1);
  int new_var6 = ada_safe_get_int();
  rasSockEventLoop(new_var5, new_var6);

  af_safe_gb_cleanup();
}

gin_host_gdaki.cc

Target file: /src/nccl/src/transport/gdaki/gin_host_gdaki.cc
Target functions: ncclGinGdakiCreateContext
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target ncclGinGdakiCreateContext */
  UNKNOWN_TYPE unknown_7;
  int new_var8 = ada_safe_get_int();
  int new_var9 = ada_safe_get_int();
  UNKNOWN_TYPE unknown_10;
  UNKNOWN_TYPE unknown_11;
  ncclGinGdakiCreateContext(unknown_7, new_var8, new_var9, unknown_10, unknown_11);

  af_safe_gb_cleanup();
}

proxy.cc

Target file: /src/nccl/src/proxy.cc
Target functions: ncclProxyProgress
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target ncclProxyProgress */
  UNKNOWN_TYPE unknown_13;
  ncclProxyProgress(unknown_13);

  af_safe_gb_cleanup();
}

net_ib.cc

Target file: /src/nccl/src/transport/net_ib.cc
Target functions: ncclGinIbGdakiInit
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target ncclGinIbGdakiInit */
  UNKNOWN_TYPE unknown_14;
  UNKNOWN_TYPE unknown_15;
  UNKNOWN_TYPE unknown_16;
  ncclGinIbGdakiInit(unknown_14, unknown_15, unknown_16);

  af_safe_gb_cleanup();
}

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/nccl/src/include/enqueue.h [] []
/src/nccl/src/plugin/profiler/profiler_v2.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImplOpenCL_v3.h [] []
/src/nccl/src/include/allocator.h [] []
/src/nccl/src/device/common.h [] []
/src/nccl/ext-net/example/plugin.c [] []
/src/nccl/src/include/sym_kernels.h [] []
/src/nccl/examples/04_user_buffer_registration/01_allreduce/main.cc [] []
/src/nccl/src/plugin/net/net_v11.cc [] []
/src/nccl/src/transport/net.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_gpunetio_high_level.cpp [] []
/src/nccl/src/transport.cc [] []
/src/nccl/src/misc/socket.cc [] []
/src/nccl/src/misc/mlx5dvwrap.cc [] []
/src/nccl/src/ras/collectives.cc [] []
/src/nccl/src/include/channel.h [] []
/src/nccl/src/plugin/env.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_srq.hpp [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_mlx5dv_wrapper.h [] []
/src/nccl/src/debug.cc [] []
/src/nccl/src/device/network/unpack/unpack.h [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImplCore.h [] []
/src/nccl/src/misc/param.cc [] []
/src/nccl/src/include/bitops.h [] []
/src/nccl/examples/01_communicators/03_one_device_per_process_mpi/main.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_uar.hpp [] []
/src/nccl/src/include/nccl_device/gin_barrier.h [] []
/src/nccl/src/misc/ibvwrap.cc [] []
/src/nccl/src/device/sendrecv.h [] []
/src/nccl/src/plugin/tuner/tuner_v4.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_gpunetio.cpp [] []
/src/nccl/src/device/op128.h [] []
/src/nccl/src/include/cpuset.h [] []
/src/nccl/ext-profiler/example/plugin.cc [] []
/src/nccl/src/plugin/tuner/tuner_v3.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_cq.hpp [] []
/src/nccl/src/ras/client_support.cc [] []
/src/nccl/src/include/device.h [] []
/src/nccl/examples/01_communicators/02_one_device_per_pthread/main.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_cuda_wrapper.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/include/common/doca_gpunetio_verbs_def.h [] []
/src/nccl/src/init.cc [] []
/src/nccl/src/include/nvtx3/nvToolsExtPayloadHelper.h [] []
/src/nccl/src/transport/profiler.cc [] []
/src/nccl/src/include/nvtx_payload_schemas.h [] []
/src/nccl/src/include/checks.h [] []
/src/nccl/src/include/nccl_device/barrier.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_gpunetio_gdrcopy.cpp [] []
/src/nccl/src/transport/net_socket.cc [] []
/src/nccl/src/include/nccl_device/impl/ll_a2a__funcs.h [] []
/src/nccl/src/graph/search.cc [] []
/src/nccl/src/include/nccl_device/gin/gin_device_common.h [] []
/src/nccl/src/include/nccl_device/gin/proxy/gin_proxy.h [] []
/src/nccl/src/channel.cc [] []
/src/nccl/src/device/reduce_kernel.h [] []
/src/nccl/src/transport/p2p.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_uar.cpp [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_qp.hpp [] []
/src/nccl/src/graph/rings.cc [] []
/src/nccl/src/nccl_device/ll_a2a.cc [] []
/src/nccl/src/ras/client.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImplSync_v3.h [] []
/src/nccl/src/include/nccl_device/impl/ll_a2a__types.h [] []
/src/nccl/src/include/nvmlwrap.h [] []
/src/nccl/src/enhcompat.cc [] []
/src/nccl/src/device/all_reduce.h [] []
/src/nccl/src/register/coll_reg.cc [] []
/src/nccl/src/include/nccl_device/impl/barrier__funcs.h [] []
/src/nccl/examples/common/include/mpi_utils.h [] []
/src/nccl/src/misc/argcheck.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImplCudaRt_v3.h [] []
/src/nccl/src/graph/xml.cc ['/src/fuzz_xml.cpp'] []
/src/nccl/src/include/param.h [] []
/src/nccl/src/nccl_device/lsa_barrier.cc [] []
/src/nccl/src/plugin/plugin_open.cc [] []
/src/nccl/src/include/nvtx.h [] []
/src/nccl/src/transport/gdaki/gin_host_gdaki.cc [] []
/src/nccl/src/plugin/net/net_v10.cc [] []
/src/nccl/src/misc/ibvsymbols.cc [] []
/src/nccl/src/register/sendrecv_reg.cc [] []
/src/nccl/src/include/comm.h [] []
/src/nccl/src/include/nccl_device/impl/lsa_barrier__funcs.h [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtHelperMacros.h [] []
/src/nccl/src/ras/rasnet.cc [] []
/src/nccl/src/transport/net_ib.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_ibv_wrapper.cpp [] []
/src/nccl/src/mnnvl.cc [] []
/src/nccl/src/collectives.cc [] []
/src/nccl/src/ras/peers.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_internal.hpp [] []
/src/nccl/src/gin/gin_host_proxy.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_gpunetio_log.hpp [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImplCuda_v3.h [] []
/src/nccl/src/misc/nvmlwrap.cc [] []
/src/nccl/src/transport/coll_net.cc [] []
/src/nccl/src/group.cc [] []
/src/nccl/src/include/nvtx3/nvToolsExt.h [] []
/src/nccl/src/dev_runtime.cc [] []
/src/nccl/src/plugin/profiler.cc [] []
/src/nccl/src/register/register.cc [] []
/src/nccl/src/graph/topo.cc [] []
/src/nccl/src/include/nccl_device/utility.h [] []
/src/nccl/src/ras/ras_internal.h [] []
/src/nccl/src/misc/shmutils.cc [] []
/src/nccl/src/graph/connect.cc [] []
/src/nccl/src/plugin/profiler/profiler_v5.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtImplMem_v1.h [] []
/src/nccl/src/plugin/net/net_v9.cc [] []
/src/nccl/src/nccl_device/gin_barrier.cc [] []
/src/nccl/src/include/nccl_device/impl/core__funcs.h [] []
/src/nccl/src/misc/gdrwrap.cc [] []
/src/nccl/src/plugin/tuner/tuner_v2.cc [] []
/src/nccl/src/include/nccl_device/lsa_barrier.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_device_attr.cpp [] []
/src/nccl/src/plugin/net/net_v7.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtPayloadTypeInfo.h [] []
/src/nccl/src/plugin/tuner/tuner_v5.cc [] []
/src/nccl/src/include/ibvwrap.h [] []
/src/nccl/src/include/register_inline.h [] []
/src/nccl/src/nccl_device/core.cc [] []
/src/nccl/src/plugin/net.cc [] []
/src/nccl/src/include/cudawrap.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_device_attr.hpp [] []
/src/nccl/src/plugin/profiler/profiler_v3.cc [] []
/src/nccl/src/plugin/net/net_v6.cc [] []
/src/nccl/src/include/gdrwrap.h [] []
/src/nccl/examples/02_point_to_point/01_ring_pattern/main.cc [] []
/src/nccl/src/misc/ipcsocket.cc [] []
/src/nccl/src/transport/generic.cc [] []
/src/nccl/src/include/utils.h [] []
/src/nccl/src/misc/cudawrap.cc [] []
/src/nccl/examples/common/src/utils.cc [] []
/src/nccl/src/transport/shm.cc [] []
/src/nccl/src/include/nccl_device/impl/lsa_barrier__types.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_umem.hpp [] []
/src/nccl/src/plugin/net/net_v8.cc [] []
/src/nccl/src/device/prims_ll.h [] []
/src/nccl/src/include/ibvcore.h [] []
/src/nccl/src/sym_kernels.cc [] []
/src/nccl/src/device/prims_ll128.h [] []
/src/nccl/src/include/nccl_device/ll_a2a.h [] []
/src/nccl/src/include/nccl_device/impl/ptr__funcs.h [] []
/src/nccl/src/include/debug.h [] []
/src/nccl/src/graph/paths.cc [] []
/src/nccl/src/include/timer.h [] []
/src/nccl/src/allocator.cc [] []
/src/nccl/src/ras/ras.cc [] []
/src/nccl/src/include/nccl_device/impl/gin_barrier__funcs.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_mlx5dv_wrapper.cpp [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_srq.cpp [] []
/src/nccl/src/misc/strongstream.cc [] []
/src/nccl/src/plugin/env/env_v1.cc [] []
/src/nccl/src/bootstrap.cc [] []
/src/nccl/src/include/nccl_device/impl/gin__funcs.h [] []
/src/nccl/src/graph/topo.h [] []
/src/nccl/src/include/core.h [] []
/src/nccl/src/include/nccl_device/coop.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_qp.cpp [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_gpunetio_log.cpp [] []
/src/nccl/src/graph/tuning.cc [] []
/src/nccl/src/device/prims_simple.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_cuda_wrapper.cpp [] []
/src/nccl/src/plugin/tuner.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_cq.cpp [] []
/src/fuzz_xml.cpp ['/src/fuzz_xml.cpp'] []
/src/nccl/ext-profiler/example/queue.h [] []
/src/nccl/ext-tuner/basic/plugin.c [] []
/src/nccl/src/scheduler/symmetric_sched.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtImplPayload_v1.h [] []
/src/nccl/src/graph/trees.cc [] []
/src/nccl/src/include/strongstream.h [] []
/src/nccl/src/misc/mlx5dvsymbols.cc [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/include/host/mlx5_ifc.h [] []
/src/nccl/src/include/nvtx3/nvToolsExtPayload.h [] []
/src/nccl/ext-tuner/example/plugin.c [] []
/src/nccl/src/include/alloc.h [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtImplCounters_v1.h [] []
/src/nccl/src/misc/utils.cc [] []
/src/nccl/ext-tuner/example/test/test_plugin.c [] []
/src/nccl/src/gin/gin_host.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtInit.h [] []
/src/nccl/src/include/coll_net.h [] []
/src/nccl/src/include/group.h [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtImplMemCudaRt_v1.h [] []
/src/nccl/src/device/reduce_scatter.h [] []
/src/nccl/src/device/primitives.h [] []
/src/nccl/src/transport/gdaki/doca-gpunetio/src/doca_verbs_umem.cpp [] []
/src/nccl/src/include/nvtx3/nvtx3.hpp [] []
/src/nccl/ext-profiler/example/print_event.cc [] []
/src/nccl/src/enqueue.cc [] []
/src/nccl/src/device/common_kernel.h [] []
/src/nccl/src/graph/xml.h [] []
/src/nccl/src/plugin/profiler/profiler_v1.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxImpl.h [] []
/src/nccl/src/include/collectives.h [] []
/src/nccl/ext-profiler/example/event.h [] []
/src/nccl/src/init_nvtx.cc [] []
/src/nccl/src/ce_coll.cc [] []
/src/nccl/src/transport/nvls.cc [] []
/src/nccl/src/proxy.cc [] []
/src/nccl/src/plugin/profiler/profiler_v4.cc [] []
/src/nccl/src/include/nvtx3/nvtxDetail/nvtxExtPayloadHelperInternal.h [] []

Directories in report

Directory
/src/nccl/ext-tuner/example/test/
/src/nccl/examples/04_user_buffer_registration/01_allreduce/
/src/nccl/src/plugin/tuner/
/src/nccl/src/misc/
/src/nccl/examples/common/src/
/src/nccl/examples/02_point_to_point/01_ring_pattern/
/src/nccl/src/include/nccl_device/
/src/
/src/nccl/src/include/nccl_device/gin/
/src/nccl/src/graph/
/src/nccl/src/ras/
/src/nccl/src/include/nvtx3/
/src/nccl/src/plugin/env/
/src/nccl/src/transport/
/src/nccl/src/register/
/src/nccl/src/transport/gdaki/
/src/nccl/src/plugin/
/src/nccl/ext-net/example/
/src/nccl/src/include/nvtx3/nvtxDetail/
/src/nccl/examples/01_communicators/02_one_device_per_pthread/
/src/nccl/src/device/network/unpack/
/src/nccl/src/transport/gdaki/doca-gpunetio/src/
/src/nccl/ext-tuner/basic/
/src/nccl/src/include/nccl_device/impl/
/src/nccl/examples/01_communicators/03_one_device_per_process_mpi/
/src/nccl/src/device/
/src/nccl/src/plugin/profiler/
/src/nccl/examples/common/include/
/src/nccl/src/plugin/net/
/src/nccl/src/include/nccl_device/gin/proxy/
/src/nccl/src/include/
/src/nccl/src/nccl_device/
/src/nccl/src/transport/gdaki/doca-gpunetio/include/common/
/src/nccl/ext-profiler/example/
/src/nccl/src/gin/
/src/nccl/src/transport/gdaki/doca-gpunetio/include/host/
/src/nccl/src/scheduler/
/src/nccl/ext-tuner/example/
/src/nccl/src/