Jan Kara
3fdf975173
udf: Restore i_lenAlloc when inode expansion fails
...
commit ea8569194b43f0f01f0a84c689388542c7254a1f upstream.
When we fail to expand inode from inline format to a normal format, we
restore inode to contain the original inline formatting but we forgot to
set i_lenAlloc back. The mismatch between i_lenAlloc and i_size was then
causing further problems such as warnings and lost data down the line.
Reported-by: butt3rflyh4ck <butterflyhuangxx@gmail.com>
CC: stable@vger.kernel.org
Fixes: 7e49b6f2480c ("udf: Convert UDF to new truncate calling sequence")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:16:24 +01:00
..
2020-11-05 11:07:03 +01:00
2019-08-06 19:05:21 +02:00
2021-03-03 18:22:54 +01:00
2020-04-02 16:34:33 +02:00
2019-12-17 20:37:24 +01:00
2018-12-01 09:42:51 +01:00
2022-01-27 09:00:56 +01:00
2020-11-05 11:07:05 +01:00
2021-09-26 13:37:29 +02:00
2021-10-06 15:05:04 +02:00
2019-08-06 19:05:23 +02:00
2021-07-20 16:17:41 +02:00
2018-11-13 11:15:12 -08:00
2021-07-20 16:17:45 +02:00
2019-05-08 07:20:49 +02:00
2019-03-23 14:35:21 +01:00
2022-01-27 09:00:53 +01:00
2021-05-26 11:47:00 +02:00
2020-12-02 08:34:44 +01:00
2019-12-05 15:37:28 +01:00
2020-01-27 14:46:06 +01:00
2021-10-09 14:09:46 +02:00
2022-01-27 09:00:59 +01:00
2021-12-29 12:17:36 +01:00
2020-06-20 10:25:05 +02:00
2018-12-17 09:28:53 +01:00
2022-01-27 09:01:02 +01:00
2021-09-22 11:45:30 +02:00
2021-08-04 12:22:15 +02:00
2020-04-24 08:00:45 +02:00
2021-06-03 08:36:25 +02:00
2021-11-12 14:28:24 +01:00
2020-09-03 11:22:29 +02:00
2022-01-27 09:00:56 +01:00
2021-11-26 11:40:32 +01:00
2021-06-30 08:48:55 -04:00
2020-12-29 13:46:57 +01:00
2020-08-21 09:48:15 +02:00
2022-01-27 09:01:02 +01:00
2020-12-29 13:47:01 +01:00
2021-12-22 09:17:59 +01:00
2021-09-26 13:37:30 +02:00
2020-01-12 12:11:59 +01:00
2021-07-20 16:17:28 +02:00
2021-11-26 11:40:20 +01:00
2022-01-27 09:00:46 +01:00
2021-10-17 10:08:32 +02:00
2021-12-08 08:46:52 +01:00
2020-01-09 10:17:55 +01:00
2021-10-06 15:05:08 +02:00
2021-11-26 11:40:25 +01:00
2020-10-29 09:07:11 +01:00
2021-08-15 13:03:33 +02:00
2020-08-26 10:29:54 +02:00
2021-05-22 10:57:39 +02:00
2021-06-30 08:48:55 -04:00
2018-12-17 09:28:48 +01:00
2021-12-14 10:16:55 +01:00
2022-01-27 09:00:59 +01:00
2022-02-08 18:16:24 +01:00
2020-08-21 09:48:22 +02:00
2022-01-11 13:57:36 +01:00
2018-12-21 14:13:04 +01:00
2020-06-03 08:18:03 +02:00
2019-07-03 13:15:59 +02:00
2021-03-17 16:34:35 +01:00
2019-11-06 12:42:59 +01:00
2021-05-22 10:57:43 +02:00
2020-11-05 11:06:58 +01:00
2020-01-14 20:05:39 +01:00
2020-01-09 10:17:58 +01:00
2020-05-20 08:16:58 +02:00
2020-03-11 18:02:43 +01:00
2019-02-06 17:31:34 +01:00
2021-04-16 11:57:48 +02:00
2020-01-12 12:11:59 +01:00
2020-10-14 09:51:09 +02:00
2021-10-27 09:51:40 +02:00
2021-12-08 08:46:55 +01:00
2021-12-08 08:46:55 +01:00
2020-04-24 08:00:43 +02:00
2021-07-20 16:17:37 +02:00
2020-04-02 16:34:21 +02:00
2018-11-10 07:48:33 -08:00
2019-12-17 20:38:57 +01:00
2020-11-24 13:05:50 +01:00
2020-01-09 10:17:55 +01:00
2020-03-11 18:02:53 +01:00
2021-08-26 08:37:10 -04:00
2020-03-20 10:54:16 +01:00
2021-08-15 13:03:31 +02:00
2020-05-02 17:24:47 +02:00
2019-12-01 09:13:51 +01:00
2021-04-28 12:08:41 +02:00
2021-03-24 11:05:05 +01:00
2021-07-20 16:17:55 +02:00
2021-12-14 10:16:55 +01:00
2019-05-04 09:15:18 +02:00
2019-10-11 18:18:48 +02:00
2020-11-24 13:05:44 +01:00
2020-01-04 13:59:58 +01:00
2020-08-21 09:48:00 +02:00