Bug 688340

Summary: fdasd: buffer overflow when writing to read-only device
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: s390utilsAssignee: Dan HorĂ¡k <dhorak>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: azelinka, balkov, cward, jkachuck, ovasik
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: s390x   
OS: All   
Whiteboard:
Fixed In Version: s390utils-1.8.2-33.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:33:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 684385    
Attachments:
Description Flags
s390-tools-rhel6-fdasd-buffer-overflow-in-error-message.patch none

Description IBM Bug Proxy 2011-03-16 20:20:46 UTC
s390-tools-rhel6-fdasd-buffer-overflow-in-error-message.patch

Description: fdasd: buffer overflow when writing to read-only device
Symptom:     When fdasd tries to write to a read-only disk, it fails with
             a '*** buffer overflow detected ***' error message.
Problem:     It is expected that fdasd cannot write to a read-only disk, and
             such an operation should end with a proper error message. The
             libvtoc code, which writes this message, contains the bug that
             causes the buffer overflow.
Solution:    Directly print the error message, without formatting it first in
             a buffer.

The patch has been tested, fixes the problem, and will be included in the next
upstream release of the s390-tools.

With best regards,
     Hendrik

Comment 1 IBM Bug Proxy 2011-03-16 20:20:51 UTC
Created attachment 485828 [details]
s390-tools-rhel6-fdasd-buffer-overflow-in-error-message.patch

Comment 6 Chris Ward 2011-04-06 11:08:39 UTC
~~ Partners and Customers ~~

This bug was included in RHEL 6.1 Beta. Please confirm the status of this request as soon as possible.

If you're having problems accessing 6.1 bits, are delayed in your test execution or find in testing that the request was not addressed adequately, please let us know.

Thanks!

Comment 8 IBM Bug Proxy 2011-04-25 09:20:50 UTC
------- Comment From sachinp@in.ibm.com 2011-04-25 05:19 EDT-------
Tested with snap4 and can confirm fdasd works as expected. Closing this bug.

Comment 9 errata-xmlrpc 2011-05-19 13:33:05 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-0601.html