linux/fs/udf
Jan Kara 2cd2e93227 udf: Fix extending file within last block
commit 1f3868f068 upstream.

When extending file within last block it can happen that the extent is
already rounded to the blocksize and thus contains the offset we want to
grow up to. In such case we would mistakenly expand the last extent and
make it one block longer than it should be, exposing unallocated block
in a file and causing data corruption. Fix the problem by properly
detecting this case and bailing out.

CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-21 17:48:06 +01:00
..
balloc.c
dir.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
directory.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
ecma_167.h
file.c udf: Support splicing to file 2022-09-12 13:03:20 +02:00
ialloc.c
inode.c udf: Fix extending file within last block 2022-12-21 17:48:06 +01:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c udf: Fix a slab-out-of-bounds write bug in udf_find_entry() 2022-11-09 12:24:42 +01:00
osta_udf.h
partition.c
super.c
symlink.c
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-21 17:48:05 +01:00
udf_i.h
udf_sb.h
udfdecl.h
udfend.h
udftime.c
unicode.c