Version-Release number of selected component: kpartx-0.4.9-83.fc25 Additional info: reporter: libreport-2.8.0 backtrace_rating: 4 cmdline: kpartx -l / crash_function: set_delimiter executable: /usr/sbin/kpartx global_pid: 2449 kernel: 4.10.13-200.fc25.x86_64 pkg_fingerprint: 4089 D8F2 FDB1 9C98 pkg_vendor: Fedora Project runlevel: N 5 type: CCpp uid: 0 Truncated backtrace: Thread no. 1 (1 frames) #0 set_delimiter at kpartx.c:117
Created attachment 1276063 [details] File: backtrace
Created attachment 1276064 [details] File: cgroup
Created attachment 1276065 [details] File: core_backtrace
Created attachment 1276066 [details] File: dso_list
Created attachment 1276067 [details] File: environ
Created attachment 1276068 [details] File: exploitable
Created attachment 1276069 [details] File: limits
Created attachment 1276070 [details] File: maps
Created attachment 1276071 [details] File: mountinfo
Created attachment 1276072 [details] File: namespaces
Created attachment 1276073 [details] File: open_fds
Created attachment 1276074 [details] File: proc_pid_status
Created attachment 1276075 [details] File: var_log_messages
Thanks for the report. This will only happen if you run kpartx on something other than a regular file or a block device. I'll fix it up so that it handles this gracefully.
device-mapper-multipath-0.7.1-4.git847cc43.fc27 has a fix for this. Here's the upstream commit, that got pulled in with the new sources. commit 3d9102bc0fd51988477fc1aade53be358d1b02aa Author: Benjamin Marzinski <bmarzins> Date: Tue May 9 11:57:04 2017 -0500 kpartx: fix device checks There are a number of issues in the the kpartx device checking code. First, it accepts files that are neither regular files or a block device nodes (you can run kpartx on character devices or directories, and it will treat them as block devices). When trying to figure out the basename of a device, the code returns garbage if the path doesn't include a '/'. Finally, the set_delimiter code can access memory outside of the string if an empty string is passed in. Signed-off-by: Benjamin Marzinski <bmarzins>