android_kernel_asus_sm8350/fs/ext4
Jan Kara 1dd92ce7e8 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 17034d45ec)
Change-Id: Iaaecaddd868150834b0cdef0f0889a39c2226e41
2022-06-24 08:10:03 +00:00
..
acl.c
acl.h
balloc.c ext4: shrink race window in ext4_should_retry_alloc() 2021-04-07 14:47:38 +02:00
bitmap.c
block_validity.c ext4: correctly restore system zone info when remount fails 2020-09-03 11:26:57 +02:00
dir.c BACKPORT: ext4: handle casefolding with encryption 2022-06-24 08:10:03 +00:00
ext4_extents.h ext4: fix EXT_MAX_EXTENT/INDEX to check for zeroed eh_max 2020-06-22 09:31:15 +02:00
ext4_jbd2.c
ext4_jbd2.h
ext4.h BACKPORT: ext4: optimize match for casefolded encrypted dirs 2022-06-24 08:10:03 +00: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 ext4: don't leak old mountpoint samples 2021-01-19 18:26:13 +01:00
fsmap.c ext4: limit entries returned when counting fsmap records 2020-10-29 09:57:55 +01:00
fsmap.h
fsync.c ext4: fix race between ext4_sync_parent() and rename() 2020-06-22 09:31:16 +02:00
hash.c BACKPORT: ext4: handle casefolding with encryption 2022-06-24 08:10:03 +00:00
ialloc.c Revert "ANDROID: ext4: Handle casefolding with encryption" 2022-06-24 08:10:03 +00:00
indirect.c
inline.c BACKPORT: ext4: handle casefolding with encryption 2022-06-24 08:10:03 +00:00
inode.c This is the 5.4.198 stable release 2022-06-21 14:58:56 +02:00
ioctl.c This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
Kconfig fscrypt: Allow modular crypto algorithms 2020-02-13 15:02:40 -08:00
Makefile
mballoc.c ext4: fix bug_on ext4_mb_use_inode_pa 2022-06-22 14:11:23 +02: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 ext4: don't assume that mmp_nodename/bdevname have NUL 2020-02-19 19:52:58 +01:00
move_extent.c
namei.c UPSTREAM: ext4: verify dir block before splitting it 2022-06-24 08:10:03 +00:00
page-io.c This is the 5.4.191 stable release 2022-04-27 14:24:26 +02:00
readpage.c This is the 5.4.22 stable release 2020-02-24 09:16:10 +01:00
resize.c ext4: add reserved GDT blocks check 2022-06-22 14:11:23 +02:00
super.c BACKPORT: ext4: handle casefolding with encryption 2022-06-24 08:10:03 +00:00
symlink.c ext4: report correct st_size for encrypted symlinks 2021-09-12 08:56:38 +02:00
sysfs.c BACKPORT: ext4: Only advertise encrypted_casefold when encryption and unicode are enabled 2022-06-24 08:10:03 +00:00
truncate.h
verity.c This is the 5.4.122 stable release 2021-05-28 13:26:18 +02:00
xattr_security.c FROMLIST: Add flags option to get xattr method paired to __vfs_getxattr 2019-11-05 13:50:57 -08:00
xattr_trusted.c FROMLIST: Add flags option to get xattr method paired to __vfs_getxattr 2019-11-05 13:50:57 -08:00
xattr_user.c FROMLIST: Add flags option to get xattr method paired to __vfs_getxattr 2019-11-05 13:50:57 -08:00
xattr.c ext4: add reclaim checks to xattr code 2021-03-30 14:35:29 +02:00
xattr.h