public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update
@ 2005-11-17 18:05 jmerkey
  2005-11-18 20:35 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: jmerkey @ 2005-11-17 18:05 UTC (permalink / raw)
  To: linux-kernel


When instaling FC4 on a system which already has FC2 previously 
installed on a second hard drive, the install program becomes
confused and assigns the swap partition to the FC2 system when 
installing FC4.  The kernel then IGNORES the size extents set
for the swap partition (in this case FC2 was set to 1024, FC4 was set to 
2048) and allows the cross mounted swap to grow into
the next partition, totally corrupting the root drive (/) by allowing 
the swap segment to grow into the root drive and overwrite
it.

To reproduce, install FC2 on an /dev/hda device with defaults, then 
install FC4 on a /dev/hdb device, build the 2.6.14 update for
FC4 and watch your data disappear.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update
  2005-11-18 20:35 ` Alan Cox
@ 2005-11-18 20:04   ` jmerkey
  2005-11-18 20:13     ` jmerkey
  0 siblings, 1 reply; 4+ messages in thread
From: jmerkey @ 2005-11-18 20:04 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Alan Cox wrote:

>On Iau, 2005-11-17 at 11:05 -0700, jmerkey wrote:
>  
>
>>To reproduce, install FC2 on an /dev/hda device with defaults, then 
>>install FC4 on a /dev/hdb device, build the 2.6.14 update for
>>FC4 and watch your data disappear.
>>    
>>
>
>Should be reported in the FC bugzilla although I've not been able to
>reproduce it.
>
>
>  
>

Alan,

I'll report over there.  I reproduced it with an install of Suse 10.0 
and FC4 and got to the bottom of it.  During install of FC4, anaconda 
allocates
the swap partitions assigned to Suse 10.0 on /dev/hda (or any swap 
partitions on the primary drive) for use during the install.  After the 
install
completes, FC4 uses this LABEL-SWAP-hda2 (etc.) method for determining 
which partitions to use for swap.  What happened here it turned
out was not related to swap extents, but misidentifcation of which 
partition was assigned this LABEL-XXX tag.  Upon first boot of FC4,
it allocated /dev/hda6 (the / partitition) as swap and started swapping 
to the / partition for Suse 10.0.  I first saw it when I installed FC4 
on a system
with FC2.  After FC2 / partition got trashed, I reinstalled with Suse 
10.0 (since I am porting DSFS to all of these distributions) and then 
reinstalled
FC4 on /dev/hdb -- same thing happened again. 

I just finished reinstalling Suse 10.0 and tried with FC2 on /dev/hdb.  
FC2 does the same thing and gets mixed on on Swap on the /dev/hda 
device, but this time, it did not corrupt the Suse 10.0 on /dev/hda.  
This appears to be a bug in anaconda and the setup for the FCX 
distributions.  ES and AS probably do the same thing since they use 
anaconda, so I would have someone look into this.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update
  2005-11-18 20:04   ` jmerkey
@ 2005-11-18 20:13     ` jmerkey
  0 siblings, 0 replies; 4+ messages in thread
From: jmerkey @ 2005-11-18 20:13 UTC (permalink / raw)
  To: jmerkey; +Cc: Alan Cox, linux-kernel

jmerkey wrote:

> Alan Cox wrote:
>
>> On Iau, 2005-11-17 at 11:05 -0700, jmerkey wrote:
>>  
>>
>>> To reproduce, install FC2 on an /dev/hda device with defaults, then 
>>> install FC4 on a /dev/hdb device, build the 2.6.14 update for
>>> FC4 and watch your data disappear.
>>>   
>>
>>
>> Should be reported in the FC bugzilla although I've not been able to
>> reproduce it.
>>
>>
>>  
>>
>
> Alan,
>
> I'll report over there.  I reproduced it with an install of Suse 10.0 
> and FC4 and got to the bottom of it.  During install of FC4, anaconda 
> allocates
> the swap partitions assigned to Suse 10.0 on /dev/hda (or any swap 
> partitions on the primary drive) for use during the install.  After 
> the install
> completes, FC4 uses this LABEL-SWAP-hda2 (etc.) method for determining 
> which partitions to use for swap.  What happened here it turned
> out was not related to swap extents, but misidentifcation of which 
> partition was assigned this LABEL-XXX tag.  Upon first boot of FC4,
> it allocated /dev/hda6 (the / partitition) as swap and started 
> swapping to the / partition for Suse 10.0.  I first saw it when I 
> installed FC4 on a system
> with FC2.  After FC2 / partition got trashed, I reinstalled with Suse 
> 10.0 (since I am porting DSFS to all of these distributions) and then 
> reinstalled
> FC4 on /dev/hdb -- same thing happened again.
> I just finished reinstalling Suse 10.0 and tried with FC2 on 
> /dev/hdb.  FC2 does the same thing and gets mixed on on Swap on the 
> /dev/hda device, but this time, it did not corrupt the Suse 10.0 on 
> /dev/hda.  This appears to be a bug in anaconda and the setup for the 
> FCX distributions.  ES and AS probably do the same thing since they 
> use anaconda, so I would have someone look into this.
>
> Jeff
>
NOTE;  One this that's unique in this case is that after I instal DSFS 
rpms, I remove these LABEL-XXX constructs from the grub.conf and 
/etc/fstab files and use the actual device names /dev/hdX.  It seems 
related to removing these labels in a running distribution.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update
  2005-11-17 18:05 Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update jmerkey
@ 2005-11-18 20:35 ` Alan Cox
  2005-11-18 20:04   ` jmerkey
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2005-11-18 20:35 UTC (permalink / raw)
  To: jmerkey; +Cc: linux-kernel

On Iau, 2005-11-17 at 11:05 -0700, jmerkey wrote:
> To reproduce, install FC2 on an /dev/hda device with defaults, then 
> install FC4 on a /dev/hdb device, build the 2.6.14 update for
> FC4 and watch your data disappear.

Should be reported in the FC bugzilla although I've not been able to
reproduce it.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-18 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 18:05 Swap Bug Massive EXT3 Corruption on FC4 with 2.6.14 update jmerkey
2005-11-18 20:35 ` Alan Cox
2005-11-18 20:04   ` jmerkey
2005-11-18 20:13     ` jmerkey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox