Bug 795747

Summary: double-free upon "old buggy kernel" sysfs_read failure
Product: [Fedora] Fedora Reporter: Jes Sorensen <Jes.Sorensen>
Component: mdadmAssignee: Jes Sorensen <Jes.Sorensen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: agk, dledford, Jes.Sorensen, mbroz, meyering
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mdadm-3.2.3-6.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 795707 Environment:
Last Closed: 2012-03-10 21:51:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 795707, 795748    
Bug Blocks:    

Description Jes Sorensen 2012-02-21 12:55:10 UTC
+++ This bug was initially created as a clone of Bug #795707 +++

Created attachment 564646 [details]
avoid double-free upon "old buggy kernel" sysfs_read failure

Description of problem: double-free upon error

Version-Release number of selected component (if applicable): 
mdadm-3.2.3-5.fc16.x86_64 (probably.  I haven't triggered it)

How reproducible: every time, I suppose

Steps to Reproduce:
1. don't know off hand
2.
3.
  
Actual results: abort, segfault, etc.


Expected results: no double free


Additional info:

Attached patch based on
git://anonscm.debian.org/pkg-mdadm/mdadm.git
b36c1880eac4e2c22783ad0e088a5e27cd2d4121

Comment 1 Fedora Update System 2012-02-23 11:09:16 UTC
mdadm-3.2.3-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/mdadm-3.2.3-6.fc16

Comment 2 Fedora Update System 2012-02-25 08:24:10 UTC
Package mdadm-3.2.3-6.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mdadm-3.2.3-6.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2358/mdadm-3.2.3-6.fc16
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-03-10 21:51:31 UTC
mdadm-3.2.3-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.