From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sami Liedes Subject: Intentionally corrupted fs: [this times really] "kernel BUG at fs/jbd2/transaction.c:161!" Date: Sat, 28 Apr 2012 03:45:22 +0300 Message-ID: <20120428004522.GC20648@sli.dy.fi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="96YOpH+ONegL0A3E" To: linux-ext4@vger.kernel.org Return-path: Received: from smtp-3.hut.fi ([130.233.228.93]:45497 "EHLO smtp-3.hut.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758541Ab2D1Ap3 (ORCPT ); Fri, 27 Apr 2012 20:45:29 -0400 Received: from localhost (katosiko.hut.fi [130.233.228.115]) by smtp-3.hut.fi (8.13.6/8.12.10) with ESMTP id q3S0jQT3023381 for ; Sat, 28 Apr 2012 03:45:27 +0300 Received: from smtp-3.hut.fi ([130.233.228.93]) by localhost (katosiko.hut.fi [130.233.228.115]) (amavisd-new, port 10024) with LMTP id 26209-469 for ; Sat, 28 Apr 2012 03:45:26 +0300 (EEST) Received: from kosh.localdomain (kosh.hut.fi [130.233.228.12]) by smtp-3.hut.fi (8.13.6/8.12.10) with ESMTP id q3S0jNXf023370 for ; Sat, 28 Apr 2012 03:45:23 +0300 Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org List-ID: --96YOpH+ONegL0A3E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [This is a distinct bug from the another similar-looking mail that I just sent on this list - confusingly by mistake with the subject this mail should have had...] The 10 MiB ext4 image available at http://www.niksula.hut.fi/~sliedes/ext4/2000177.min.ext4.bz2 causes a crash on mainline 3.3.4 kernel at umount time when the following operations are run (not all of these are probably really necessary): 1. mount 2000177.min.ext4 /mnt -t ext4 -o errors=continue 2. cd /mnt 3. cp -r doc doc2 >&/dev/null 4. find -xdev >&/dev/null 5. find -xdev -print0 2>/dev/null |xargs -0 touch -- 2>/dev/null 6. mkdir tmp >&/dev/null 7. echo whoah >tmp/filu 2>/dev/null 8. rm -rf /mnt/* >&/dev/null 9. cd / 10. umount /mnt See the dmesg output below (the panic is due to panic_on_oops=1). The image differs from a pristine, fully working ext4 filesystem available at http://www.niksula.hut.fi/~sliedes/ext4/pristine.ext4.bz2 by only one bit: ------------------------------------------------------------ $ wget http://www.niksula.hut.fi/~sliedes/ext4/pristine.ext4.bz2 $ bunzip2 pristine.ext4.bz2 $ diff -u <(hd pristine.ext4) <(hd 2000177.min.ext4) --- /dev/fd/63 2012-04-28 03:39:00.167101668 +0300 +++ /dev/fd/62 2012-04-28 03:39:00.167101668 +0300 @@ -32168,7 +32168,7 @@ 00170050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00170400 07 01 00 00 0c 00 01 02 2e 00 00 00 a4 00 00 00 |................| -00170410 0c 00 02 02 2e 2e 00 00 08 01 00 00 e8 03 28 01 |..............(.| +00170410 0c 00 02 02 2e 2e 00 00 08 00 00 00 e8 03 28 01 |..............(.| 00170420 5c 78 32 66 64 65 76 69 63 65 73 5c 78 32 66 76 |\x2fdevices\x2fv| 00170430 69 72 74 75 61 6c 5c 78 32 66 62 6c 6f 63 6b 5c |irtual\x2fblock\| 00170440 78 32 66 64 6d 2d 31 31 00 00 00 00 00 00 00 00 |x2fdm-11........| ------------------------------------------------------------ (This bug report serves also as a preview of the Berserker toolkit that automates finding such bugs and minimizing the differences to pristine filesystems. I plan on making the announcement and making the toolkit available within the next few hours.) Sami ------------------------------------------------------------ EXT4-fs (vdb): mounted filesystem with ordered data mode. Opts: errors=continue ------------[ cut here ]------------ kernel BUG at fs/jbd2/transaction.c:161! invalid opcode: 0000 [#1] CPU 0 Pid: 1528, comm: umount Not tainted 3.3.4 #1 Bochs Bochs RIP: 0010:[] [] start_this_handle+0x591/0x6d0 RSP: 0018:ffff880006c57b38 EFLAGS: 00010202 RAX: 0000000000000039 RBX: ffff880006d06828 RCX: 0000000000021020 RDX: 0000000000000039 RSI: ffffffff817b4ba0 RDI: ffff880006d06828 RBP: ffff880006c57be8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000153 R12: 0000000000000062 R13: ffff880006d06800 R14: ffff880006cee040 R15: ffff880006c57ba8 FS: 0000000000000000(0000) GS:ffffffff8161d000(0063) knlGS:00000000f74e9750 CS: 0010 DS: 002b ES: 002b CR0: 000000008005003b CR2: 00000000f75833e0 CR3: 000000000614c000 CR4: 00000000000006b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process umount (pid: 1528, threadinfo ffff880006c56000, task ffff880006cee040) Stack: 0000000000000000 ffff880006cee040 ffffffff810e748d 00000000fffedcd4 ffff880007252608 ffff880006cee040 ffff880006c0f200 ffff880006cee040 ffff880000000050 0000000000000296 ffff880006c57b98 ffffffff8107660d Call Trace: [] ? kmem_cache_alloc+0xad/0x150 [] ? trace_hardirqs_on+0xd/0x10 [] jbd2__journal_start+0x121/0x1a0 [] ? ext4_evict_inode+0x135/0x490 [] jbd2_journal_start+0xe/0x10 [] ext4_journal_start_sb+0x7a/0x1d0 [] ? __dquot_initialize+0x2b/0x180 [] ext4_evict_inode+0x135/0x490 [] evict+0xa7/0x1b0 [] iput+0x105/0x210 [] jbd2_journal_destroy+0x1b7/0x240 [] ? abort_exclusive_wait+0xb0/0xb0 [] ext4_put_super+0x73/0x320 [] generic_shutdown_super+0x5d/0xf0 [] kill_block_super+0x2b/0x80 [] deactivate_locked_super+0x45/0x80 [] deactivate_super+0x48/0x60 [] mntput_no_expire+0xa0/0xf0 [] sys_umount+0x6c/0x360 [] sys_oldumount+0xb/0x10 [] sysenter_dispatch+0x7/0x2a [] ? trace_hardirqs_on_thunk+0x3a/0x3f Code: 47 fa e8 93 16 23 00 48 8b 85 60 ff ff ff 4d 39 be a8 00 00 00 73 07 4d 89 be a8 00 00 00 48 89 c7 e8 a4 17 23 00 e9 30 ff ff ff <0f> 0b 48 c7 c1 50 21 42 81 ba df 00 00 00 31 c0 48 c7 c6 38 8c RIP [] start_this_handle+0x591/0x6d0 RSP ---[ end trace a277562ac91d83ad ]--- Kernel panic - not syncing: Fatal exception Rebooting in 1 seconds.. ------------------------------------------------------------ --96YOpH+ONegL0A3E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJPmz2iAAoJEKLT589SE0a06LIP/27a4DqVDV5k8OpgdrLunG0s tOX5vWjGOQ8LmUIoj2hEsXbWt7GxX/QLCfYNF+LPwVs/irZRmMAkWe5YnT07xGGC Z8iybhcMsHGFoINuquOZL2dKwAiLvT0l6ISdPU/sZySrlOJqqB1FL6jaTynpph+W FqGipB89GcIkIPSXx0QinJVjJZ3Udc687bto9P/0XTjn3/5MCBhDCwwKPk6PXhc3 otMoxb/ZNcccKN8XXpasBW3q0YP1IlA+hr+PvHzVor0HM7+WqqNGJN/Yj92Bdkpf uI/hw46TR7IhcUc6G9aN4dcD8b1g9x2BBt8zr/qxthx3iYglCW1rxBQ+Nc/gdIlh 4XRC2QhPBQtFPWetmNdDeTCmXPObAw4RQVB+0brZ4BuW9iIn6oy3b6qXvolA4vEU WLafjDQhTBEnncAF4oZ1Tk1jVRO3pvH/rlXoPtCjl5GuQG6PDOw3yDuvSiufm38P EM3g2zKOjRl9owa5lE6MMmBWTI2EvYW1FaGM+BhJl5pwJtohiiAtLXKttr4/BWgu dfcBxNrYDFBGiT/XEViHJhCMw/cGT9t/WAJdqQ43ALYOhTRqbostOpEQyuF0uyBP W7IHBVHvxaZiBl/j982YaZJmwahRj/FH6ywpGLTJRUfdpb9g1FmzMwOnhhBpPrhE MFUmhFXs7IDHJ2zkjeyI =F+GA -----END PGP SIGNATURE----- --96YOpH+ONegL0A3E--