genext2fs - generates completely broken images on s390
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
genext2fs (Debian) |
Fix Released
|
Unknown
|
|||
genext2fs (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
Automatically imported from Debian bug report #266039 http://
In Debian Bug tracker #266039, Joey Hess (joeyh) wrote : tagging 266039 | #1 |
Debian Bug Importer (debzilla) wrote : | #2 |
Automatically imported from Debian bug report #266039 http://
Debian Bug Importer (debzilla) wrote : | #3 |
Message-ID: <email address hidden>
Date: Mon, 16 Aug 2004 14:41:39 +0200
From: Bastian Blank <email address hidden>
To: <email address hidden>
Subject: genext2fs - generates completely broken images on s390
--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=utf-8
Content-
Content-
Package: genext2fs
Version: 1.3-7
Severity: grave
genext2fs generates completely broken images on s390.
| $ genext2fs -d ./tmp/generic/tree -b 5876 -r 0 ./tmp/generic/
| $ fsck.ext2 tmp/generic/initrd =20
| e2fsck 1.35 (28-Feb-2004)
| Note: if there is several inode or block bitmap blocks
| which require relocation, or one part of the inode table
| which must be moved, you may wish to try running e2fsck
| with the '-b 5881' option first. The problem may lie only
| with the primary block group descriptor, and the backup
| block group descriptor may be OK.
|=20
| Block bitmap for group 0 is not in group. (block 50331648)
| Relocate<y>? cancelled!
|=20
| Inode bitmap for group 0 is not in group. (block 67108864)
| Relocate<y>? cancelled!
|=20
| Inode table for group 0 is not in group. (block 83886080)
| WARNING: SEVERE DATA LOSS POSSIBLE.
| Relocate<y>? cancelled!
|=20
| Filesystem did not have a UUID; generating one.
|=20
| $ dumpe2fs tmp/generic/initrd
| dumpe2fs 1.35 (28-Feb-2004)
| Filesystem volume name: <none>
| Last mounted on: <not available>
| Filesystem UUID: <none>
| Filesystem magic number: 0xEF53
| Filesystem revision #: 0 (original)
| Filesystem features: (none)
| Default mount options: (none)
| Filesystem state: clean with errors
| Errors behavior: Unknown (continue)
| Filesystem OS type: Linux
| Inode count: 736
| Block count: 5876
| Reserved block count: 0
| Free blocks: 712
| Free inodes: 435
| First block: 1
| Block size: 1024
| Fragment size: 1024
| Blocks per group: 5880
| Fragments per group: 5880
| Inodes per group: 736
| Inode blocks per group: 92
| Last mount time: n/a
| Last write time: Mon Aug 16 14:37:59 2004
| Mount count: 0
| Maximum mount count: 20
| Last checked: Thu Jan 1 01:00:00 1970
| Check interval: 0 (<none>)
| Reserved blocks uid: 0 (user root)
| Reserved blocks gid: 0 (group root)
| ext2fs_
hort read=20
|=20
| Group 0: (Blocks 1-5875)
| Primary superblock at 1, Group descriptors at 2-2
| Block bitmap at 50331648 (+50331647), Inode bitmap at 67108864 (+671088=
63)
| Inode table at 83886080-83886171 (+83886079)
| 51202 free blocks, 45825 free inodes, 16896 directories
|=20
| dumpe2fs: tmp/generic/initrd: error reading bitmaps: Can't read an block =
bitmap
This breaks d-i on s390.
Bastian
--=20
Conquest is easy. Control is not.
-- Kirk, "Mirror, Mirror", stardate unknown
--17pEHd4RhPHOinZp
Content-Type: application/
Content-
Content-
-----BEG...
Debian Bug Importer (debzilla) wrote : | #4 |
Message-Id: <email address hidden>
Date: Mon, 16 Aug 2004 14:56:55 +0100
From: Joey Hess <email address hidden>
To: <email address hidden>
Subject: tagging 266039
# Automatically generated email from bts, devscripts version 2.8
tags 266039 d-i
Fabio Massimo Di Nitto (fabbione) wrote : | #5 |
we don't support s390
In Debian Bug tracker #266039, Finn Thain (ft01) wrote : | #6 |
Hi Bastian,
I don't have an s390 to test on unfortunately, so would you please try
a couple of tests to help me isolate this problem.
- does compiling genext2fs generate any warnings?
- does the following generate fsck errors (apart from the lost+found not
present warning, and the missing volume UUID)?
$ genext2fs -b 5876 -r 0 /tmp/whatever
$ fsck.ext2 /tmp/whatever
I tried this on my celeron, it works ok for me. If it works for you, I may
need the contents of the directory you were storing on the image using "-d
./tmp/generic/
chance that the absurd positions of the bitmaps and inode tables in your
bug report are caused by the group descriptor getting hosed.
Regards,
Finn Thain
Debian Bug Importer (debzilla) wrote : | #7 |
Message-ID: <email address hidden>
Date: Tue, 17 Aug 2004 23:38:38 +1000 (EST)
From: Finn Thain <email address hidden>
To: Bastian Blank <email address hidden>
cc: David Kimdon <email address hidden>, <email address hidden>
Subject: Re: genext2fs - generates completely broken images on s390
Hi Bastian,
I don't have an s390 to test on unfortunately, so would you please try
a couple of tests to help me isolate this problem.
- does compiling genext2fs generate any warnings?
- does the following generate fsck errors (apart from the lost+found not
present warning, and the missing volume UUID)?
$ genext2fs -b 5876 -r 0 /tmp/whatever
$ fsck.ext2 /tmp/whatever
I tried this on my celeron, it works ok for me. If it works for you, I may
need the contents of the directory you were storing on the image using "-d
./tmp/generic/
chance that the absurd positions of the bitmaps and inode tables in your
bug report are caused by the group descriptor getting hosed.
Regards,
Finn Thain
In Debian Bug tracker #266039, Bastian Blank (waldi) wrote : | #8 |
On Tue, Aug 17, 2004 at 11:38:38PM +1000, Finn Thain wrote:
> I don't have an s390 to test on unfortunately, so would you please try
> a couple of tests to help me isolate this problem.
You have, ask http://
> - does compiling genext2fs generate any warnings?
Ask http://
> - does the following generate fsck errors (apart from the lost+found not
> present warning, and the missing volume UUID)?
>
> $ genext2fs -b 5876 -r 0 /tmp/whatever
> $ fsck.ext2 /tmp/whatever
| $ genext2fs -b 5876 -r 0 /tmp/whatever
| $ fsck.ext2 /tmp/whatever
| e2fsck 1.35 (28-Feb-2004)
| Note: if there is several inode or block bitmap blocks
| which require relocation, or one part of the inode table
| which must be moved, you may wish to try running e2fsck
| with the '-b 5881' option first. The problem may lie only
| with the primary block group descriptor, and the backup
| block group descriptor may be OK.
|
| Block bitmap for group 0 is not in group. (block 50331648)
| Relocate<y>? cancelled!
|
| Inode bitmap for group 0 is not in group. (block 67108864)
| Relocate<y>? cancelled!
|
| Inode table for group 0 is not in group. (block 83886080)
| WARNING: SEVERE DATA LOSS POSSIBLE.
| Relocate<y>? cancelled!
|
| Filesystem did not have a UUID; generating one.
> I tried this on my celeron, it works ok for me.
You tried it on a 32bit little-endian machine. I try it on a
64bit/31bit big-endian machine.
Bastian
--
Actual war is a very messy business. Very, very messy business.
-- Kirk, "A Taste of Armageddon", stardate 3193.0
In Debian Bug tracker #266039, Finn Thain (ft01) wrote : | #9 |
On Tue, 17 Aug 2004, Bastian Blank wrote:
> On Tue, Aug 17, 2004 at 11:38:38PM +1000, Finn Thain wrote:
> > I don't have an s390 to test on unfortunately, so would you please try
> > a couple of tests to help me isolate this problem.
>
> You have, ask http://
Cool. David, what's the procedure for obtaining access to raptor?
> > - does compiling genext2fs generate any warnings?
>
> Ask http://
Very nice. I had no idea that site existed. Interesting to note that make
check fails, but that is not suprising -- it fails where fsck succeeds on
my machines. I'd better look at that too.
> > - does the following generate fsck errors (apart from the lost+found not
> > present warning, and the missing volume UUID)?
> >
> > $ genext2fs -b 5876 -r 0 /tmp/whatever
> > $ fsck.ext2 /tmp/whatever
>
> | $ genext2fs -b 5876 -r 0 /tmp/whatever
> | $ fsck.ext2 /tmp/whatever
> | e2fsck 1.35 (28-Feb-2004)
> | Note: if there is several inode or block bitmap blocks
> | which require relocation, or one part of the inode table
> | which must be moved, you may wish to try running e2fsck
> | with the '-b 5881' option first. The problem may lie only
> | with the primary block group descriptor, and the backup
> | block group descriptor may be OK.
> |
> | Block bitmap for group 0 is not in group. (block 50331648)
> | Relocate<y>? cancelled!
> |
> | Inode bitmap for group 0 is not in group. (block 67108864)
> | Relocate<y>? cancelled!
> |
> | Inode table for group 0 is not in group. (block 83886080)
> | WARNING: SEVERE DATA LOSS POSSIBLE.
> | Relocate<y>? cancelled!
> |
> | Filesystem did not have a UUID; generating one.
>
> > I tried this on my celeron, it works ok for me.
>
> You tried it on a 32bit little-endian machine. I try it on a
> 64bit/31bit big-endian machine.
I also tested on my alpha (64-bit little endian) and it works ...
interesting.
Looks like I'm gonna need that s390 account. Thanks for your help.
-F
> Bastian
>
>
Debian Bug Importer (debzilla) wrote : | #10 |
Message-ID: <email address hidden>
Date: Tue, 17 Aug 2004 19:13:46 +0200
From: Bastian Blank <email address hidden>
To: Finn Thain <email address hidden>
Cc: David Kimdon <email address hidden>, <email address hidden>
Subject: Re: genext2fs - generates completely broken images on s390
--7DO5AaGCk89r4vaK
Content-Type: text/plain; charset=utf-8
Content-
Content-
On Tue, Aug 17, 2004 at 11:38:38PM +1000, Finn Thain wrote:
> I don't have an s390 to test on unfortunately, so would you please try
> a couple of tests to help me isolate this problem.
You have, ask http://
> - does compiling genext2fs generate any warnings?
Ask http://
> - does the following generate fsck errors (apart from the lost+found not
> present warning, and the missing volume UUID)?
>=20
> $ genext2fs -b 5876 -r 0 /tmp/whatever
> $ fsck.ext2 /tmp/whatever
| $ genext2fs -b 5876 -r 0 /tmp/whatever
| $ fsck.ext2 /tmp/whatever
| e2fsck 1.35 (28-Feb-2004)
| Note: if there is several inode or block bitmap blocks
| which require relocation, or one part of the inode table
| which must be moved, you may wish to try running e2fsck
| with the '-b 5881' option first. The problem may lie only
| with the primary block group descriptor, and the backup
| block group descriptor may be OK.
|=20
| Block bitmap for group 0 is not in group. (block 50331648)
| Relocate<y>? cancelled!
|=20
| Inode bitmap for group 0 is not in group. (block 67108864)
| Relocate<y>? cancelled!
|=20
| Inode table for group 0 is not in group. (block 83886080)
| WARNING: SEVERE DATA LOSS POSSIBLE.
| Relocate<y>? cancelled!
|=20
| Filesystem did not have a UUID; generating one.
> I tried this on my celeron, it works ok for me.
You tried it on a 32bit little-endian machine. I try it on a
64bit/31bit big-endian machine.
Bastian
--=20
Actual war is a very messy business. Very, very messy business.
-- Kirk, "A Taste of Armageddon", stardate 3193.0
--7DO5AaGCk89r4vaK
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iEYEARECAAYFAkE
wB4An3t065XfqaS
=qPHe
-----END PGP SIGNATURE-----
--7DO5AaGCk89r4
Debian Bug Importer (debzilla) wrote : | #11 |
Message-ID: <email address hidden>
Date: Wed, 18 Aug 2004 03:40:18 +1000 (EST)
From: Finn Thain <email address hidden>
To: Bastian Blank <email address hidden>, David Kimdon <email address hidden>
cc: <email address hidden>
Subject: Re: genext2fs - generates completely broken images on s390
On Tue, 17 Aug 2004, Bastian Blank wrote:
> On Tue, Aug 17, 2004 at 11:38:38PM +1000, Finn Thain wrote:
> > I don't have an s390 to test on unfortunately, so would you please try
> > a couple of tests to help me isolate this problem.
>
> You have, ask http://
Cool. David, what's the procedure for obtaining access to raptor?
> > - does compiling genext2fs generate any warnings?
>
> Ask http://
Very nice. I had no idea that site existed. Interesting to note that make
check fails, but that is not suprising -- it fails where fsck succeeds on
my machines. I'd better look at that too.
> > - does the following generate fsck errors (apart from the lost+found not
> > present warning, and the missing volume UUID)?
> >
> > $ genext2fs -b 5876 -r 0 /tmp/whatever
> > $ fsck.ext2 /tmp/whatever
>
> | $ genext2fs -b 5876 -r 0 /tmp/whatever
> | $ fsck.ext2 /tmp/whatever
> | e2fsck 1.35 (28-Feb-2004)
> | Note: if there is several inode or block bitmap blocks
> | which require relocation, or one part of the inode table
> | which must be moved, you may wish to try running e2fsck
> | with the '-b 5881' option first. The problem may lie only
> | with the primary block group descriptor, and the backup
> | block group descriptor may be OK.
> |
> | Block bitmap for group 0 is not in group. (block 50331648)
> | Relocate<y>? cancelled!
> |
> | Inode bitmap for group 0 is not in group. (block 67108864)
> | Relocate<y>? cancelled!
> |
> | Inode table for group 0 is not in group. (block 83886080)
> | WARNING: SEVERE DATA LOSS POSSIBLE.
> | Relocate<y>? cancelled!
> |
> | Filesystem did not have a UUID; generating one.
>
> > I tried this on my celeron, it works ok for me.
>
> You tried it on a 32bit little-endian machine. I try it on a
> 64bit/31bit big-endian machine.
I also tested on my alpha (64-bit little endian) and it works ...
interesting.
Looks like I'm gonna need that s390 account. Thanks for your help.
-F
> Bastian
>
>
In Debian Bug tracker #266039, Finn Thain (ft01) wrote : | #12 |
Attached is a patch for the make check failure. This s390 bug is one bug
that make check should be able to detect (unless of course it is an e2fsck
bug ;)
David, would it be possible to release this patch to the build servers in
order that the build logs may tell us whether the s390 endianness bug also
afflicts the 32-bit big-endian arch's?
(As I mentioned, this bug doesn't afflict my little-endian 64-bit Alpha,
nor my little-endian 32-bit x86.)
-F
Debian Bug Importer (debzilla) wrote : | #13 |
Message-ID: <email address hidden>
Date: Wed, 18 Aug 2004 14:31:07 +1000 (EST)
From: Finn Thain <email address hidden>
To: David Kimdon <email address hidden>
cc: <email address hidden>
Subject: Re: genext2fs - generates completely broken images on s390
--852659206-
Content-Type: TEXT/PLAIN; charset=US-ASCII
Attached is a patch for the make check failure. This s390 bug is one bug
that make check should be able to detect (unless of course it is an e2fsck
bug ;)
David, would it be possible to release this patch to the build servers in
order that the build logs may tell us whether the s390 endianness bug also
afflicts the 32-bit big-endian arch's?
(As I mentioned, this bug doesn't afflict my little-endian 64-bit Alpha,
nor my little-endian 32-bit x86.)
-F
--852659206-
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="genext2fs
Content-
Content-ID: <email address hidden>
Content-
Content-
LS0tIGdlbmV4dDJ
MTggMTQ6MDA6NDI
My5vcmlnL01ha2V
ICsxMDAwDQpAQCA
MDk2IC1kIHRlc3Q
aW1nIHwgY3V0IC1
ImE3MzZmY2U2ZDQ
DQorCWlmIFsgIiQ
ODZiMWViYTkiIF0
IFwNCiAJZWxzZSB
--852659206-
In Debian Bug tracker #266039, Finn Thain (ft01) wrote : | #14 |
> David, would it be possible to release this patch to the build servers in
> order that the build logs may tell us whether the s390 endianness bug also
> afflicts the 32-bit big-endian arch's?
Belay that -- I've just been informed that it does affect them.
-F
Debian Bug Importer (debzilla) wrote : | #15 |
Message-ID: <email address hidden>
Date: Thu, 19 Aug 2004 19:29:03 +1000 (EST)
From: Finn Thain <email address hidden>
To: David Kimdon <email address hidden>
cc: <email address hidden>
Subject: Re: genext2fs - generates completely broken images on s390
> David, would it be possible to release this patch to the build servers in
> order that the build logs may tell us whether the s390 endianness bug also
> afflicts the 32-bit big-endian arch's?
Belay that -- I've just been informed that it does affect them.
-F
In Debian Bug tracker #266039, Finn Thain (ft01) wrote : | #16 |
I've attached the fix, tested on ppc, debian m68k, alpha and i686. Turns
out that the group descriptor byte swapping code was not being run on the
last group due to miscalculation of the number of groups.
The patch includes an improved make check fix. Please disregard the
previous patch I sent for make check. Make check should now pass in a BSD
user land (works on Mac OS X).
Thanks to Wouter Verhelst for providing a big-endian box for testing.
-F
Debian Bug Importer (debzilla) wrote : | #17 |
Message-ID: <email address hidden>
Date: Sat, 21 Aug 2004 18:10:36 +1000 (EST)
From: Finn Thain <email address hidden>
To: David Kimdon <email address hidden>
cc: <email address hidden>
--852659206-
Content-Type: TEXT/PLAIN; charset=US-ASCII
I've attached the fix, tested on ppc, debian m68k, alpha and i686. Turns
out that the group descriptor byte swapping code was not being run on the
last group due to miscalculation of the number of groups.
The patch includes an improved make check fix. Please disregard the
previous patch I sent for make check. Make check should now pass in a BSD
user land (works on Mac OS X).
Thanks to Wouter Verhelst for providing a big-endian box for testing.
-F
--852659206-
Content-Type: TEXT/PLAIN; charset=US-ASCII;
name="
Content-
Content-ID: <email address hidden>
Content-
Content-
ZGlmZiAtTnVyIGd
bmV4dDJmcy0xLjM
b3JpZy1vcmlnL01
KysrIGdlbmV4dDJ
OjMwOjM1IDIwMDQ
di96ZXJvIG9mPXR
IDQwOTYgLWQgdGV
Mi5pbWcgfCBjdXQ
PSAiYTczNmZjZTZ
IFwNCi0JCWVjaG8
NV9jb3JyZWN0PWQ
DQorCW1kNV90ZXN
IGN1dCAtZiAxIC1
ICIkJG1kNV9jb3J
Y2NlZWRlZC4iOyB
dDIuaW1nIDI+
aWYgWyAiJCRtZDV
biBcDQorCQkJZWN
DQorCQkJZWNobyA
IAkNCmRpZmYgLU5
ZnMuYyBnZW5leHQ
eHQyZnMtMS4zLm9
OjE2OjUyIDIwMDQ
LmMJU2F0IEF1ZyA
IEBADQogLyogRGV
Ki8NCiANCiAvLyB
DQotI2RlZmluZSB
Y2tzX2NvdW50LTE
I2RlZmluZSBHUlB
X2NvdW50Kyhmcyk
Yi5zX2Jsb2Nrc19
ayBiaXRtYXAgKGJ
bmUgR1JQX0dFVF9
ZnMpLT5nZFsoZ3J
--8526...
In Debian Bug tracker #266039, Thomas Hood (jdthood-yahoo) wrote : tagging 266039 | #18 |
tags 266039 patch
Debian Bug Importer (debzilla) wrote : | #19 |
Message-Id: <20040823171905
Date: Mon, 23 Aug 2004 19:19:05 +0200 (CEST)
From: <email address hidden> (Thomas Hood)
To: <email address hidden>
Subject: tagging 266039
tags 266039 patch
In Debian Bug tracker #266039, Joshua Kwan (joshk) wrote : Fixed in NMU of genext2fs 1.3-7.1 | #20 |
tag 266039 + fixed
quit
This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 24 Aug 2004 19:09:01 -0700
Source: genext2fs
Binary: genext2fs
Architecture: source sparc
Version: 1.3-7.1
Distribution: unstable
Urgency: high
Maintainer: David Kimdon <email address hidden>
Changed-By: Joshua Kwan <email address hidden>
Description:
genext2fs - ext2 filesystem generator for embedded systems
Closes: 266039
Changes:
genext2fs (1.3-7.1) unstable; urgency=high
.
* Non-maintainer upload.
* Apply patch from Finn Thain to fix byteswapping code issues that broke
d-i on several arches. Thanks. (Closes: #266039)
Files:
56e3463f13456b
c01903e9035b52
c955b7d83907a5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: http://
iQIVAwUBQSv1fKO
kW8Ah4J/
dVI2QZsExZ+
9RzZdSzpvSE3Qte
HHyoK05RW+
fxXLH9sHF9d8iaJ
A+NvJV0EFWuMgN/
hL1Z8wtmzWcUZcf
dL5FHG6/
jLISs8Rx634mX/
BYfyDxZLgD7WRx1
Uq1NvEnGBCM=
=5o/A
-----END PGP SIGNATURE-----
Debian Bug Importer (debzilla) wrote : | #21 |
Message-Id: <email address hidden>
Date: Tue, 24 Aug 2004 23:47:05 -0400
From: Joshua Kwan <email address hidden>
To: <email address hidden>
Cc: Joshua Kwan <email address hidden>, David Kimdon <email address hidden>
Subject: Fixed in NMU of genext2fs 1.3-7.1
tag 266039 + fixed
quit
This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 24 Aug 2004 19:09:01 -0700
Source: genext2fs
Binary: genext2fs
Architecture: source sparc
Version: 1.3-7.1
Distribution: unstable
Urgency: high
Maintainer: David Kimdon <email address hidden>
Changed-By: Joshua Kwan <email address hidden>
Description:
genext2fs - ext2 filesystem generator for embedded systems
Closes: 266039
Changes:
genext2fs (1.3-7.1) unstable; urgency=high
.
* Non-maintainer upload.
* Apply patch from Finn Thain to fix byteswapping code issues that broke
d-i on several arches. Thanks. (Closes: #266039)
Files:
56e3463f13456b
c01903e9035b52
c955b7d83907a5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: http://
iQIVAwUBQSv1fKO
kW8Ah4J/
dVI2QZsExZ+
9RzZdSzpvSE3Qte
HHyoK05RW+
fxXLH9sHF9d8iaJ
A+NvJV0EFWuMgN/
hL1Z8wtmzWcUZcf
dL5FHG6/
jLISs8Rx634mX/
BYfyDxZLgD7WRx1
Uq1NvEnGBCM=
=5o/A
-----END PGP SIGNATURE-----
In Debian Bug tracker #266039, David Kimdon (dwhedon) wrote : ack NMU (genext2fs - generates completely broken images on s390) | #22 |
This bug can be closed.
Debian Bug Importer (debzilla) wrote : | #23 |
Message-ID: <email address hidden>
Date: Tue, 29 Nov 2005 13:48:02 -0800
From: David Kimdon <email address hidden>
To: <email address hidden>
Subject: ack NMU (genext2fs - generates completely broken images on s390)
This bug can be closed.
# Automatically generated email from bts, devscripts version 2.8
tags 266039 d-i