* [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4
@ 2012-06-08 3:59 bugzilla-daemon
2012-06-08 4:18 ` [Bug 43354] " bugzilla-daemon
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-08 3:59 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
Summary: Corruption on a small loopback ext4 file system with
Linux 3.4
Product: File System
Version: 2.5
Kernel Version: 3.4.1
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: alecm@gmx.com
Regression: Yes
With Linux 3.4, I am getting major corruption on a loopback ext4 filesystem:
parts of files are randomly inserted into other files.
Below are steps to reproduce - I've been able to reproduce this on two
different systems. Both have ext4 root, using a plain kernel.org 3.4.1 kernel.
The problem does not reproduce when switching back to Linux 3.3.6.
If you need any additional info, I'll be happy to provide it.
# uname -r
3.4.1
# dd if=/dev/zero of=tree.ext4 bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 0.589387 s, 911 MB/s
# mkfs.ext4 -T small -N 200000 tree.ext4
mke2fs 1.42.3 (14-May-2012)
tree.ext4 is not a block special device.
Proceed anyway? (y,n) y
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
200192 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
64 block groups
8192 blocks per group, 8192 fragments per group
3128 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
# mkdir tree
# mount -o loop tree.ext4 tree
# tar xaf portage-20120607.tar.xz -C tree
# find tree -type f -exec sha1sum {} \; > checksums
# umount tree
# sync
# echo 3 > /proc/sys/vm/drop_caches # important! everything will seem fine
otherwise
# fsck.ext4 -f tree.ext4
e2fsck 1.42.3 (14-May-2012)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
tree.ext4: 183722/200192 files (0.0% non-contiguous), 402575/524288 blocks
# mount -o loop tree.ext4 tree
# sha1sum --check --quiet checksums
tree/portage/net-firewall/conntrack-tools/ChangeLog: FAILED
tree/portage/net-firewall/conntrack-tools/files/conntrackd.initd-r1: FAILED
tree/portage/net-firewall/nufw/ChangeLog: FAILED
...
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
@ 2012-06-08 4:18 ` bugzilla-daemon
2012-06-08 4:58 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-08 4:18 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
--- Comment #1 from Alec Moskvin <alecm@gmx.com> 2012-06-08 04:18:27 ---
Created an attachment (id=73536)
--> (https://bugzilla.kernel.org/attachment.cgi?id=73536)
tree.ext4.xz - resulting fs image
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
2012-06-08 4:18 ` [Bug 43354] " bugzilla-daemon
@ 2012-06-08 4:58 ` bugzilla-daemon
2012-06-08 13:44 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-08 4:58 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
Eric Sandeen <sandeen@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandeen@redhat.com
--- Comment #2 from Eric Sandeen <sandeen@redhat.com> 2012-06-08 04:58:37 ---
Does it go any better w/ a 4k fs block size? (-b 4096?)
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
2012-06-08 4:18 ` [Bug 43354] " bugzilla-daemon
2012-06-08 4:58 ` bugzilla-daemon
@ 2012-06-08 13:44 ` bugzilla-daemon
2012-06-08 17:46 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-08 13:44 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
--- Comment #3 from Alec Moskvin <alecm@gmx.com> 2012-06-08 13:44:13 ---
Yes, it seems to work fine with the 4k block size.
mkfs.ext4 -T small -N 200000 -b 4096 tree.ext4
(Of course, I had to also double the image size because otherwise the data
won't fit, but the size does not have an effect - the above is reproducible
with a 1G image as well.)
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
` (2 preceding siblings ...)
2012-06-08 13:44 ` bugzilla-daemon
@ 2012-06-08 17:46 ` bugzilla-daemon
2012-06-14 21:48 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-08 17:46 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
--- Comment #4 from Eric Sandeen <sandeen@redhat.com> 2012-06-08 17:46:39 ---
Hm, wait - drop caches _after_ unmount is required? Ok that's even weirder
(and scarier - especially since it's after a sync)
And - on further testing, ext2 & ext3 fail too. Yikes.
It also seems to happen only on loopback; a real device is fine.
And, loopback fails whether it's hosted on ext4 or xfs. So something generic
broke here...
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
` (3 preceding siblings ...)
2012-06-08 17:46 ` bugzilla-daemon
@ 2012-06-14 21:48 ` bugzilla-daemon
2012-07-28 14:33 ` bugzilla-daemon
2012-08-14 15:28 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-14 21:48 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
Jan Kara <jack@suse.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jack@suse.cz
--- Comment #5 from Jan Kara <jack@suse.cz> 2012-06-14 21:48:41 ---
Hmm, I'm not able to reproduce with 3.5-rc1. Can you?
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
` (4 preceding siblings ...)
2012-06-14 21:48 ` bugzilla-daemon
@ 2012-07-28 14:33 ` bugzilla-daemon
2012-08-14 15:28 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-07-28 14:33 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
--- Comment #6 from Alec Moskvin <alecm@gmx.com> 2012-07-28 14:33:19 ---
I can't reproduce with 3.5 either.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 43354] Corruption on a small loopback ext4 file system with Linux 3.4
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
` (5 preceding siblings ...)
2012-07-28 14:33 ` bugzilla-daemon
@ 2012-08-14 15:28 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-08-14 15:28 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=43354
Jan Kara <jack@suse.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|fs_ext4@kernel-bugs.osdl.or |jack@suse.cz
|g |
--- Comment #7 from Jan Kara <jack@suse.cz> 2012-08-14 15:28:24 ---
Ok, thanks for verification. I'll close this bug then.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-08-14 15:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 3:59 [Bug 43354] New: Corruption on a small loopback ext4 file system with Linux 3.4 bugzilla-daemon
2012-06-08 4:18 ` [Bug 43354] " bugzilla-daemon
2012-06-08 4:58 ` bugzilla-daemon
2012-06-08 13:44 ` bugzilla-daemon
2012-06-08 17:46 ` bugzilla-daemon
2012-06-14 21:48 ` bugzilla-daemon
2012-07-28 14:33 ` bugzilla-daemon
2012-08-14 15:28 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).