Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
xfsprogs-7.1.1/healer/xfs_healer_start.c:338:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(<unknown>, 0)’
xfsprogs-7.1.1/healer/xfs_healer_start.c:287:23: branch_true: following ‘true’ branch...
xfsprogs-7.1.1/healer/xfs_healer_start.c:287:23: branch_true: ...to here
xfsprogs-7.1.1/healer/xfs_healer_start.c:326:21: branch_false: following ‘false’ branch (when ‘mntns’ is NULL)...
xfsprogs-7.1.1/healer/xfs_healer_start.c:326:21: branch_false: ...to here
xfsprogs-7.1.1/healer/xfs_healer_start.c:326:21: acquire_resource: opened here
xfsprogs-7.1.1/healer/xfs_healer_start.c:327:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/healer/xfs_healer_start.c:338:13: branch_false: ...to here
xfsprogs-7.1.1/healer/xfs_healer_start.c:338:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/healer/xfs_healer_start.c:352:18: branch_false: ...to here
xfsprogs-7.1.1/healer/xfs_healer_start.c:338:13: danger: ‘open(<unknown>, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  336|   		goto out;
#  337|   	}
#  338|-> 	if (mnt_ns_fd == DEFAULT_MOUNTNS_FD && mntns != NULL) {
#  339|   		/*
#  340|   		 * We specified a path to a mount namespace file but got fd 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
xfsprogs-7.1.1/io/listmount.c:275:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘mnt_ns_fd’
xfsprogs-7.1.1/io/listmount.c:197:16: branch_true: following ‘true’ branch (when ‘c > 0’)...
xfsprogs-7.1.1/io/listmount.c:198:17: branch_true: ...to here
xfsprogs-7.1.1/io/listmount.c:216:37: acquire_resource: opened here
xfsprogs-7.1.1/io/listmount.c:217:28: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/io/listmount.c:217:28: branch_false: ...to here
xfsprogs-7.1.1/io/listmount.c:235:12: branch_true: following ‘true’ branch (when ‘smbuf’ is NULL)...
xfsprogs-7.1.1/io/listmount.c:236:17: branch_true: ...to here
xfsprogs-7.1.1/io/listmount.c:275:1: danger: ‘mnt_ns_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  273|   		close(mnt_ns_fd);
#  274|   	return 0;
#  275|-> }
#  276|   
#  277|   static const struct cmdinfo listmount_cmd = {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
xfsprogs-7.1.1/libfrog/systemd.c:55:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_fds[0]'
xfsprogs-7.1.1/libfrog/systemd.c:54:12: branch_false: following 'false' branch (when 'ret == 0')...
xfsprogs-7.1.1/libfrog/systemd.c:57:21: branch_false: ...to here
xfsprogs-7.1.1/libfrog/systemd.c:58:12: branch_true: following 'true' branch (when 'child_pid < 0')...
xfsprogs-7.1.1/libfrog/systemd.c:55:24: branch_true: ...to here
xfsprogs-7.1.1/libfrog/systemd.c:55:24: danger: 'pipe_fds[0]' leaks here
#   53|   	ret = pipe(pipe_fds);
#   54|   	if (ret)
#   55|-> 		return -1;
#   56|   
#   57|   	child_pid = fork();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
xfsprogs-7.1.1/libfrog/systemd.c:55:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_fds[1]'
xfsprogs-7.1.1/libfrog/systemd.c:54:12: branch_false: following 'false' branch (when 'ret == 0')...
xfsprogs-7.1.1/libfrog/systemd.c:57:21: branch_false: ...to here
xfsprogs-7.1.1/libfrog/systemd.c:58:12: branch_true: following 'true' branch (when 'child_pid < 0')...
xfsprogs-7.1.1/libfrog/systemd.c:55:24: branch_true: ...to here
xfsprogs-7.1.1/libfrog/systemd.c:55:24: danger: 'pipe_fds[1]' leaks here
#   53|   	ret = pipe(pipe_fds);
#   54|   	if (ret)
#   55|-> 		return -1;
#   56|   
#   57|   	child_pid = fork();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2716:1: enter_function: entry to 'xfs_dabuf_map'
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2738:12: branch_false: following 'false' branch...
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2745:13: branch_false: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2745:12: branch_true: following 'true' branch...
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2746:23: branch_true: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2746:23: call_function: inlined call to 'kmalloc_array' from 'xfs_dabuf_map'
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2748:17: branch_true: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2751:21: branch_true: following 'true' branch...
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2752:26: branch_true: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2752:20: branch_false: following 'false' branch...
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2755:28: branch_false: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2755:20: branch_false: following 'false' branch...
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:32: branch_false: ...to here
xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:17: danger: dereference of NULL 'map + (long unsigned int)i * 16'
# 2756|   			goto invalid_mapping;
# 2757|   
# 2758|-> 		map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock);
# 2759|   		map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount);
# 2760|   		off += irecs[i].br_blockcount;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
xfsprogs-7.1.1/mkfs/proto.c:1600:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ip’
xfsprogs-7.1.1/mkfs/proto.c:1834:1: enter_function: entry to ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1853:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1856:13: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1856:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1861:14: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1862:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1872:27: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1877:14: call_function: calling ‘getres’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1877:14: return_function: returning to ‘populate_from_dir’ from ‘getres’
xfsprogs-7.1.1/mkfs/proto.c:1879:17: call_function: calling ‘creatproto’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1879:17: return_function: returning to ‘populate_from_dir’ from ‘creatproto’
xfsprogs-7.1.1/mkfs/proto.c:1880:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1883:33: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1885:9: call_function: calling ‘newdirectory’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1885:9: return_function: returning to ‘populate_from_dir’ from ‘newdirectory’
xfsprogs-7.1.1/mkfs/proto.c:1889:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1897:9: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1897:9: call_function: calling ‘writeattrs’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1897:9: return_function: returning to ‘populate_from_dir’ from ‘writeattrs’
xfsprogs-7.1.1/mkfs/proto.c:1906:12: branch_false: following ‘false’ branch...
xfsprogs-7.1.1/mkfs/proto.c:1909:9: branch_false: ...to here
xfsprogs-7.1.1/mkfs/proto.c:1909:9: call_function: calling ‘rtinit’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1909:9: return_function: returning to ‘populate_from_dir’ from ‘rtinit’
xfsprogs-7.1.1/mkfs/proto.c:1920:9: call_function: calling ‘init_hardlink_tracker’ from ‘populate_from_dir’
xfsprogs-7.1.1/mkfs/proto.c:1920:9: return_function: returning to ‘populate_from_dir’ from ‘init_hardlink_tracker’
xfsprogs-7.1.1/mkfs/proto.c:1925:9: call_function: calling ‘walk_dir’ from ‘populate_from_dir’
# 1598|   
# 1599|   	libxfs_trans_ijoin(tp, pip, 0);
# 1600|-> 	newdirent(mp, tp, pip, &xname, ip, ppargs);
# 1601|   
# 1602|   	/*

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-98.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-namexfsprogs-6.18.0-2.fc44
diffbase-store-results-to/tmp/tmpeas0fv7h/xfsprogs-6.18.0-2.fc44.tar.xz
diffbase-time-created2026-08-03 21:41:31
diffbase-time-finished2026-08-03 21:45:38
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpeas0fv7h/xfsprogs-6.18.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpeas0fv7h/xfsprogs-6.18.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-98.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-namexfsprogs-7.1.1-1.fc45
store-results-to/tmp/tmpkqkbuixg/xfsprogs-7.1.1-1.fc45.tar.xz
time-created2026-08-03 21:46:02
time-finished2026-08-03 21:49:18
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpkqkbuixg/xfsprogs-7.1.1-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkqkbuixg/xfsprogs-7.1.1-1.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9