Darrick J. Wong
1577152a3a
xfs: limit entries returned when counting fsmap records
...
[ Upstream commit acd1ac3aa22fd58803a12d26b1ab7f70232f8d8d ]
If userspace asked fsmap 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: e89c041338ed ("xfs: implement the GETFSMAP ioctl")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:07:09 +01:00
..
2020-10-01 13:12:37 +02:00
2017-06-19 08:59:10 -07:00
2017-05-08 17:15:13 -07:00
2017-07-12 16:26:03 -07:00
2017-06-05 16:59:08 +02:00
2017-10-11 10:21:06 -07:00
2017-06-27 18:23:21 -07:00
2018-02-03 17:39:14 +01:00
2017-08-31 09:31:47 -07:00
2017-10-11 10:21:07 -07:00
2017-07-13 14:55:05 -07:00
2017-06-20 10:45:22 -07:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2017-10-11 10:21:06 -07:00
2017-10-11 10:21:06 -07:00
2017-09-02 08:22:19 -07:00
2017-09-01 10:55:30 -07:00
2019-12-01 09:13:37 +01:00
2017-08-31 09:31:47 -07:00
2017-06-20 10:45:22 -07:00
2018-05-30 07:52:23 +02:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:15 +01:00
2018-02-03 17:39:15 +01:00
2017-09-25 18:22:30 -07:00
2017-08-22 09:22:24 -07:00
2017-04-25 09:40:42 -07:00
2018-05-09 09:51:52 +02:00
2020-10-29 09:07:09 +01:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2018-08-09 12:16:39 +02:00
2017-06-19 14:11:34 -07:00
2017-10-11 10:21:06 -07:00
2020-05-02 17:24:38 +02:00
2017-07-02 22:46:13 -07:00
2019-12-05 15:37:33 +01:00
2017-06-19 14:11:33 -07:00
2018-07-11 16:29:22 +02:00
2017-06-19 14:11:33 -07:00
2017-09-26 10:55:19 -07:00
2017-09-26 10:55:19 -07:00
2019-08-29 08:26:45 +02:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:34 -07:00
2017-09-12 20:02:22 -07:00
2017-08-04 13:43:36 -07:00
2017-06-19 14:11:33 -07:00
2018-02-03 17:39:06 +01:00
2020-08-05 10:06:50 +02:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2017-11-02 11:10:55 +01:00
2017-10-11 10:21:06 -07:00
2018-06-05 11:41:55 +02:00
2017-10-11 10:21:06 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-19 14:11:33 -07:00
2017-04-28 08:11:08 -07:00
2018-03-03 10:24:33 +01:00
2020-01-27 14:46:02 +01:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2020-08-21 09:48:08 +02:00
2017-06-19 14:11:35 -07:00
2017-04-25 09:40:42 -07:00
2019-12-05 15:37:18 +01:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2019-10-17 13:44:03 -07:00
2017-09-01 10:55:30 -07:00
2017-06-20 10:45:22 -07:00
2017-06-19 08:59:10 -07:00
2017-06-27 18:23:21 -07:00
2020-08-26 10:29:57 +02:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-08-22 09:22:24 -07:00
2017-06-19 08:59:10 -07:00
2017-09-01 10:55:30 -07:00
2020-08-26 10:29:56 +02:00
2017-09-01 10:55:30 -07:00
2017-08-22 09:22:23 -07:00
2017-06-19 14:11:33 -07:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00
2017-06-19 08:59:10 -07:00