Michael Halcrow
e4465fdaeb
eCryptfs: make ecryptfs_prepare_write decrypt the page
...
When the page is not up to date, ecryptfs_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.
Note that this patch resolves a bug in eCryptfs in 2.6.24 that one can
produce with these steps:
# mount -t ecryptfs /secret /secret
# echo "abc" > /secret/file.txt
# umount /secret
# mount -t ecryptfs /secret /secret
# echo "def" >> /secret/file.txt
# cat /secret/file.txt
Without this patch, the resulting data returned from cat is likely to
be something other than "abc\ndef\n".
(Thanks to Benedikt Driessen for reporting this.)
Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Benedikt Driessen <bdriessen@escrypt.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:16 -08:00
..
2008-02-07 08:42:26 -08:00
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:39 -08:00
2008-02-14 21:13:33 -08:00
2008-02-08 09:22:40 -08:00
2008-02-14 21:13:33 -08:00
2008-02-08 09:22:40 -08:00
2008-02-07 08:42:27 -08:00
2008-02-26 03:44:02 +00:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00
2007-10-18 14:37:29 -07:00
2008-02-08 09:22:34 -08:00
2008-02-08 09:22:40 -08:00
2008-02-21 15:19:54 -06:00
2008-03-04 16:35:16 -08:00
2008-02-23 17:12:15 -08:00
2007-10-22 08:13:21 -07:00
2008-02-08 09:22:40 -08:00
2008-02-14 21:13:33 -08:00
2008-02-25 15:37:42 -05:00
2008-02-08 09:22:40 -08:00
2008-02-07 08:42:28 -08:00
2008-02-23 17:12:13 -08:00
2008-02-14 21:13:33 -08:00
2008-02-06 10:41:05 -08:00
2008-02-08 09:22:36 -08:00
2008-02-05 09:44:30 -08:00
2008-02-08 09:22:40 -08:00
2008-02-07 08:42:29 -08:00
2008-02-05 09:44:14 -08:00
2008-02-08 09:22:40 -08:00
2008-03-03 10:47:13 -08:00
2008-02-10 01:09:32 -05:00
2008-02-07 10:20:31 -08:00
2008-02-07 13:45:29 -06:00
2008-02-21 18:42:29 -05:00
2008-02-07 08:42:28 -08:00
2008-02-08 09:22:40 -08:00
2008-02-21 18:42:29 -05:00
2008-02-21 18:42:29 -05:00
2007-10-18 14:37:31 -07:00
2008-02-05 09:44:14 -08:00
2008-03-03 15:50:21 -08:00
2008-02-07 08:42:29 -08:00
2008-02-08 12:42:01 +01:00
2008-03-04 11:28:36 +01:00
2008-02-07 08:42:28 -08:00
2007-10-17 08:42:56 -07:00
2008-03-04 16:35:16 -08:00
2008-02-07 08:42:28 -08:00
2008-02-13 16:21:19 -08:00
2008-02-07 11:31:46 -08:00
2008-02-07 08:42:29 -08:00
2008-02-13 16:21:20 -08:00
2008-02-23 17:12:13 -08:00
2008-02-07 08:42:26 -08:00
2008-02-28 20:37:56 -08:00
2008-02-08 09:22:33 -08:00
2007-10-17 08:43:00 -07:00
2007-10-18 14:37:22 -07:00
2008-02-07 08:42:26 -08:00
2008-02-08 09:22:30 -08:00
2007-10-19 11:53:40 -07:00
2008-03-04 16:35:10 -08:00
2007-10-19 23:21:04 +02:00
2008-02-14 20:58:05 -08:00
2007-10-19 23:21:04 +02:00
2007-10-19 23:21:04 +02:00
2008-02-08 09:22:30 -08:00
2008-02-19 10:04:00 +01:00
2008-02-19 10:04:00 +01:00
2008-03-04 16:35:10 -08:00
2008-02-08 09:22:42 -08:00
2008-01-30 13:31:46 +01:00
2008-02-14 21:17:09 -08:00
2008-02-15 13:36:30 -05:00
2008-02-14 21:17:09 -08:00
2008-02-14 21:17:09 -08:00
2008-02-05 09:44:13 -08:00
2008-02-14 21:13:33 -08:00
2008-02-06 10:41:03 -08:00
2008-02-05 09:44:07 -08:00
2008-03-03 10:12:14 -08:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2008-02-06 10:41:06 -08:00
2008-02-05 09:44:19 -08:00
2008-02-07 08:42:29 -08:00
2008-02-14 21:13:33 -08:00
2008-02-06 10:41:07 -08:00
2008-02-09 11:08:33 -08:00
2008-01-28 11:38:15 +01:00
2008-02-05 14:37:15 -08:00
2008-02-08 09:22:30 -08:00
2008-02-05 09:44:13 -08:00
2008-02-08 09:22:29 -08:00
2008-01-30 13:31:46 +01:00
2007-10-25 15:18:29 -07:00
2008-03-03 10:47:13 -08:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:17:08 -08:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00
2008-02-13 16:21:19 -08:00
2008-02-06 10:41:02 -08:00
2007-10-21 02:37:25 -04:00
2008-02-07 08:42:26 -08:00
2008-02-08 09:22:36 -08:00
2007-12-06 17:39:54 -05:00
2008-02-06 10:41:09 -08:00
2008-02-14 21:17:09 -08:00
2008-02-06 10:41:03 -08:00
2008-03-04 11:14:39 +01:00
2008-02-14 21:13:33 -08:00
2008-02-08 09:22:44 -08:00
2008-02-05 09:44:07 -08:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00