Patch Description: eCryptfs: make ecryptfs_prepare_write decrypt the page. When the page is not up to date, cryptfs_prepare_write() should be acting much like ecryptfs_readpage(). This includes the painfully obvious step of actually decrypting the page contents read from the lower encrypted file.
SRU Justification
Impact: Encrypted files can get corrupted.
Patch Description: eCryptfs: make ecryptfs_ prepare_ write decrypt the page. When the page is not up to date, cryptfs_ prepare_ write() should be acting much like ecryptfs_ readpage( ). This includes the painfully obvious step of actually decrypting the page contents read from the lower encrypted file.
Patch: http:// kernel. ubuntu. com/git? p=ubuntu/ ubuntu- hardy.git; a=commit; h=d657d315c2b14 e093a2eff90f7e3 dd722e745f40
Test Case: See bug description.