Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
rdma-core-64.0/providers/mlx5/buf.c:254:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  252|   		to_mparent_domain(buf->ibv_buf.pd);
#  253|   
#  254|-> 	mparent_domain->free(&mparent_domain->mpd.ibv_pd,
#  255|   			     mparent_domain->pd_context,
#  256|   			     buf->ibv_buf.addr,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
rdma-core-64.0/providers/mlx5/buf.c:266:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  264|   	void *addr;
#  265|   
#  266|-> 	addr = mparent_domain->alloc(&mparent_domain->mpd.ibv_pd,
#  267|   				   mparent_domain->pd_context, size,
#  268|   				   buf->req_alignment,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
rdma-core-64.0/providers/mlx5/buf.c:308:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-64.0/providers/mlx5/buf.c:298:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
rdma-core-64.0/providers/mlx5/buf.c:308:16: branch_false: ...to here
rdma-core-64.0/providers/mlx5/buf.c:308:16: danger: dereference of NULL ‘<unknown>’
#  306|   	 * so the resulting HW page offset is 0 and meets any alignment.
#  307|   	 */
#  308|-> 	addr = ibv_dmabuf_heap_alloc(mparent_domain->dmabuf_heap, size,
#  309|   				     &dmabuf_fd);
#  310|   	if (!addr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
rdma-core-64.0/providers/mlx5/verbs.c:6221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘umem’
rdma-core-64.0/providers/mlx5/verbs.c:6211:16: acquire_memory: allocated here
rdma-core-64.0/providers/mlx5/verbs.c:6212:12: branch_false: following ‘false’ branch (when ‘umem’ is non-NULL)...
rdma-core-64.0/providers/mlx5/verbs.c:6217:24: branch_false: ...to here
rdma-core-64.0/providers/mlx5/verbs.c:6221:16: danger: ‘umem’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 6219|   	umem->dv_devx_umem.umem_id = attrs->umem_id;
# 6220|   
# 6221|-> 	return &umem->dv_devx_umem;
# 6222|   }
# 6223|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
rdma-core-64.0/providers/mlx5/verbs.c:8274:16: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
rdma-core-64.0/providers/mlx5/verbs.c:8262:15: acquire_memory: allocated here
rdma-core-64.0/providers/mlx5/verbs.c:8263:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
rdma-core-64.0/providers/mlx5/verbs.c:8268:23: branch_false: ...to here
rdma-core-64.0/providers/mlx5/verbs.c:8274:16: danger: ‘obj’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 8272|   	obj->dv_var.mmap_off = attrs->mmap_off;
# 8273|   
# 8274|-> 	return &obj->dv_var;
# 8275|   }
# 8276|   

Error: COMPILER_WARNING (CWE-909): [#def6]
rdma-core-64.0/redhat-linux-build/pyverbs/providers/efa/efadv.c:15861:1: warning[-Wmissing-field-initializers]: missing initializer for field ‘_tp_iteritem’ of ‘PyTypeObject’ {aka ‘struct _typeobject’}
#15861 | };
#      | ^
/usr/include/python3.15/cpython/object.h:248:22: note: ‘_tp_iteritem’ declared here
#  248 |     _Py_iteritemfunc _tp_iteritem;
#      |                      ^~~~~~~~~~~~
#15859|     0, /*tp_pypy_flags*/
#15860|     #endif
#15861|-> };
#15862|   #endif
#15863|   static struct __pyx_vtabstruct_7pyverbs_9providers_3efa_5efadv_EfaMR __pyx_vtable_7pyverbs_9providers_3efa_5efadv_EfaMR;

Error: COMPILER_WARNING (CWE-909): [#def7]
rdma-core-64.0/redhat-linux-build/pyverbs/providers/efa/efadv.c:16014:1: warning[-Wmissing-field-initializers]: missing initializer for field ‘_tp_iteritem’ of ‘PyTypeObject’ {aka ‘struct _typeobject’}
#16014 | };
#      | ^
/usr/include/python3.15/cpython/object.h:248:22: note: ‘_tp_iteritem’ declared here
#  248 |     _Py_iteritemfunc _tp_iteritem;
#      |                      ^~~~~~~~~~~~
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning’ may have been intended to silence earlier diagnostics
#16012|     0, /*tp_pypy_flags*/
#16013|     #endif
#16014|-> };
#16015|   #endif
#16016|   

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-218.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namerdma-core-61.0-2.fc44
diffbase-store-results-to/tmp/tmp8sretryr/rdma-core-61.0-2.fc44.tar.xz
diffbase-time-created2026-08-03 20:33:55
diffbase-time-finished2026-08-03 20:39:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp8sretryr/rdma-core-61.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8sretryr/rdma-core-61.0-2.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-218.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namerdma-core-64.0-2.fc45
store-results-to/tmp/tmpip92i0ce/rdma-core-64.0-2.fc45.tar.xz
time-created2026-08-03 20:39:24
time-finished2026-08-03 20:43:42
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpip92i0ce/rdma-core-64.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpip92i0ce/rdma-core-64.0-2.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9