random file corruptions in ntfs-3g < 1.2506

Bug #229000 reported by bgrupe
12
Affects Status Importance Assigned to Milestone
ntfs-3g (Debian)
Fix Released
Unknown
ntfs-3g (Ubuntu)
Fix Released
Undecided
Martin Pitt
Hardy
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: ntfs-3g

According to http://ntfs-3g.org/releases.html there was a bug found that could cause random data corruptions from version 1.0 to 1.2412. The recent 1.2506 release fixed this issue. Is it possible to do a SRU with the new ntfs-3g version?

Dylan Aïssi (daissi)
Changed in ntfs-3g:
status: New → Confirmed
Changed in ntfs-3g:
status: Unknown → New
Revision history for this message
Colin Watson (cjwatson) wrote :

An SRU is fine provided that the relevant fixes are backported. Simply dropping in the new upstream version won't be acceptable.

Changed in ntfs-3g:
milestone: none → ubuntu-8.04.1
status: New → Confirmed
Changed in ntfs-3g:
status: New → Fix Committed
Revision history for this message
Agostino Russo (ago) wrote :

This should be the correct patch (down to the smallest possible delta), I can only test for regressions though, since I am not sure how to reproduce the bug myself.

diff -u ntfs-3g-1.2216/debian/changelog ntfs-3g-1.2216/debian/changelog
--- ntfs-3g-1.2216/debian/changelog
+++ ntfs-3g-1.2216/debian/changelog
@@ -1,3 +1,10 @@
+ntfs-3g (1:1.2216-1ubuntu2) hardy; urgency=low
+
+ * Backported fix in 1.2506 that addresses random file corruptions (LP:
+ #229000)
+
+ -- Agostino Russo <email address hidden> Wed, 28 May 2008 21:19:15 +0100
+
 ntfs-3g (1:1.2216-1ubuntu1) hardy; urgency=low

   * New upstream bug fix release. (LP: #199161)
only in patch2:
unchanged:
--- ntfs-3g-1.2216.orig/libntfs-3g/lcnalloc.c
+++ ntfs-3g-1.2216/libntfs-3g/lcnalloc.c
@@ -278,7 +278,7 @@
   bmp_pos &= ~7;
   writeback = 0;

- while (1) {
+ while (lcn < buf_size) {
    byte = buf + (lcn >> 3);
    bit = 1 << (lcn & 7);
    if (has_guess) {

Revision history for this message
Martin Pitt (pitti) wrote :

Taking.

Changed in ntfs-3g:
assignee: nobody → pitti
status: Confirmed → In Progress
assignee: nobody → pitti
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ntfs-3g - 1:1.2310-1ubuntu2

---------------
ntfs-3g (1:1.2310-1ubuntu2) intrepid; urgency=low

  * libntfs-3g/lcnalloc.c: Fix potential data corruption: Multi-block
    allocation could allocate or free used blocks in certain rare
    circumstances. Patch taken from upstream CVS:
    http://ntfs-3g.cvs.sourceforge.net/ntfs-3g/ntfs-3g/libntfs-3g/lcnalloc.c?r1=1.13&r2=1.14
    (LP: #229000)

 -- Martin Pitt <email address hidden> Fri, 30 May 2008 16:49:55 +0200

Changed in ntfs-3g:
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

I appplied the patch (thanks Agostino!) and tested it extensively:

- I used the fairly comprehensive POSIX test suite from http://www.ntfs-3g.org/pjd-fstest.html before and afterwards. Output was identical.
- Lots of random writes, unmount, mount, read, and check with diff that files are identical
- fill the device up to the last block and compare that everythign was written correctly

Changed in ntfs-3g:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into hardy-proposed. Please test and give feedback here.

Changed in ntfs-3g:
status: In Progress → Fix Committed
Changed in ntfs-3g:
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

not sure how to trigger the issue but accessing a ntfs drive using nautilus and the command line, browsing the directories, copying, moving things between directories, renaming, unmount and mounting again works correctly using the current version

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in ntfs-3g:
status: Fix Committed → Fix Released
Revision history for this message
ve1itas (ve1itas) wrote :

Hi,

I cannot find 1:1.2310-1ubuntu2 in hardy-updates. It still shows 1:1.2216-1ubuntu2 in http://packages.ubuntu.com/hardy-updates/ntfs-3g and in the repositories. Please let me know how to get this update. Thanks a lot.

Revision history for this message
Martin Pitt (pitti) wrote :

You have the up to date version with that file system corruption bug fixed. We didn't put the entire new upstream version into hardy, I just backported that particular fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.