kdump-utils-1.0.53-1.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/lib/kdump/kdump-lib-initramfs.sh:7:1: warning[SC2034]: DEFAULT_SSHKEY appears unused. Verify use (or export if used externally).
#    5|   
#    6|   DEFAULT_PATH="/var/crash/"
#    7|-> DEFAULT_SSHKEY="/root/.ssh/kdump_id_rsa"
#    8|   KDUMP_CONFIG_FILE="/etc/kdump.conf"
#    9|   FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/lib/kdump/kdump-lib-initramfs.sh:9:1: warning[SC2034]: FENCE_KDUMP_CONFIG_FILE appears unused. Verify use (or export if used externally).
#    7|   DEFAULT_SSHKEY="/root/.ssh/kdump_id_rsa"
#    8|   KDUMP_CONFIG_FILE="/etc/kdump.conf"
#    9|-> FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
#   10|   FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
#   11|   LVM_CONF="/etc/lvm/lvm.conf"

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/lib/kdump/kdump-lib-initramfs.sh:10:1: warning[SC2034]: FENCE_KDUMP_SEND appears unused. Verify use (or export if used externally).
#    8|   KDUMP_CONFIG_FILE="/etc/kdump.conf"
#    9|   FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
#   10|-> FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
#   11|   LVM_CONF="/etc/lvm/lvm.conf"
#   12|   

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/lib/kdump/kdump-lib-initramfs.sh:11:1: warning[SC2034]: LVM_CONF appears unused. Verify use (or export if used externally).
#    9|   FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
#   10|   FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
#   11|-> LVM_CONF="/etc/lvm/lvm.conf"
#   12|   
#   13|   # Read kdump config in well formated style

Error: SHELLCHECK_WARNING: [#def5]
/usr/lib/kdump/kdump-lib-initramfs.sh:105:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  103|   get_mntpoint_from_target()
#  104|   {
#  105|-> 	local _mntpoint
#  106|   	# get the first TARGET when SOURCE doesn't end with ].
#  107|   	# In most cases, a SOURCE ends with ] when fsroot or subvol exists.

Error: SHELLCHECK_WARNING: [#def6]
/usr/lib/kdump/kdump-lib-initramfs.sh:111:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
#  109|   
#  110|   	# fallback to the old way when _mntpoint is empty.
#  111|-> 	[[ -n "$_mntpoint" ]] || _mntpoint=$(get_mount_info TARGET source "$1" -f )
#  112|   	echo $_mntpoint
#  113|   }

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/lib/kdump/kdump-lib.sh:13:1: warning[SC2034]: FADUMP_APPEND_ARGS_SYS_NODE appears unused. Verify use (or export if used externally).
#   11|   FADUMP_ENABLED_SYS_NODE="/sys/kernel/fadump/enabled"
#   12|   FADUMP_REGISTER_SYS_NODE="/sys/kernel/fadump/registered"
#   13|-> FADUMP_APPEND_ARGS_SYS_NODE="/sys/kernel/fadump/bootargs_append"
#   14|   
#   15|   is_uki()

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/lib/kdump/kdump-lib.sh:668:3: warning[SC2034]: KDUMP_INITRD appears unused. Verify use (or export if used externally).
#  666|   		KDUMP_INITRD="$var_target_initrd_dir/$kdump_initrd_base"
#  667|   	else
#  668|-> 		KDUMP_INITRD="$KDUMP_BOOTDIR/$kdump_initrd_base"
#  669|   	fi
#  670|   }

Error: SHELLCHECK_WARNING (CWE-685): [#def9]
/usr/lib/kdump/kdump-lib.sh:990:1: warning[SC2120]: kdump_get_arch_recommend_crashkernel references arguments, but none are ever passed.
#  988|   # $1 dump mode, if not specified, dump_mode will be judged by is_fadump_capable
#  989|   # $2 kernel-release, if not specified, got by _get_kdump_kernel_version
#  990|-> kdump_get_arch_recommend_crashkernel()
#  991|   {
#  992|   	local _arch _ck_cmdline _dump_mode

Error: SHELLCHECK_WARNING: [#def10]
/usr/lib/kdump/kdump-logger.sh:118:11: warning[SC3028]: In POSIX sh, UID is undefined.
#  116|       [ -n "$kdump_maxloglvl" ] && return 0
#  117|   
#  118|->     if [ "$UID" -ne 0 ]; then
#  119|           kdump_kmsgloglvl=0
#  120|           kdump_sysloglvl=0

Error: SHELLCHECK_WARNING: [#def11]
/usr/lib/kdump/kdump-logger.sh:131:18: warning[SC3023]: In POSIX sh, FDs outside 0-9 are undefined.
#  129|               readonly _dlogfd=15
#  130|               systemd-cat -t 'kdump' --level-prefix=true <"$_systemdcatfile" &
#  131|->             exec 15>"$_systemdcatfile"
#  132|           elif ! [ -S /dev/log ] && [ -w /dev/log ] || ! command -v logger >/dev/null; then
#  133|               # We cannot log to syslog, so turn this facility off.

Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/lib/kernel/install.d/60-kdump.install:6:1: warning[SC2034]: KERNEL_IMAGE appears unused. Verify use (or export if used externally).
#    4|   KERNEL_VERSION="$2"
#    5|   KDUMP_INITRD_DIR_ABS="$3"
#    6|-> KERNEL_IMAGE="$4"
#    7|   
#    8|   if ! [[ ${KERNEL_INSTALL_MACHINE_ID-x} ]]; then

Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/lib/kernel/install.d/92-crashkernel.install:5:1: warning[SC2034]: KDUMP_INITRD_DIR_ABS appears unused. Verify use (or export if used externally).
#    3|   COMMAND="$1"
#    4|   KERNEL_VERSION="$2"
#    5|-> KDUMP_INITRD_DIR_ABS="$3"
#    6|   KERNEL_IMAGE="$4"
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def14]
/usr/lib/kernel/install.d/92-crashkernel.install:6:1: warning[SC2034]: KERNEL_IMAGE appears unused. Verify use (or export if used externally).
#    4|   KERNEL_VERSION="$2"
#    5|   KDUMP_INITRD_DIR_ABS="$3"
#    6|-> KERNEL_IMAGE="$4"
#    7|   
#    8|   case "$COMMAND" in

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-135.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekdump-utils-1.0.53-1.fc43
store-results-to/tmp/tmp6fhthpiq/kdump-utils-1.0.53-1.fc43.tar.xz
time-created2025-04-25 13:14:20
time-finished2025-04-25 13:15:24
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp6fhthpiq/kdump-utils-1.0.53-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp6fhthpiq/kdump-utils-1.0.53-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9