Darrick J. Wong
0c0476d096
xfs: make sure the rt allocator doesn't run off the end
...
[ Upstream commit 2a6ca4baed ]
There's an overflow bug in the realtime allocator. If the rt volume is
large enough to handle a single allocation request that is larger than
the maximum bmap extent length and the rt bitmap ends exactly on a
bitmap block boundary, it's possible that the near allocator will try to
check the freeness of a range that extends past the end of the bitmap.
This fails with a corruption error and shuts down the fs.
Therefore, constrain maxlen so that the range scan cannot run off the
end of the rt bitmap.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-10-29 10:08:25 +01:00
..
2020-10-29 10:07:54 +01:00
2020-08-19 08:26:32 +02:00
2019-05-21 10:50:46 +02:00
2020-06-02 10:59:11 -07:00
2020-05-27 08:49:28 -07:00
2020-05-08 08:49:58 -07:00
2020-03-02 20:55:55 -08:00
2020-03-02 20:55:55 -08:00
2020-06-02 19:21:40 -07:00
2019-10-28 08:37:54 -07:00
2020-05-19 09:40:59 -07:00
2020-05-19 09:40:58 -07:00
2019-07-10 10:04:16 -07:00
2020-05-08 08:50:01 -07:00
2020-05-08 08:50:01 -07:00
2020-09-09 19:14:17 +02:00
2019-11-03 10:22:30 -08:00
2020-10-29 10:07:53 +01:00
2020-05-07 08:27:48 -07:00
2020-05-07 08:27:45 -07:00
2020-06-02 19:21:40 -07:00
2020-05-07 08:27:46 -07:00
2020-05-19 09:40:58 -07:00
2020-03-11 09:11:39 -07:00
2020-05-08 08:49:59 -07:00
2020-05-07 08:27:48 -07:00
2020-03-18 08:12:23 -07:00
2020-05-27 08:49:26 -07:00
2020-05-27 08:49:26 -07:00
2020-05-07 08:27:48 -07:00
2020-03-12 07:58:12 -07:00
2020-04-06 08:44:35 -07:00
2019-11-03 10:22:31 -08:00
2020-05-08 08:50:01 -07:00
2020-05-08 08:50:01 -07:00
2020-10-29 10:07:38 +01:00
2020-01-26 14:32:26 -08:00
2020-10-29 10:07:54 +01:00
2020-10-29 10:07:54 +01:00
2020-05-07 08:27:48 -07:00
2019-07-03 07:33:26 -07:00
2019-07-03 20:36:26 -07:00
2020-09-03 11:29:18 +02:00
2020-05-27 08:49:27 -07:00
2020-05-08 08:49:59 -07:00
2020-05-19 09:40:58 -07:00
2020-05-19 09:40:58 -07:00
2020-05-07 08:27:48 -07:00
2020-09-03 11:29:18 +02:00
2020-06-02 19:48:41 -07:00
2020-03-02 20:55:54 -08:00
2020-01-06 08:57:36 -08:00
2020-10-29 10:07:54 +01:00
2020-03-02 20:55:55 -08:00
2020-05-27 08:49:28 -07:00
2019-11-03 10:22:30 -08:00
2020-06-09 09:39:14 -07:00
2020-05-19 09:40:58 -07:00
2019-08-29 21:22:41 -07:00
2019-11-12 17:19:02 -08:00
2019-08-30 22:43:56 -07:00
2020-03-02 20:55:55 -08:00
2020-06-22 19:22:57 -07:00
2020-06-22 19:22:57 -07:00
2020-05-08 08:50:01 -07:00
2020-03-27 08:32:55 -07:00
2020-03-27 08:32:53 -07:00
2020-05-07 08:27:46 -07:00
2020-05-07 08:27:46 -07:00
2020-05-27 08:49:25 -07:00
2020-05-29 20:13:20 -07:00
2019-08-26 12:06:22 -07:00
2020-01-16 08:07:23 -08:00
2020-05-04 09:03:15 -07:00
2019-07-03 08:21:58 -07:00
2019-07-03 08:21:58 -07:00
2019-11-13 11:13:45 -08:00
2020-05-27 08:49:27 -07:00
2020-08-19 08:26:47 +02:00
2020-05-27 08:49:26 -07:00
2020-03-02 20:55:50 -08:00
2020-05-27 08:49:26 -07:00
2020-05-08 08:50:01 -07:00
2020-05-08 08:50:01 -07:00
2020-08-19 08:26:32 +02:00
2020-01-20 14:34:47 -08:00
2020-05-08 08:50:01 -07:00
2020-05-08 08:50:01 -07:00
2020-10-29 10:08:25 +01:00
2020-03-12 07:58:13 -07:00
2020-06-02 19:48:41 -07:00
2019-10-21 09:04:57 -07:00
2020-05-19 09:40:58 -07:00
2019-11-10 10:21:57 -08:00
2020-04-27 02:07:40 -04:00
2019-07-03 07:33:26 -07:00
2019-09-24 09:40:19 -07:00
2020-08-26 11:49:07 +02:00
2020-03-18 08:12:23 -07:00
2020-05-19 09:40:58 -07:00
2020-05-08 08:50:00 -07:00
2020-01-26 14:32:27 -08:00
2020-08-26 11:49:05 +02:00
2020-05-08 08:50:00 -07:00
2020-08-19 08:26:32 +02:00
2020-05-08 08:50:01 -07:00
2020-05-08 08:51:34 -07:00