Make insert_range return ENOTSUPP in preference to EINVAL to fix
[ext4-patch-queue.git] / require-ctr-mode
blobb9766d292ed632fdf56ee1a8f3d542b0ca5c6684
1 ext4 crypto: require CONFIG_CRYPTO_CTR if ext4 encryption is enabled
3 On arm64 this is apparently needed for CTS mode to function correctly.
4 Otherwise attempts to use CTS return ENOENT.
6 Change-Id: I732ea9a5157acc76de5b89edec195d0365f4ca63
7 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 ---
9  fs/ext4/Kconfig | 1 +
10  1 file changed, 1 insertion(+)
12 diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
13 index 024f228..bf8bc8a 100644
14 --- a/fs/ext4/Kconfig
15 +++ b/fs/ext4/Kconfig
16 @@ -72,6 +72,7 @@ config EXT4_ENCRYPTION
17         select CRYPTO_ECB
18         select CRYPTO_XTS
19         select CRYPTO_CTS
20 +       select CRYPTO_CTR
21         select CRYPTO_SHA256
22         select KEYS
23         select ENCRYPTED_KEYS