[Bug 618804] New: Wrong data returned on read after write if file size was changed with ftruncate
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c0 Summary: Wrong data returned on read after write if file size was changed with ftruncate Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: richard.coe@med.ge.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 GTB7.0 from: https://bugzilla.kernel.org/show_bug.cgi?id=16165
we use the direct async I/O API for file I/O in VirtualBox since 3.2 and got some reports about corrupted guest filesystems. It turned out that only users are affected which disk images are stored on a ext4 filesystem. I could create a testcase which reproduces the error. Further investigation showed that the data corruption happens if ftruncate is used, data is written to the so far unallocated offset and immediately read back. The buffer holding the read data contains only \0 afterwards. The data is there if the file is closed and another program is used to view the file content (less for example). Everything works if ftruncate is not used.
The test case is in the original bug report, which includes patches for ext4 and xfs. Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c Rich Coe <richard.coe@med.ge.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch URL| |https://bugzilla.kernel.org | |/show_bug.cgi?id=16165 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c1 Erico Mendonca <emendonca@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emendonca@novell.com --- Comment #1 from Erico Mendonca <emendonca@novell.com> 2010-07-14 16:22:11 UTC --- *** Bug 621177 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=621177 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c2 --- Comment #2 from Erico Mendonca <emendonca@novell.com> 2010-07-14 16:23:37 UTC --- I say this is a stopper. Anyone? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c3 Chris Brown <christopher.brown@med.ge.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christopher.brown@med.ge.co | |m --- Comment #3 from Chris Brown <christopher.brown@med.ge.com> 2010-07-22 15:17:03 UTC --- This bug is preventing the usage of ext4 and xfs based filesystems with any software which uses aio and ftruncate. VirtualBox is is rendered unuseable with ext4 and XFS filesystems as a result of this bug. Any status updates? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lchiquitto@novell.com AssignedTo|kernel-maintainers@forge.pr |jack@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618804 http://bugzilla.novell.com/show_bug.cgi?id=618804#c4 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Jan Kara <jack@novell.com> 2010-08-12 12:31:47 UTC --- The fixes have been merged in an upstream kernel. I or Ted Ts'o will port them and push them to 2.6.34-stable so that it lands in openSUSE 11.3. Stay tuned. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618804 https://bugzilla.novell.com/show_bug.cgi?id=618804#c Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |636156 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618804 https://bugzilla.novell.com/show_bug.cgi?id=618804#c6 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent --- Comment #6 from Marcus Meissner <meissner@novell.com> 2010-09-08 08:14:28 UTC --- jan, any update? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618804 https://bugzilla.novell.com/show_bug.cgi?id=618804#c7 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #7 from Jan Kara <jack@novell.com> 2010-09-08 13:04:38 UTC --- Jeff fixed it for openSUSE 11.3 so I'm closing this one. *** This bug has been marked as a duplicate of bug 600948 *** http://bugzilla.novell.com/show_bug.cgi?id=600948 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618804 https://bugzilla.novell.com/show_bug.cgi?id=618804#c8 --- Comment #8 from Chris Brown <christopher.brown@med.ge.com> 2010-09-08 15:56:06 UTC --- Has this been pushed as part of an OpenSUSE 11.3 kernel update yet, or is this planned? Fedora 13 has already patched, tested and released a kernel which included a fix for this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618804 https://bugzilla.novell.com/show_bug.cgi?id=618804#c9 --- Comment #9 from Jan Kara <jack@novell.com> 2010-09-08 16:36:58 UTC --- It has been fixed in our tree only a few days ago so it hasn't been pushed out yet. But the nearest openSUSE 11.3 update should contain the fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com