android_kernel_motorola_sm6225/fs/ext4
Darrick J. Wong 3abb2ac959 ext4: limit entries returned when counting fsmap records
[ Upstream commit af8c53c8bc087459b1aadd4c94805d8272358d79 ]

If userspace asked fsmap to try to count the number of entries, we cannot
return more than UINT_MAX entries because fmh_entries is u32.
Therefore, stop counting if we hit this limit or else we will waste time
to return truncated results.

Fixes: 0c9ec4beec ("ext4: support GETFSMAP ioctls")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Link: https://lore.kernel.org/r/20201001222148.GA49520@magnolia
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-30 10:38:22 +01:00
..
acl.c
acl.h
balloc.c ext4: fix potential race between online resizing and write operations 2020-02-28 16:38:57 +01:00
bitmap.c
block_validity.c ext4: correctly restore system zone info when remount fails 2020-09-03 11:24:24 +02:00
dir.c ext4: fix checksum errors with indexed dirs 2020-02-19 19:51:55 +01:00
ext4.h ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 2020-02-28 16:38:57 +01:00
ext4_extents.h ext4: fix EXT_MAX_EXTENT/INDEX to check for zeroed eh_max 2020-06-22 09:05:21 +02:00
ext4_jbd2.c
ext4_jbd2.h ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
extents.c ext4: fix partial cluster initialization when splitting extent 2020-06-25 15:33:07 +02:00
extents_status.c
extents_status.h
file.c ext4: fix ext4_dax_read/write inode locking sequence for IOCB_NOWAIT 2020-02-24 08:34:35 +01:00
fsmap.c ext4: limit entries returned when counting fsmap records 2020-10-30 10:38:22 +01:00
fsmap.h
fsync.c ext4: fix race between ext4_sync_parent() and rename() 2020-06-22 09:05:22 +02:00
hash.c
ialloc.c ext4: increase wait time needed before reuse of deleted inode numbers 2020-05-02 17:25:59 +02:00
indirect.c ext4: cleanup bh release code in ext4_ind_remove_space() 2019-04-05 22:32:55 +02:00
inline.c ext4: set error return correctly when ext4_htree_store_dirent fails 2020-01-27 14:51:03 +01:00
inode.c ext4: fix a data race at inode->i_disksize 2020-10-01 13:14:36 +02:00
ioctl.c ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT 2019-11-06 13:05:37 +01:00
Kconfig
Makefile
mballoc.c ext4: mark block bitmap corrupted when found instead of BUGON 2020-10-01 13:14:37 +02:00
mballoc.h
migrate.c ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 2020-02-28 16:38:57 +01:00
mmp.c ext4: don't assume that mmp_nodename/bdevname have NUL 2020-02-19 19:51:55 +01:00
move_extent.c ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
namei.c ext4: fix potential negative array index in do_split() 2020-08-26 10:31:02 +02:00
page-io.c ext4: fix deadlock allocating crypto bounce page from mempool 2020-02-11 04:34:16 -08:00
readpage.c
resize.c ext4: fix potential race between s_flex_groups online resizing and access 2020-02-28 16:38:57 +01:00
super.c fs: prevent BUG_ON in submit_bh_wbc() 2020-09-03 11:24:24 +02:00
symlink.c
sysfs.c
truncate.h
xattr.c ext4: fix error pointer dereference 2020-06-22 09:05:22 +02:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c