Bug 678487
Summary: | Running fcoeadm -i ethx before loading fcoe module stack displays "fcoeadm: free(): invalid pointer | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Miroslav Vadkerti <mvadkert> | ||||
Component: | fcoe-utils | Assignee: | Petr Šabata <psabata> | ||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.1 | CC: | jzeleny, ohudlick, rvokal, syeghiay | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | fcoe-utils-1.0.17-4.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause
Running 'fcoeadm' without FCoE stack loaded.
Consequence
'fcoeadm' tool tries to free an unallocated pointer, normally used to
store sysfs directory structure.
Fix
Only free the pointer if it was successfully allocated.
Result
'fcoeadm' now free()'s its memory properly.
|
Story Points: | --- | ||||
Clone Of: | 503165 | Environment: | |||||
Last Closed: | 2011-05-19 14:20:24 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: |
|
Comment 1
Miroslav Vadkerti
2011-02-18 08:18:08 UTC
I cannot reproduce this issue with fcoe-utils-1.0.17-3.el6.x86_64. I'm removing the dependency on bug #503165 since even if I could reproduce this, it wouldn't be related. It was reproduced. Acked. Fixed in CVS tag fcoe-utils-1.0.17-4.el6 Created attachment 479502 [details]
Do not free if scandir() fails
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: Cause Running 'fcoeadm' without FCoE stack loaded. Consequence 'fcoeadm' tool tries to free an unallocated pointer, normally used to store sysfs directory structure. Fix Only free the pointer if it was successfully allocated. Result 'fcoeadm' now free()'s its memory properly. 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-0743.html |