Bug 485761 - GFS2: gfs2_tool df segfault on non-4K block size
Summary: GFS2: gfs2_tool df segfault on non-4K block size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs2-utils
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Robert Peterson
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-16 18:00 UTC by Robert Peterson
Modified: 2010-01-12 03:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:02:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix the problem (498 bytes, patch)
2009-02-16 18:01 UTC, Robert Peterson
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1337 0 normal SHIPPED_LIVE Low: gfs2-utils security and bug fix update 2009-09-01 10:41:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.