[Bug 242448] [NEW] ecryptfs: remove unnecessary page decrypt call

Dustin Kirkland dustin.kirkland at gmail.com
Mon Jun 23 19:11:13 UTC 2008

Public bug reported:

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.


** Affects: linux
     Importance: Unknown
         Status: Unknown

** Affects: linux (Ubuntu)
     Importance: Medium
         Status: New

** Bug watch added: SourceForge.net Tracker #1997977

** Also affects: linux via
   Importance: Unknown
       Status: Unknown

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium
       Target: None => ubuntu-8.04.2

ecryptfs: remove unnecessary page decrypt call
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Linux.

More information about the kernel-bugs mailing list