Files
linux/fs
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-08-06 19:06:51 +02:00
2020-06-25 15:32:56 +02:00
2019-12-13 08:52:36 +01:00
2019-05-22 08:00:39 +02:00
2019-12-13 08:51:59 +01:00
2020-06-22 09:05:01 +02:00
2020-04-23 11:07:54 +02:00
2020-03-05 16:42:12 +01:00
2020-04-29 17:26:17 +02:00
2020-05-03 08:48:02 +02:00
2020-01-04 19:29:03 +01:00