Bug 1350434 - 64-bit ipmitool completely broken due to missing strdup prototype
Summary: 64-bit ipmitool completely broken due to missing strdup prototype
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ipmitool
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Boris Ranto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-27 12:42 UTC by Paolo Bonzini
Modified: 2016-06-29 12:54 UTC (History)
4 users (show)

Fixed In Version: ipmitool-1.8.17-1.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 12:54:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2016-06-27 12:42:39 UTC
64-bit ipmitool is miscompiled because it uses an implicit declaration for strdup, and consequently sign-extends the low 32 bits of the pointer to 64 bit.

The simplest way to reproduce it is with

$ ipmitool -H 1.2.3.4 -U root power on
Password: <enter whatever you want>
Segmentation fault

The host can be anything.  It's fixed in rawhide.

Comment 1 Fedora Update System 2016-06-27 15:21:34 UTC
ipmitool-1.8.17-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e300f4e1b1

Comment 2 Fedora Update System 2016-06-28 04:24:27 UTC
ipmitool-1.8.17-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e300f4e1b1

Comment 3 Fedora Update System 2016-06-29 12:54:20 UTC
ipmitool-1.8.17-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.