android_kernel_xiaomi_sm8350/fs/ext4
Jan Kara e157c8f87e ext4: avoid cycles in directory h-tree
commit 3ba733f879c2a88910744647e41edeefbc0d92b2 upstream.

A maliciously corrupted filesystem can contain cycles in the h-tree
stored inside a directory. That can easily lead to the kernel corrupting
tree nodes that were already verified under its hands while doing a node
split and consequently accessing unallocated memory. Fix the problem by
verifying traversed block numbers are unique.

Cc: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220518093332.13986-2-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-14 18:11:45 +02:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c ext4: fix potential infinite loop in ext4_dx_readdir() 2021-10-06 15:42:37 +02:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: fix use-after-free in ext4_search_dir 2022-04-27 13:50:50 +02:00
extents_status.c ext4: remove check for zero nr_to_scan in ext4_es_scan() 2021-07-14 16:53:03 +02:00
extents_status.h
extents.c ext4: prevent partial update of the extent blocks 2022-02-23 11:59:57 +01:00
file.c
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: fix avefreec in find_group_orlov 2021-07-14 16:53:03 +02:00
indirect.c
inline.c ext4: fix bug_on in ext4_writepages 2022-06-14 18:11:45 +02:00
inode.c ext4: fix warning in ext4_handle_inode_extension 2022-06-14 18:11:45 +02:00
ioctl.c ext4: avoid trim error on fs with small groups 2022-01-27 09:19:37 +01:00
Kconfig
Makefile
mballoc.c ext4: avoid trim error on fs with small groups 2022-01-27 09:19:37 +01:00
mballoc.h
migrate.c ext4: don't use the orphan list when migrating an inode 2022-01-27 09:19:51 +01:00
mmp.c
move_extent.c
namei.c ext4: avoid cycles in directory h-tree 2022-06-14 18:11:45 +02:00
page-io.c ext4: fix symlink file size not match to file content 2022-04-27 13:50:50 +02:00
readpage.c
resize.c ext4: add check to prevent attempting to resize an fs with sparse_super2 2022-03-16 13:21:48 +01:00
super.c ext4: reject the 'commit' option on ext2 filesystems 2022-06-14 18:11:38 +02:00
symlink.c ext4: report correct st_size for encrypted symlinks 2021-09-12 08:56:38 +02:00
sysfs.c
truncate.h
verity.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h