Bug 725993 - Segmentation fault when using improperly
Summary: Segmentation fault when using improperly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipmitool
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 735283 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-27 09:32 UTC by Petr Sklenar
Modified: 2012-06-20 14:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The commands 'ipmitool sol payload' and 'ipmitool sel' accepted incorrect argument values. With this update, argument values are validated.
Clone Of:
Environment:
Last Closed: 2012-06-20 14:04:25 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0875 0 normal SHIPPED_LIVE ipmitool bug fix and enhancement update 2012-06-19 20:47:46 UTC

Description Petr Sklenar 2011-07-27 09:32:30 UTC
Description of problem:
There is Segmentation fault when ipmi service is stopped

Version-Release number of selected component (if applicable):
ipmitool-1.8.11-9.el6.i686

How reproducible:
always

Steps to Reproduce:

# /etc/init.d/ipmi stop
Stopping ipmi drivers: [  OK  ]


# /etc/init.d/ipmi status
ipmi_msghandler module not loaded.
ipmi_si module not loaded.
ipmi_devintf module not loaded.
/dev/ipmi0 does not exist.


# ipmitool sol payload status 2x1 1
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
Segmentation fault

# tail /var/log/messages 
Jul 27 05:23:13 cisco-b200m1-02 kernel: ipmitool[21416]: segfault at 404 ip 0805bbc4 sp bffcce70 error 4 in ipmitool[8048000+8a000]
Jul 27 05:23:18 cisco-b200m1-02 kernel: ipmitool[21418]: segfault at 404 ip 0805bbc4 sp bfdbb250 error 4 in ipmitool[8048000+8a000]
Jul 27 05:24:10 cisco-b200m1-02 kernel: ipmi message handler version 39.2
Jul 27 05:24:10 cisco-b200m1-02 kernel: IPMI System Interface driver.
Jul 27 05:24:10 cisco-b200m1-02 kernel: ipmi_si: Adding SMBIOS-specified kcs state machine
Jul 27 05:24:10 cisco-b200m1-02 kernel: ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca2, slave address 0x20, irq 0
Jul 27 05:24:10 cisco-b200m1-02 kernel: ipmi: Found new BMC (man_id: 0x00168b,  prod_id: 0x0000, dev_id: 0x20)
Jul 27 05:24:10 cisco-b200m1-02 kernel: IPMI kcs interface initialized
Jul 27 05:24:10 cisco-b200m1-02 kernel: ipmi device interface
Jul 27 05:24:52 cisco-b200m1-02 kernel: ipmitool[21497]: segfault at 404 ip 0805bbc4 sp bfbdb740 error 4 in ipmitool[8048000+8a000]


Actual results:
segmentation fault

Expected results:
no segmentation fault, only error message

Additional info:

Comment 2 Petr Sklenar 2011-09-02 07:20:23 UTC
*** Bug 735283 has been marked as a duplicate of this bug. ***

Comment 3 Karel Volný 2011-12-08 17:13:40 UTC
just for the record, I've just hit this issue while testing 2011:12289 ... I'm not sure if this doesn't deserve the "Regression" keyword as this has already been fixed in RHEL-5 (bug #311231 and bug #514218) and now it is broken again in RHEL-6 ...

Comment 7 Jan Safranek 2012-02-20 17:06:27 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The commands 'ipmitool sol payload' and 'ipmitool sel' accepted incorrect argument values. With
this update, argument values are validated.

Comment 11 errata-xmlrpc 2012-06-20 14:04:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0875.html


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