Eric Biggers
73b321a1d2
UPSTREAM: fscrypt: restrict IV_INO_LBLK_* to AES-256-XTS
...
IV_INO_LBLK_* exist only because of hardware limitations, and currently
the only known use case for them involves AES-256-XTS. Therefore, for
now only allow them in combination with AES-256-XTS. This way we don't
have to worry about them being combined with other encryption modes.
(To be clear, combining IV_INO_LBLK_* with other encryption modes
*should* work just fine. It's just not being tested, so we can't be
100% sure it works. So with no known use case, it's best to disallow it
for now, just like we don't allow other weird combinations like
AES-256-XTS contents encryption with Adiantum filenames encryption.)
This can be relaxed later if a use case for other combinations arises.
Fixes: b103fb7653 ("fscrypt: add support for IV_INO_LBLK_64 policies")
Fixes: e3b1078bed ("fscrypt: add support for IV_INO_LBLK_32 policies")
Link: https://lore.kernel.org/r/20200721181012.39308-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com >
(cherry picked from commit f000223c98 )
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com >
Change-Id: I243e2c3de549e322a311610fa565ffe87990c8e9
2020-11-15 15:06:09 +01:00
..
2020-11-05 11:08:53 +01:00
2019-08-06 19:06:49 +02:00
2020-09-09 19:04:30 +02:00
2020-08-26 10:31:05 +02:00
2019-12-13 08:51:01 +01:00
2018-06-15 18:10:01 -03:00
2018-12-01 09:37:27 +01:00
2020-11-10 12:35:57 +01:00
2020-11-05 11:08:54 +01:00
2020-11-05 11:08:53 +01:00
2020-11-05 11:08:44 +01: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-11-15 15:06:09 +01:00
2019-05-08 07:21:48 +02:00
2019-03-23 20:09:59 +01:00
2020-10-30 10:38:28 +01:00
2020-02-28 16:38:59 +01:00
2020-11-05 11:08:32 +01:00
2019-12-05 09:20:32 +01:00
2020-01-27 14:50:02 +01:00
2020-09-09 19:04:28 +02:00
2020-11-05 14:02:27 +01:00
2020-11-05 14:02:27 +01:00
2020-06-22 09:05:08 +02:00
2018-12-17 09:24:40 +01:00
2020-11-09 13:11:29 +00:00
2020-11-10 12:35:58 +01: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-07-24 14:49:52 +00:00
2018-08-21 11:37:41 +02:00
2020-09-03 11:24:24 +02:00
2020-08-26 11:07:03 +02: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-08-21 11:05:38 +02:00
2020-11-05 14:02:27 +01:00
2020-11-05 11:08:52 +01:00
2020-06-22 09:05:03 +02:00
2020-11-09 13:11:29 +00:00
2020-10-30 10:38:28 +01:00
2020-08-21 11:05:33 +02:00
2020-02-24 08:34:53 +01:00
2020-07-22 13:03:12 +02:00
2020-10-29 11:36:20 +01:00
2020-08-19 08:15:04 +02:00
2020-10-29 09:55:12 +01:00
2020-10-30 10:38:21 +01:00
2020-10-30 10:38:31 +01:00
2020-08-26 10:30:59 +02: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-11-05 14:02:27 +01:00
2020-11-05 11:08:50 +01:00
2020-08-21 11:05:38 +02:00
2020-02-28 03:35:36 +00:00
2020-06-16 14:07:40 -07:00
2020-11-05 14:02:27 +01:00
2020-06-22 09:05:01 +02:00
2018-07-12 10:04:27 -04:00
2020-06-27 15:17:44 +02:00
2018-07-12 10:04:20 -04:00
2018-06-12 16:19:22 -07:00
2020-06-03 08:19:41 +02:00
2019-07-03 13:14:44 +02:00
2018-07-10 23:29:03 -04:00
2019-11-06 13:05:37 +01:00
2020-10-01 16:49:05 +02:00
2020-11-05 14:02:27 +01: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
2020-11-05 11:08:35 +01: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
2020-10-07 08:45:35 +02:00
2020-11-05 11:08:38 +01: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-09-03 11:24:28 +02: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
2018-06-12 16:19:22 -07: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
2018-06-28 10:40:47 -07:00
2019-08-25 10:47:43 +02:00
2020-08-26 10:31:02 +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-08-11 17:03:22 +02:00