Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 653434

Summary: Smartctl crashes after starting selftest (megaraid)
Product: Red Hat Enterprise Linux 6 Reporter: Michal Hlavinka <mhlavink>
Component: smartmontoolsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: azelinka, ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: smartmontools-5.39.1-3.el6 Doc Type: Bug Fix
Doc Text:
In some cases, the smartmontools utilities passed to SCSI "ioctl" function certain values that the MegaRAID controller could not handle and S.M.A.R.T. self-tests on MegaRAID devices caused kernel errors and smartctl terminated unexpectedly. Such values are no longer passed to the MegaRAID controller and the bug is fixed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:01:32 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:
Attachments:
Description Flags
patch to fix this jskala: review+

Description Michal Hlavinka 2010-11-15 13:02:46 UTC
Created attachment 460538 [details]
patch to fix this

clone of F-12 bug
--------------------------------
Description of problem:

Smartctl segmentation fault and crash when asking for SMART test of
a disk on a DELL MegaRaid controller. 

Version-Release number of selected component (if applicable):

smartctl 5.39.1 2010-01-28 r3054 [x86_64-redhat-linux-gnu] (local build)
smartmontools-5.39.1-1.fc12.x86_64


How reproducible:

Always reproducible

Steps to Reproduce:
1. smartctl -t short /dev/sda -d megaraid,0
2. segmentation fault and crash

Actual results:
smartctl 5.39.1 2010-01-28 r3054 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

Segmentation fault

Message from syslogd@webster at Mar 29 14:45:01 ...
 kernel:invalid opcode: 0000 [#8] SMP 
 kernel:last sysfs file:
/sys/devices/system/cpu/cpu15/cache/index2/shared_cpu_map
 kernel:Stack:
 kernel:Call Trace:
 kernel:Code: 00 08 00 00 49 c1 ef 0b 4c 8b 75 c0 49 81 c6 ff 07 00 00 49 c1 ee
0b 48 81 7d c0 01 10 00 00 45 19 ed 41 83 c5 02 45 85 f6 75 04 <0f> 0b eb fe 48
c7 c7 c0 7a a0 81 45 89 ec e8 a9 10 22 00 49 89 


Additional info:
http://sourceforge.net/apps/trac/smartmontools/ticket/78

Comment 7 Eva Kopalova 2011-05-02 16:49:44 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:
In some cases, the smartmontools utilities passed to SCSI "ioctl" function certain values that the MegaRAID controller could not handle and S.M.A.R.T. self-tests on MegaRAID devices caused kernel errors and smartctl terminated unexpectedly. Such values are no longer passed to the MegaRAID controller and the bug is fixed.

Comment 8 errata-xmlrpc 2011-05-19 14:01:32 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0680.html