Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 485761

Summary: GFS2: gfs2_tool df segfault on non-4K block size
Product: Red Hat Enterprise Linux 5 Reporter: Robert Peterson <rpeterso>
Component: gfs2-utilsAssignee: Robert Peterson <rpeterso>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: adas, edamato, jstodola, swhiteho
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:02:49 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 the problem none

Description Robert Peterson 2009-02-16 18:00:42 UTC
Description of problem:
When a non-default block size is used for a gfs2_file system, the
gfs2_tool df command will segfault.

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

How reproducible:
Always

Steps to Reproduce:
1. mkfs.gfs2 with -b 1024
2. mount -tgfs2 /dev/device /mnt/gfs2
3. gfs2_tool df /mnt/gfs2
  
Actual results:
[root@z1 ~]# gfs2_tool df /mnt/gfs2
Segmentation fault

Expected results:
No Segfault

Additional info:

Comment 1 Robert Peterson 2009-02-16 18:01:56 UTC
Created attachment 332076 [details]
Patch to fix the problem

This patch fixes the problem.

Comment 2 Robert Peterson 2009-02-16 18:03:23 UTC
Easy fix; I recommend we get this in asap.  I'll let management and/or
QE decide whether I should z-stream it.

Comment 3 Robert Peterson 2009-02-17 18:56:43 UTC
The patch was tested on system roth-01.  It has been pushed to the
master branch of the gfs2-utils git tree and the RHEL5 branch of the
cluster.git tree for inclusion into 5.4.  Changing status to MODIFIED.

Comment 6 Jan Stodola 2009-07-24 10:28:51 UTC
No Segmentation fault on RHEL5.4 Snapshot 3, gfs2-utils-0.1.61-1.el5, arch: x86_64 in kvm. Tested with block sizes 512, 1024, 2048 and 4096.
Moving to VERIFIED.

Comment 8 errata-xmlrpc 2009-09-02 11:02:49 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/RHSA-2009-1337.html