diff options
| author | Darrick J. Wong <[email protected]> | 2020-09-09 21:21:06 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2020-09-16 03:52:42 +0000 |
| commit | 2a6ca4baed620303d414934aa1b7b0a8e7bab05f (patch) | |
| tree | a8c41f0884ede6e7a195d371176c26f6434e77bf /drivers/usb/cdns3/cdns3-imx.c | |
| parent | xfs: Remove unneeded semicolon (diff) | |
| download | kernel-2a6ca4baed620303d414934aa1b7b0a8e7bab05f.tar.gz kernel-2a6ca4baed620303d414934aa1b7b0a8e7bab05f.zip | |
xfs: make sure the rt allocator doesn't run off the end
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
