Eric Biggers
609bb35622
fscrypt-crypt-util: fix maximum IV size
...
In commit 65cd8e8a8e ("fscrypt-crypt-util: fix IV incrementing for
--iv-ino-lblk-32") I mistakenly decreased the size of fscrypt_iv to 24
bytes, which is the most that is explicitly needed by any of the IV
generation methods. However, Adiantum encryption takes a 32-byte IV, so
the buffer still needs to be 32 bytes, with any extra bytes zeroed.
So restore the size to 32 bytes.
This fixes a buffer overread that caused generic/550 and generic/584 to
sometimes fail, depending on the build of the fscrypt-crypt-util binary.
(Most of the time it still worked by chance.)
Fixes: 65cd8e8a8e ("fscrypt-crypt-util: fix IV incrementing for --iv-ino-lblk-32")
Signed-off-by: Eric Biggers <ebiggers@google.com >
Signed-off-by: Eryu Guan <guaneryu@gmail.com >
2020-11-15 14:53:06 +08:00
..
2019-12-01 23:13:14 +08:00
2019-10-25 07:47:14 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2020-11-08 13:52:42 +08:00
2002-09-04 07:44:40 +00:00
2019-05-23 16:11:55 +08:00
2018-06-22 10:38:07 +08:00
2019-06-07 20:13:47 +08:00
2019-08-04 16:50:30 +08:00
2019-06-07 20:13:47 +08:00
2019-06-07 20:13:47 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2016-11-18 16:41:06 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2001-09-28 09:49:27 +00:00
2014-09-08 20:49:52 +10:00
2008-11-20 14:23:14 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-10-14 23:53:55 +08:00
2018-06-22 10:38:07 +08:00
2005-11-09 02:50:19 +00:00
2017-07-24 12:34:41 +08:00
2005-11-09 02:50:19 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2020-11-15 14:53:06 +08:00
2020-05-10 23:24:18 +08:00
2018-06-22 10:23:55 +08:00
2018-05-02 10:53:48 +08:00
2016-02-08 09:27:10 +11:00
2018-06-22 10:38:07 +08:00
2008-09-08 06:18:43 +00:00
2018-06-22 10:38:07 +08:00
2002-04-03 03:39:30 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2004-06-15 06:19:34 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2015-05-26 12:51:57 +10:00
2018-06-22 10:38:07 +08:00
2020-04-06 20:37:38 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2020-09-27 17:57:25 +08:00
2017-05-26 15:27:22 +08:00
2017-05-26 15:27:22 +08:00
2018-06-22 10:38:07 +08:00
2018-05-23 10:53:04 +08:00
2019-10-13 21:01:41 +08:00
2003-05-19 04:56:35 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2020-06-22 00:33:23 +08:00
2019-02-23 18:14:13 +08:00
2019-02-23 18:14:13 +08:00
2018-06-22 10:38:07 +08:00
2010-01-21 17:20:23 -06:00
2010-01-21 17:20:23 -06:00
2017-09-03 12:20:00 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2008-12-31 12:53:33 +01:00
2019-10-13 21:01:41 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2005-11-09 02:48:08 +00:00
2018-06-22 10:38:07 +08:00
2019-08-11 22:27:12 +08:00
2019-12-09 00:09:32 +08:00
2018-06-22 10:38:07 +08:00
2019-01-10 16:11:27 +08:00
2018-08-12 20:03:20 +08:00
2019-10-02 18:51:16 +08:00
2004-03-30 03:05:40 +00:00
2020-01-06 16:55:52 +08:00
2020-03-06 15:55:39 +08:00
2020-03-06 15:55:39 +08:00
2018-06-22 10:38:07 +08:00
2008-12-31 12:59:19 +01:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-07-14 20:01:12 +08:00
2018-07-14 20:01:12 +08:00
2018-06-22 10:38:07 +08:00
2020-03-06 15:55:39 +08:00
2014-06-18 09:31:38 +10:00
2018-06-22 10:38:07 +08:00
2019-06-07 20:13:47 +08:00
2020-03-06 15:55:39 +08:00
2018-07-14 20:01:12 +08:00
2017-04-25 19:32:52 +08:00
2017-06-02 11:14:50 +08:00
2018-07-14 20:01:12 +08:00
2017-09-30 00:53:30 +08:00
2018-06-22 10:38:07 +08:00
2019-02-16 18:10:33 +08:00
2018-03-23 14:06:33 +08:00
2019-05-24 17:18:16 +08:00
2013-04-05 12:25:29 -05:00
2013-04-05 12:25:29 -05:00
2017-05-22 11:50:51 +08:00
2019-08-24 23:24:21 +08:00
2018-06-22 10:38:07 +08:00
2018-04-22 18:44:16 +08:00
2018-06-22 10:38:07 +08:00
2006-08-04 13:44:58 +00:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2009-05-28 11:36:27 -05:00
2015-08-04 16:34:42 +10:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00
2018-06-22 10:38:07 +08:00