android_kernel_xiaomi_sm7250/fs/ext4
Jan Kara 2dab331ba0 UPSTREAM: ext4: verify dir block before splitting it
commit 46c116b920ebec58031f0a78c5ea9599b0d2a371 upstream.

Before splitting a directory block verify its directory entries are sane
so that the splitting code does not access memory it should not.

Cc: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220518093332.13986-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 17034d45ec443fb0e3c0e7297f9cd10f70446064)
Change-Id: Iaaecaddd868150834b0cdef0f0889a39c2226e41
2022-06-30 08:11:00 +00:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c ext4: eliminate bogus error in ext4_data_block_valid_rcu() 2021-07-11 12:49:30 +02:00
dir.c BACKPORT: ext4: handle casefolding with encryption 2022-06-30 08:11:00 +00:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h BACKPORT: ext4: optimize match for casefolded encrypted dirs 2022-06-30 08:11:00 +00:00
extents_status.c ext4: remove check for zero nr_to_scan in ext4_es_scan() 2021-07-20 16:15:40 +02:00
extents_status.h
extents.c This is the 4.19.231 stable release 2022-02-23 12:16:23 +01:00
file.c
fsmap.c
fsmap.h
fsync.c
hash.c BACKPORT: ext4: handle casefolding with encryption 2022-06-30 08:11:00 +00:00
ialloc.c Revert "ANDROID: ext4: Handle casefolding with encryption" 2022-06-30 08:11:00 +00:00
indirect.c
inline.c BACKPORT: ext4: handle casefolding with encryption 2022-06-30 08:11:00 +00:00
inode.c This is the 4.19.240 stable release 2022-04-27 13:55:15 +02:00
ioctl.c Merge 4.19.226 into android-4.19-stable 2022-02-01 10:03:27 +01:00
Kconfig
Makefile
mballoc.c ext4: avoid trim error on fs with small groups 2022-01-27 09:04:21 +01:00
mballoc.h
migrate.c ext4: don't use the orphan list when migrating an inode 2022-01-27 09:04:31 +01:00
mmp.c
move_extent.c
namei.c UPSTREAM: ext4: verify dir block before splitting it 2022-06-30 08:11:00 +00:00
page-io.c This is the 4.19.240 stable release 2022-04-27 13:55:15 +02:00
readpage.c
resize.c ext4: add check to prevent attempting to resize an fs with sparse_super2 2022-03-16 13:20:28 +01:00
super.c BACKPORT: ext4: handle casefolding with encryption 2022-06-30 08:11:00 +00:00
symlink.c ext4: report correct st_size for encrypted symlinks 2021-09-22 11:47:56 +02:00
sysfs.c BACKPORT: ext4: Only advertise encrypted_casefold when encryption and unicode are enabled 2022-06-30 08:11:00 +00:00
truncate.h
verity.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h