Files
linux/fs
Darrick J. Wong 6d0590647b ext4: limit entries returned when counting fsmap records
[ Upstream commit af8c53c8bc ]

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-29 10:08:08 +01:00
..
2020-08-19 08:27:03 +02:00
2020-10-29 10:08:02 +01:00
2020-09-09 19:14:10 +02:00
2020-08-19 08:26:56 +02:00
2019-11-11 09:21:59 -05:00
2020-08-26 11:49:06 +02:00
2020-10-17 08:56:30 +02:00
2020-09-03 11:29:31 +02:00
2020-05-14 16:44:25 +02:00
2020-02-07 14:48:35 -05:00
2020-06-15 08:51:38 -06:00
2020-03-05 21:00:40 -05:00
2020-05-14 16:44:24 +02:00
2019-12-08 14:37:36 +01:00
2020-05-14 16:44:24 +02:00