Comment 20 for bug 242448

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 242448] Re: Hardy ecryptfs can cause data loss

Please let me know when this is in your test kernel repo
(deb http://ppa.launchpad.net/timg-tpi/ubuntu hardy main) and I will give it a
shot.

thanks,
-serge

On Mon, Aug 18, 2008 at 11:01 AM, Tim Gardner <email address hidden> wrote:
> I was able to verify that the test case no longer shows the bug.
>
> --
> Hardy ecryptfs can cause data loss
> https://bugs.launchpad.net/bugs/242448
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in The Linux Kernel: Unknown
> Status in "linux" source package in Ubuntu: Confirmed
> Status in linux in Ubuntu Hardy: Fix Committed
>
> Bug description:
> This bug can cause data loss on an ecryptfs mounted filesystem.
>
> The test case looks like this:
>
> # mkdir /tmp/dir1 /tmp/dir2
> # mount -t ecryptfs /tmp/dir1 /tmp/dir2
> (any ecryptfs mount options are fine, choose defaults)
> # cp /usr/share/common-licenses/GPL-3 /tmp/dir2
> # umount /tmp/dir2
> # mount -t ecryptfs /tmp/dir1 /tmp/dir2
> (choose same options/passphrase as last mount)
> # echo foo >> /tmp/dir2/GPL-3
> # tail /tmp/dir2/GPL-3
> # reset
>
> You will see badly decrypted data printed to screen, whereas you should see the GPLv3 plus "foo" printed to screen. The data in this file is permanently hosed.
>
> The fix for this bug was applied upstream against 2.6.26, and is already in the intrepid kernel.
>
> The git commit diff can be seen here:
> * http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-intrepid.git;a=commitdiff;h=d3e49afbb66109613c3474f2273f5830ac2dcb09
>
> I will gladly test a new Hardy kernel as soon as it becomes available.
>
> :-Dustin
>