Bug 621177

Summary: EXT4 file corruption with ftruncate()
Product: [openSUSE] openSUSE 11.3 Reporter: Erico Mendonca <erico.mendonca>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High    
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: Field Engineer Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Erico Mendonca 2010-07-09 12:31:37 UTC
Using ftruncate() on a file in an EXT4 filesystem will cause severe file corruption. This is specially true if using VirtualBox, which uses this constantly for virtual disk management. In fact, it will corrupt running VMs, which will show random file system errors.

The upstream bug is described here (kernel.org): https://bugzilla.kernel.org/show_bug.cgi?id=16165

Oracle has released a workaround for the problem with release 3.2.6.

The problem has been verified on both OpenSUSE 11.2 (with kernel-desktop-2.6.31.12-0.2) and with OpenSUSE 11.3 RC2 (kernel-desktop 2.6.34-12.1).

To reproduce the problem, use the testcase from the upstream bug (aio_corrupt.c).

I've checked for similar reports on bugzilla, but none seem to address this particular error.
Comment 1 Erico Mendonca 2010-07-14 16:22:10 UTC
This was reported first in bug 618804.

*** This bug has been marked as a duplicate of bug 618804 ***