Bug 1447832
| Summary: | [abrt] kpartx: set_delimiter(): kpartx killed by SIGSEGV | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | sedrubal <fedora> | ||||||||||||||||||||||||||||
| Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> | ||||||||||||||||||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||||||||||||
| Version: | 25 | CC: | agk, bmarzins, heinzm, lvm-team, msnitzer, prajnoha, prockai | ||||||||||||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/8b9900d9e87e18787862f46c43aa3157f4d72907 | ||||||||||||||||||||||||||||||
| Whiteboard: | abrt_hash:7c9aeaa942cbac975a8c77735b31c10d5f628205; | ||||||||||||||||||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||
| Clone Of: | |||||||||||||||||||||||||||||||
| : | 1448223 (view as bug list) | Environment: | |||||||||||||||||||||||||||||
| Last Closed: | 2017-07-21 22:10:38 UTC | Type: | --- | ||||||||||||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||
| Embargoed: | |||||||||||||||||||||||||||||||
| Bug Depends On: | |||||||||||||||||||||||||||||||
| Bug Blocks: | 1448223 | ||||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||||
|
Description
sedrubal
2017-05-04 01:47:11 UTC
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>
|