Bug 222759 - gfs_mkfs doesn't zero data after gfs superblock
Summary: gfs_mkfs doesn't zero data after gfs superblock
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs-utils
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Robert Peterson
QA Contact: GFS Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-16 00:00 UTC by Robert Peterson
Modified: 2010-01-12 03:32 UTC (History)
2 users (show)

Fixed In Version: RHBA-2007-0576
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-07 17:57:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch to fix the problem (493 bytes, patch)
2007-01-16 00:13 UTC, Robert Peterson
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0576 0 normal SHIPPED_LIVE gfs-utils bug fix update 2007-10-30 15:36:03 UTC

Description Robert Peterson 2007-01-16 00:00:38 UTC
Description of problem:
gfs_mkfs doesn't zero out the entire page used for the gfs superblock
and consequently the bytes after the superblock can be anything.
These bits aren't really used for anything, but they look ugly
when viewing with gfs_edit.

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

How reproducible:
Always

Steps to Reproduce:
1. dd if=/dev/urandom of=/dev/trin_vg/trin_lv bs=1M count=16
2. gfs_mkfs -t bob_cluster2:bobs_gfs -p lock_dlm -j 2 /dev/trin_vg/trin_lv
3. gfs_edit /dev/trin_vg/trin_lv
  
Actual results:
Garbage after the superblock structure.

Expected results:
No garbage, rest of the page should be zeroed out.

Additional info:
This data was zeroed for RHEL4, but isn't for RHEL5.
There shouldn't really be any consequences for customers here unless
we decide at a later point in time to reuse some of those bits after
the superblock and include them into the structure.

I checked the other data structures, such as the rgindex, the RGs,
the journal index, etc.  All of them were zeroed properly, so I think
this only affects the one block.

Reported by Abhi Das.  I recreated it on trin-10.
I recommend we fix for RHEL5.1.

Comment 1 Robert Peterson 2007-01-16 00:05:05 UTC
I verified this does not affect gfs2.  The mkfs.gfs2 program does this
zeroing of the data just fine.


Comment 2 Robert Peterson 2007-01-16 00:13:03 UTC
Created attachment 145641 [details]
Proposed patch to fix the problem

One-line fix, tested on trin-10

Comment 4 Robert Peterson 2007-01-23 21:38:06 UTC
Code fix committed to CVS at HEAD and RHEL5.  Changing status to modified.


Comment 5 Kiersten (Kerri) Anderson 2007-04-23 17:37:05 UTC
Fixing product name. Cluster Suite components were integrated into Enterprise
Linux for verion 5.0.

Comment 8 errata-xmlrpc 2007-11-07 17:57:44 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 the 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-2007-0576.html



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