android_kernel_motorola_sm6375/fs/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Satya Tangirala 6561560c01 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:10 +00:00
..
bio.c ANDROID: fscrypt: fix DUN contiguity with inline encryption + IV_INO_LBLK_32 policies 2020-07-14 15:48:10 +00:00
crypto.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
fname.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
fscrypt_private.h Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
hkdf.c fscrypt: constify struct fscrypt_hkdf parameter to fscrypt_hkdf_expand() 2020-02-12 19:35:18 -08:00
hooks.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
inline_crypt.c ANDROID: fscrypt: fix DUN contiguity with inline encryption + IV_INO_LBLK_32 policies 2020-07-14 15:48:10 +00:00
Kconfig Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4 2020-02-20 12:31:26 -08:00
keyring.c Revert "ANDROID: fscrypt: add key removal notifier chain" 2020-06-29 18:26:35 +00:00
keysetup.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
keysetup_v1.c ANDROID: block: Prevent crypto fallback for wrapped keys 2020-02-25 19:27:51 +00:00
Makefile FROMLIST: fscrypt: add inline encryption support 2019-10-30 22:01:39 +00:00
policy.c fscrypt: add support for IV_INO_LBLK_32 policies 2020-06-16 14:06:45 -07:00