SRU: Bug #242448 - Hardy ecryptfs can cause data loss

Tim Gardner tcanonical at
Mon Jun 23 19:50:27 UTC 2008

SRU Justification:

Impact: ecryptfs can cause loss of data in certain scenarios

Patch Description: cherry-picked 2.6.25.y
d3e49afbb66109613c3474f2273f5830ac2dcb09. The page decrypt calls in
ecryptfs_write() are both pointless and buggy. Pointless because
ecryptfs_get_locked_page() has already brought the page up to date, and
buggy because prior mmap writes will just be blown away by the decrypt
call. This patch also removes the declaration of a now-nonexistent
function ecryptfs_write_zeros().


Test Case: see Bug decscription

Tim Gardner tim.gardner at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-eCryptfs-remove-unnecessary-page-decrypt-call.patch
Type: text/x-diff
Size: 3459 bytes
Desc: not available
URL: <>

More information about the kernel-team mailing list