Satya Tangirala
d48452b710
ANDROID: fscrypt: fix DUN contiguity with inline encryption + IV_INO_LBLK_32 policies
...
IV_INO_LBLK_32 policies introduced the possibility that logically
contiguous data blocks might not have contiguous DUNs (because of
potential DUN wraparound). As such, whenever a page is merged into a
bio, fscrypt_mergeable_bio() must be called to check DUN contiguity.
Further, fscrypt inline encryption does not handle the case when the DUN
wraps around within a page (which can happen when the data unit size !=
PAGE_SIZE). For now, we handle that by disallowing inline encryption
with IV_INO_LBLK_32 policies when the data unit size != PAGE_SIZE (and
dropping the now redundant check for this in fscrypt_dio_supported()).
Bug: 144046242
Change-Id: I9cb414fcc284b197b9d3d1b9643029c6b875df5a
Signed-off-by: Satya Tangirala <satyat@google.com >
2020-07-14 15:48:04 +00:00
..
2019-10-11 18:21:13 +02:00
2019-08-06 19:06:49 +02:00
2020-01-27 14:51:21 +01:00
2020-06-25 15:33:06 +02:00
2019-12-13 08:51:01 +01:00
2018-12-01 09:37:27 +01:00
2020-07-09 09:37:08 +02:00
2020-06-03 08:19:29 +02:00
2020-05-27 17:37:34 +02:00
2020-07-09 09:37:12 +02:00
2019-08-06 19:06:51 +02:00
2020-05-27 17:37:32 +02:00
2018-11-13 11:08:55 -08:00
2020-07-14 15:48:04 +00:00
2019-05-08 07:21:48 +02:00
2019-03-23 20:09:59 +01:00
2020-06-25 15:32:56 +02:00
2020-02-28 16:38:59 +01:00
2019-12-05 09:20:32 +01:00
2020-01-27 14:50:02 +01:00
2020-04-23 10:30:21 +02:00
2020-06-27 09:50:13 +02:00
2020-07-10 14:07:24 -07:00
2020-06-22 09:05:08 +02:00
2018-12-17 09:24:40 +01:00
2019-12-13 08:52:36 +01:00
2020-06-25 15:33:03 +02:00
2019-12-01 09:17:10 +01:00
2020-04-17 10:48:52 +02:00
2018-08-17 16:20:28 -07:00
2018-08-25 12:42:33 -07:00
2019-05-22 08:00:39 +02:00
2020-06-09 15:27:23 +00:00
2018-08-21 11:37:41 +02:00
2020-04-21 09:03:06 +02:00
2019-05-20 17:46:45 -07:00
2020-01-27 14:50:33 +01:00
2020-04-13 21:36:41 +00:00
2019-12-13 08:51:59 +01:00
2020-07-01 13:11:06 +02:00
2020-07-09 09:37:11 +02:00
2020-06-22 09:05:03 +02:00
2020-07-01 13:11:06 +02:00
2018-08-17 16:20:27 -07:00
2020-06-30 23:17:17 -04:00
2020-02-24 08:34:53 +01:00
2020-06-22 10:50:54 +02:00
2020-06-22 10:50:54 +02:00
2020-04-17 10:48:47 +02:00
2020-01-12 12:17:20 +01:00
2020-02-24 08:34:52 +01:00
2018-08-02 09:34:02 -07:00
2018-08-18 11:44:53 -07:00
2018-12-17 09:24:30 +01:00
2018-07-31 11:32:44 -04:00
2020-05-28 12:20:07 +02:00
2020-02-24 08:34:45 +01:00
2019-05-25 18:23:46 +02:00
2020-02-28 03:35:36 +00:00
2020-06-16 14:07:40 -07:00
2020-07-01 13:11:06 +02:00
2020-06-22 09:05:01 +02:00
2020-06-27 15:17:44 +02:00
2020-06-03 08:19:41 +02:00
2019-07-03 13:14:44 +02:00
2019-11-06 13:05:37 +01:00
2020-06-27 09:50:13 +02:00
2020-04-23 11:07:54 +02:00
2020-01-14 20:06:57 +01:00
2020-01-09 10:19:07 +01:00
2020-06-27 15:17:44 +02:00
2020-03-05 16:42:12 +01:00
2019-12-13 14:04:22 -08:00
2020-05-21 11:55:15 -07:00
2020-01-12 12:17:20 +01:00
2020-02-11 04:34:08 -08:00
2019-10-11 14:04:42 -07:00
2020-06-27 15:17:42 +02:00
2018-08-15 23:03:20 -05:00
2018-08-21 18:19:09 -07:00
2020-05-27 17:37:29 +02:00
2020-04-17 10:48:51 +02:00
2020-06-27 15:17:45 +02:00
2020-06-24 13:31:46 -07:00
2020-06-27 15:17:44 +02:00
2020-06-27 15:17:39 +02:00
2018-11-21 09:19:14 +01:00
2020-01-24 10:49:09 -08:00
2020-06-27 15:17:38 +02:00
2018-08-02 08:06:55 +09:00
2020-06-15 13:24:58 -07:00
2020-01-09 10:19:00 +01:00
2020-06-27 15:17:38 +02:00
2019-08-17 00:18:14 +00:00
2020-06-27 15:17:44 +02:00
2020-04-29 17:26:17 +02:00
2019-05-25 18:23:26 +02:00
2020-06-27 15:17:44 +02:00
2019-05-04 09:20:11 +02:00
2020-05-03 08:48:02 +02:00
2018-12-05 09:48:13 -08:00
2018-12-05 09:48:13 -08:00
2020-06-29 17:09:39 +00:00
2020-01-04 19:13:26 +01:00
2019-08-25 10:47:43 +02:00
2019-12-17 20:35:43 +01:00
2019-10-11 18:21:39 +02:00
2019-10-07 13:29:05 -07:00
2018-12-05 09:48:12 -08:00
2018-08-13 20:56:23 -07:00
2020-01-04 19:29:03 +01:00
2020-06-27 15:17:44 +02:00
2020-06-27 15:17:42 +02:00