Package: hurd
Version: 20090404-2
Tags: patch

Sometimes ext2fs crashes on startup, see
http://richtlijn.be/~larstiq/hurd/hurd-2010-04-04:
22:58:10< jkoenig> there's a bug in
debian/patches/ext2fs_large_stores.patch, which makes it crash on
startup
22:58:34< jkoenig> namely, in get_hypermetadata() the buffer length is
passed uninitialized to store_read()

On my system, the problem can be reproduced by using ext2fs on a file
(see the attached typescript).

Initializing 'read = 0;' before the call to store_read() fixes it.

-- 
Jérémie Koenig <j...@jk.fr.eu.org>
http://jk.fr.eu.org/
Script started, file is typescript
j...@trichome:~$ dd if=/dev/zero bs=4096 count=1000 of=test.ext2
1000+0 records in
1000+0 records out
4096000 bytes (4.1 MB) copied, 5.58 s, 734 kB/s
j...@trichome:~$ mkfs -o hurd -b 4096 test.ext2
mke2fs 1.41.11 (14-Mar-2010)
test.ext2 is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Hurd
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1024 inodes, 1000 blocks
50 blocks (5.00%) reserved for the super user
First data block=0
1 block group
32768 blocks per group, 32768 fragments per group
1024 inodes per group

Writing inode tables: 0/1done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
j...@trichome:~$ settrans -ac test /hurd/ext2fs test.ext2
settrans: /hurd/ext2fs: Translator died
j...@trichome:~$ exit
Script done, file is typescript

Reply via email to