linux-stable/fs/udf
Jan Kara 6c450489f9 udf: Fix directory iteration for longer tail extents
commit 1ea1cd11c7 upstream.

When directory's last extent has more that one block and its length is
not multiple of a block side, the code wrongly decided to move to the
next extent instead of processing the last partial block. This led to
directory corruption. Fix the rounding issue.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Shreenidhi Shedi <yesshedi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-27 13:53:01 +01:00
..
balloc.c udf: prevent integer overflow in udf_bitmap_free_blocks() 2024-08-14 13:52:46 +02:00
dir.c udf: Convert udf_readdir() to new directory iteration 2024-10-22 15:56:40 +02:00
directory.c udf: Fix directory iteration for longer tail extents 2024-12-27 13:53:01 +01:00
ecma_167.h udf: Get rid of 0-length arrays in struct fileIdentDesc 2021-08-11 16:54:44 +02:00
file.c udf: Do not update file length for failed writes to inline files 2023-03-10 09:34:10 +01:00
ialloc.c udf: Fix error handling in udf_new_inode() 2021-12-15 13:08:34 +01:00
inode.c udf: Fold udf_getblk() into udf_bread() 2024-12-14 19:54:51 +01:00
Kconfig docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
lowlevel.c udf: use sb_bdev_nr_blocks 2021-10-18 14:43:23 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
misc.c udf_get_extendedattr() had no boundary checks. 2021-08-23 13:35:19 +02:00
namei.c udf: Don't return bh from udf_expand_dir_adinicb() 2024-10-22 15:56:42 +02:00
osta_udf.h udf: Get rid of 0-length arrays 2021-08-11 16:54:44 +02:00
partition.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
super.c udf: Avoid excessive partition lengths 2024-09-12 11:10:19 +02:00
symlink.c udf: Convert adinicb and symlinks to read_folio 2022-05-09 16:21:46 -04:00
truncate.c udf: refactor udf_current_aext() to handle error 2024-11-01 01:56:03 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-10 09:34:10 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-10 09:33:45 +01:00
udfdecl.h udf: refactor udf_current_aext() to handle error 2024-11-01 01:56:03 +01:00
udfend.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udftime.c udf: udftime: prevent overflow in udf_disk_stamp_to_time() 2024-06-27 13:46:17 +02:00
unicode.c udf: Fix uninitialized array access for some pathnames 2023-07-27 08:50:32 +02:00