lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 17 Aug 2008 08:11:23 -0400
From:	Theodore Tso <>
To:	Eric Sandeen <>
Cc:	Markus d <>,
Subject: Re: frequent kernel bugs with 2.6.26-gentoo-r1

On Sat, Aug 16, 2008 at 06:58:10PM -0500, Eric Sandeen wrote:
> > i patched the kernel with
> >
> > and compiled it successfully.
> > 
> > after a "ssv flags 4" and a "tune2fs -O extents" i could mount one of my
> > ext3 partitions as a ext4dev-drive. first, everything seemed to work,
> > but after some read/write to that drive i got the first kernel oops.

You don't have to use debugfs to set "ssv flags 4" anymore.  If you
are converting an existing ext3 filesystem, "tune2fs -E test_fs -O
extents /dev/sdXXX" works just fine.  Please see:

> > thought it might be because it was an old ext3-drive, so i formated the
> > drive with mkfs.ext4dev. but no change, still the same problems. now i'm
> > nearly always getting a kernel bug on umounting an ext4-drive (and then
> > the device is not accessible/mountable anymore). here's the recent one:
> > 
> > [  830.270166] ------------[ cut here ]------------
> > [  830.270166] kernel BUG at fs/ext4/inode.c:1561!
> > [  830.270166] invalid opcode: 0000 [1] PREEMPT SMP
> <lazy>can you correlate to where this is in the kernel?</lazy>

I'm guessing that it's this BUG_ON in ext4_da_release_space:

    BUG_ON(mdb > EXT4_I(inode)->i_reserved_meta_blocks);

which was addressed by fix-delalloc-release-block-reservation-for-truncate
in the ex4 patch queue.  

The only thing which is funny is that if this is true, this bug has
only hit ext3 filesysem that had been converted to ext4 --- and
Markus, you said you have hit errors on a filesystem that was freshly
created using mkfs.ext4dev?     

Ah....  I think I know, #1 are you using e2fsprogs 1.41.0, and #2,
I'll bet you compiled from source and didn't install the new
mke2fs.conf file that comes with e2fsprogs 1.41.0.  It is critically
important that mke2fs for 1.41.0 use the mke2fs.conf file that is
shipped with e2fsprogs 1.41.0 as a starting point.  If you don't, and
you use the old mke2fs.conf from previous releases, mkfs.ext4dev won't
actually enable extents, so you don't get the benefits of ext4, and
the bugs trigger when you delete non-extent files when the filesystem
is mounted using ext4dev.

In any case, the two patches that you want are:


in the ext4 patch queue[1], or just wait a few days and I'll get a
patchset out versus 2.6.26 quickly.  It would be sooner, but there are
few other patches I'm hoping we can stablize, and I'm currently at a
family reunion in Baltimore for the next few days, so I don't know how
much ext4 hacking time I'll have.

[1] The git repository is at:

BTW, I've updated the Ext4 Howto in the Wiki with this information, so
hopefully it will help other people who are trying out ext4.

	     	       	     	    	    	   - Ted
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists