android_kernel_xiaomi_sm7250/fs
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
..
9p
adfs
affs
afs afs: Fix infinite loop found by xfstest generic/676 2022-06-14 16:59:34 +02:00
autofs
befs
bfs
btrfs btrfs: repair super block num_devices automatically 2022-06-14 16:59:14 +02:00
cachefiles
ceph ceph: allow ceph.dir.rctime xattr to be updatable 2022-06-14 16:59:38 +02:00
cifs cifs: return errors during session setup during reconnects 2022-06-14 16:59:38 +02:00
coda
configfs configfs: fix a race in configfs_{,un}register_subsystem() 2022-03-02 11:38:13 +01:00
cramfs
crypto This is the 4.19.207 stable release 2021-09-25 14:26:55 +02:00
debugfs
devpts
dlm dlm: fix missing lkb refcount handling 2022-06-14 16:59:28 +02:00
ecryptfs Revert "ecryptfs: replace BUG_ON with error handling code" 2021-05-26 11:48:34 +02:00
efivarfs
efs
exofs
exportfs
ext2 ext2: correct max file size computing 2022-04-15 14:14:48 +02:00
ext4 UPSTREAM: ext4: verify dir block before splitting it 2022-06-30 08:11:00 +00:00
f2fs This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
fat fat: add ratelimit to fat*_ent_bread() 2022-06-14 16:59:18 +02:00
freevxfs
fscache fscache: Fix cookie key hashing 2021-09-22 11:48:02 +02:00
fuse This is the 4.19.238 stable release 2022-04-18 09:57:50 +02:00
gfs2 gfs2: Fix filesystem block deallocation for short writes 2022-05-18 09:42:48 +02:00
hfs hfs: add lock nesting notation to hfs_find_init 2021-07-31 08:22:38 +02:00
hfsplus
hostfs
hpfs
hugetlbfs This is the 4.19.193 stable release 2021-06-03 09:05:30 +02:00
incfs ANDROID: incremental-fs: limit mount stack depth 2022-04-08 12:58:18 -07:00
isofs isofs: Fix out of bound access for corrupted isofs image 2021-11-12 14:40:50 +01:00
jbd2
jffs2 This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
jfs fs: jfs: fix possible NULL pointer dereference in dbFree() 2022-06-14 16:59:17 +02:00
kernfs This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
lockd
minix minix: fix bug when opening a file with O_DIRECT 2022-04-15 14:15:03 +02:00
nfs This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
nfs_common
nfsd NFSD: Fix possible sleep during nfsd4_release_lockowner() 2022-06-06 08:24:22 +02:00
nilfs2 nilfs2: fix lockdep warnings during disk space reclamation 2022-05-25 09:10:37 +02:00
nls
notify This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
ntfs ntfs: add sanity check on allocation size 2022-04-15 14:14:55 +02:00
ocfs2 ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock 2022-06-14 16:59:28 +02:00
omfs
openpromfs
orangefs orangefs: Fix the size of a memory allocation in orangefs_bufmap_alloc() 2022-01-27 09:04:13 +01:00
overlayfs This is the 4.19.222 stable release 2021-12-22 10:11:17 +01:00
proc This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
pstore
qnx4 qnx4: work around gcc false positive warning bug 2021-10-06 15:31:20 +02:00
qnx6
quota quota: make dquot_quota_sync return errors from ->sync_fs 2022-02-23 11:58:38 +01:00
ramfs
reiserfs reiserfs: check directory items on read from disk 2021-08-12 13:19:44 +02:00
romfs
squashfs
sysfs This is the 4.19.236 stable release 2022-03-23 12:26:14 +01:00
sysv
tracefs This is the 4.19.232 stable release 2022-03-02 15:29:10 +01:00
ubifs This is the 4.19.238 stable release 2022-04-18 09:57:50 +02:00
udf udf: Fix NULL ptr deref when converting from inline format 2022-02-08 18:23:03 +01:00
ufs
unicode
verity
xfs xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate 2022-01-11 13:58:49 +01:00
aio.c aio: fix use-after-free due to missing POLLFREE handling 2021-12-14 10:18:07 +01:00
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf_fdpic.c
binfmt_elf.c elf: don't use MAP_FIXED_NOREPLACE for elf interpreter mappings 2021-10-06 15:31:24 +02:00
binfmt_em86.c
binfmt_flat.c binfmt_flat: do not stop relocating GOT entries prematurely on riscv 2022-06-14 16:59:13 +02:00
binfmt_misc.c
binfmt_script.c
block_dev.c This is the 4.19.191 stable release 2021-05-22 11:54:36 +02:00
buffer.c
char_dev.c
compat_binfmt_elf.c
compat_ioctl.c
compat.c
coredump.c
d_path.c
dax.c dax: fix cache flush on PMD-mapped pages 2022-06-14 16:59:24 +02:00
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c exec: Force single empty string when argv is empty 2022-06-06 08:24:21 +02:00
fcntl.c fcntl: fix potential deadlock for &fasync_struct.fa_lock 2021-09-22 11:47:50 +02:00
fhandle.c
file_table.c fs: add fget_many() and fput_many() 2021-12-08 08:50:13 +01:00
file.c fget: clarify and improve __fget_files() implementation 2022-03-02 11:38:15 +01:00
filesystems.c
fs_pin.c
fs_struct.c
fs-writeback.c fs-writeback: writeback_sb_inodes:Recalculate 'wrote' according skipped pages 2022-06-14 16:59:27 +02:00
inode.c
internal.h
ioctl.c
iomap.c This is the 4.19.191 stable release 2021-05-22 11:54:36 +02:00
Kconfig
Kconfig.binfmt
libfs.c
locks.c
Makefile
mbcache.c
mount.h
mpage.c
namei.c
namespace.c This is the 4.19.243 stable release 2022-05-16 08:49:22 +02:00
no-block.c
nsfs.c
open.c
OWNERS
pipe.c pipe: increase minimum default pipe size to 2 pages 2021-08-12 13:19:43 +02:00
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
select.c select: Fix indefinitely sleeping task in poll_schedule_timeout() 2022-01-29 10:19:18 +01:00
seq_file.c seq_file: disallow extremely large seq buffer allocations 2021-07-20 16:16:16 +02:00
signalfd.c signalfd: use wake_up_pollfree() 2021-12-14 10:18:07 +01:00
splice.c
stack.c
stat.c stat: fix inconsistency between struct stat and struct compat_stat 2022-04-27 13:39:44 +02:00
statfs.c
super.c This is the 4.19.231 stable release 2022-02-23 12:16:23 +01:00
sync.c
timerfd.c
userfaultfd.c This is the 4.19.207 stable release 2021-09-25 14:26:55 +02:00
utimes.c
xattr.c