aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rtbitmap.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2018-06-22 06:26:57 +0000
committerDarrick J. Wong <[email protected]>2018-06-24 18:56:36 +0000
commitf62cb48e43195f66c7a40bbfcf11531fc1ff8999 (patch)
tree0239274fdf66eac61e3d914c21d9081ca66302c8 /fs/xfs/libxfs/xfs_rtbitmap.c
parentxfs: don't trip over negative free space in xfs_reserve_blocks (diff)
downloadkernel-f62cb48e43195f66c7a40bbfcf11531fc1ff8999.tar.gz
kernel-f62cb48e43195f66c7a40bbfcf11531fc1ff8999.zip
xfs: don't allow insert-range to shift extents past the maximum offset
Zorro Lang reports that generic/485 blows an assert on a filesystem with 512 byte blocks. The test tries to fallocate a post-eof extent at the maximum file size and calls insert range to shift the extents right by two blocks. On a 512b block filesystem this causes startoff to overflow the 54-bit startoff field, leading to the assert. Therefore, always check the rightmost extent to see if it would overflow prior to invoking the insert range machinery. Reported-by: [email protected] Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200137 Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Allison Henderson <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtbitmap.c')
0 files changed, 0 insertions, 0 deletions