Bug 206472

Summary: mksquashfs should use -no-fragment option to avoid corruption
Product: [Fedora] Fedora Reporter: Prarit Bhargava <prarit>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: dchapman, esandeen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-14 21:14:35 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:
Bug Depends On:    
Bug Blocks: 163350    
Attachments:
Description Flags
Patch to add -no-fragments to mksquashfs calls none

Description Prarit Bhargava 2006-09-14 16:18:54 UTC
Description of problem:

In BZ 204638, dchapman, esandeen, agriffis and others have been chasing
severe memory corruption on all platforms when using squashfs.

We have chased this down to an issue with the filesystem using fragments.
Avoiding fragments until squashfs is patched and fixed is a good idea and
will increase stability in the long run.

Version-Release number of selected component (if applicable): FC6-test3/20060913

How reproducible: 100%

Steps to Reproduce:
1. Attempt to boot any arch FC6-test3 or rawhide 20060913.
2. Occasionally corruption will be seen.  It varies from arch-to-arch, with ia64
being the most severely hit.
  
Actual results:

Various panics can be seen in 204638

Expected results: No memory corruption should occur.

Additional info: Patches are currently being generated.  We are continuing to
discuss with Phillip, but at least the fix for anaconda will allow us to
continue installing.

The size difference between the two images is relatively minor (stage2.img was
grabbed from a recent rawhide build.  nofrag2.img was built with the -no-frag
option using the files from stage2.img):

ls -l nofrag2.img stage2.img 
-rwx------ 1 root root 95625216 Sep 14 12:09 nofrag2.img
-rw-r--r-- 1 root root 94273536 Sep 13 14:32 stage2.img

Comment 1 Prarit Bhargava 2006-09-14 16:23:11 UTC
Created attachment 136282 [details]
Patch to add -no-fragments to mksquashfs calls

Comment 2 Prarit Bhargava 2006-09-14 16:25:16 UTC
Comment #1:

"but at least the fix for anaconda" should read "but at least the WORKAROUND for
anaconda" 

P.

Comment 3 Prarit Bhargava 2006-09-14 17:46:52 UTC
Should point out that this was tested on ppc, ia64, and x86_64.

P.

Comment 4 Jeremy Katz 2006-09-14 21:14:35 UTC
Applied

Comment 5 Jeremy Katz 2006-09-14 21:24:28 UTC
*** Bug 206530 has been marked as a duplicate of this bug. ***