Files
android_kernel_xiaomi_sm8450/fs/udf
Jan Kara 0a3cfd2589 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: 7e49b6f248 ("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-01 17:25:39 +01:00
..
2021-11-26 10:39:20 +01:00
2020-05-04 10:13:42 -06:00
2021-11-26 10:39:20 +01:00
2021-11-26 10:39:20 +01:00
2021-09-15 09:50:25 +02:00
2021-09-15 09:50:25 +02:00